Port-mips archive

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

Re: -current userland segfault



On Thu, Jan 23, 2014 at 01:51:31PM +0100, Manuel Bouyer wrote:
> Hello,
> I upgraded my loogson to HEAD, and now all userland binaries segfault
> at exit:
> (gdb) run
> Starting program: /rescue/ls 
> .cshrc          etc             libdata         pwd.core        uname.core
> .profile        ftp.core        libexec         rescue          usr
> altroot         gdb.core        ls.core         root            var
> bin             gzip.core       mnt             sbin
> boot            home            netbsd          stand
> cdrom           kern            proc            tar.core
> dev             lib             progress.core   tmp
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000 in ?? ()
> 
> looks like it jumps to a NULL pointer.

This is indeed a jump to NULL. I tracked it down and just commited a fix.
Basically: __DTOR_LIST__ was aligned to 8-byte on N32, causing an extra
NULL entry between __DTOR_LIST__ and __DTOR_LIST_END__.
This was corrected for CTOR but not DTOR.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index