tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: malloc-related SIGSEGV when cross-building i386 on NetBSD-10.0/amd64



On Tuesday, April 16, 2024 3:32:45 AM CEST Taylor R Campbell wrote:
> It looks like somehow the thread's tls pointer (%gs) is null, but my
> guess is that this happens only sometimes, e.g. during involuntary
> kernel context switches that involve saving and restoring a trap
> frame, which is why it appears to be happening randomly and not
> immediately when any process tries to use malloc.

Double check with printf or so first please, that this isn't just a gdb
artifact please. Segment registers on amd64 are weird.

Joerg


Home | Main Index | Thread Index | Old Index