Port-hpcsh archive

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

Re: NetBSD/hpcsh snapshot with X11 sets uploaded to ftp.n.o



On Sat, Mar 06, 2004 at 09:01:05 +0900, Yasushi Oshima wrote:

> at Fri, 5 Mar 2004 22:21:34 +0300
> "Valeriy E. Ushakov" <uwe%ptc.spbu.ru@localhost> wrote
> 
> > On Fri, Mar 05, 2004 at 21:46:43 +0300, Valeriy E. Ushakov wrote:
> > 
> > > > % gdb /usr/bin/groff groff.core
> > > > Core was generated by `groff'.
> > > > Program terminated with signal 11, Segmentation fault.
> > > > (gdb) bt
> > > > #0  0x0041abfc in __sF ()
> > > > #1  0x20524b60 in __udivdi3 () from /usr/lib/libgcc_s.so.1
> > > > #2  0x205cd522 in __eqdf2 () from /usr/lib/libc.so.12
> > > > 
> > > > This occurs in both NetBSD/hpcsh on my Jornada680 and NetBSD/dreamcast.
> > > 
> > > Hmm...  Running in a chroot I see:
> > > 
> > > (gdb) where
> > > #0  0x0041abec in __udivsi3 ()
> > > #1  0x20524b60 in __udivdi3 () from /usr/lib/libgcc_s.so.1
> > > #2  0x205cd522 in __eqdf2 () from /usr/lib/libc.so.12
> > > 
> > > which is obviously a problem.  There should have been a ".hidden" copy
> > > of __udivsi3 in libgcc_s.so.
> 
> I'm sorry by mistake. That core and gdb backtrace was from dreamcast.
> The following is as a result of hpcsh.
> 
> % groff
> Illegal instruction (core dumped) 
> % gdb /usr/bin/groff groff.core
>   :
> (gdb) bt
> #0  0x0041abec in __udivsi3 ()
> #1  0x20524b60 in __udivdi3 () from /usr/lib/libgcc_s.so.1
> #2  0x205cd522 in __eqdf2 () from /usr/lib/libc.so.12

Ok, I think the problem is that __udivsi3 (and other millicode
routines) are included into libgcc_s.so without being ".hidden".

$ shle--netbsdelf-readelf -a libgcc/_udivsi3.so | grep __udivsi3
     7: 00000022     0 NOTYPE  GLOBAL HIDDEN    1 __udivsi3
$ shle--netbsdelf-readelf -a libgcc_s/_udivsi3.so | grep __udivsi3
     7: 00000022     0 NOTYPE  GLOBAL DEFAULT    1 __udivsi3

Also, somehow __udivsi3 is not marked as a function (see NOTYPE), may
that's because it ends up in BSS(!):

$ shle--netbsdelf-nm -p groff | grep __udivsi3
0041abe8 B __udivsi3

Nick, please, can you take a look at this?

SY, Uwe
-- 
uwe%ptc.spbu.ru@localhost                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen



Home | Main Index | Thread Index | Old Index