Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 1999 14:16:10 -0700 (PDT)
From:      Kip Macy <kip@lyris.com>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        hackers@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: new  seg fault in thread code
Message-ID:  <Pine.SOL.4.05.9907141412060.21964-100000@luna>
In-Reply-To: <199907141849.OAA01714@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Do you want an executable?

Anyway, I compiled the tests in /usr/src/lib/libc_r/test/ and they both
seg faulted in the exact same way:


Note: I had to add the -static to the LDFLAGS in order for gdb to find
symbols for them.



adsl-216-101-22-188 [libc_r/test/sigwait|14:14|210|]gdb sigwait
sigwait.core 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `sigwait'.
Program terminated with signal 11, Segmentation fault.
#0  0x804c6ac in _thread_kern_sched_state_unlock ()
(gdb) bt
#0  0x804c6ac in _thread_kern_sched_state_unlock ()
#1  0x804bec1 in _thread_kern_sched ()
#2  0x804c351 in _thread_kern_sched_state ()
#3  0x804f0ff in nanosleep (time_to_sleep=0xbfbfd7a4, 
    time_remaining=0xbfbfd79c)
    at /usr/src/lib/libc_r/uthread/uthread_nanosleep.c:72
#4  0x804efc2 in sleep (seconds=1)
    at /usr/src/lib/libc_r/../libc/gen/sleep.c:63
#5  0x804842e in main ()
#6  0x804813c in _start (arguments=0xbfbfd904 "sigwait")
    at /usr/src/lib/csu/i386-elf/crt1.c:95



adsl-216-101-22-188 [libc_r/test/sigsuspend|14:16|214|]gdb sigsuspend
sigsuspend.core 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `sigsuspend'.
Program terminated with signal 11, Segmentation fault.
#0  0x804c4ec in _thread_kern_sched_state_unlock ()
(gdb) bt
#0  0x804c4ec in _thread_kern_sched_state_unlock ()
#1  0x804bd01 in _thread_kern_sched ()
#2  0x804c191 in _thread_kern_sched_state ()
#3  0x804ef3f in nanosleep (time_to_sleep=0xbfbfd7a0, 
    time_remaining=0xbfbfd798)
    at /usr/src/lib/libc_r/uthread/uthread_nanosleep.c:72
#4  0x804ee02 in sleep (seconds=1)
    at /usr/src/lib/libc_r/../libc/gen/sleep.c:63
#5  0x80484a5 in main ()
#6  0x804813c in _start (arguments=0xbfbfd8fc "./sigsuspend")
    at /usr/src/lib/csu/i386-elf/crt1.c:95
(gdb) 


On Wed, 14 Jul 1999, Daniel Eischen wrote:

> Kip Macy wrote:
> > I just rebuilt libc_r and relinked my application. I am now crashing right
> > away as opposed to after several hours as I have been.
> > 
> > Program terminated with signal 11, Segmentation fault.
> > #0  0x82fa07c in _thread_kern_sched_state_unlock ()
> > (gdb) bt
> > #0  0x82fa07c in _thread_kern_sched_state_unlock ()
> > #1  0x82f9891 in _thread_kern_sched ()
> > #2  0x82f9d21 in _thread_kern_sched_state ()
> > #3  0x8307ee3 in nanosleep (time_to_sleep=0xbfbfd2d4, 
> >     time_remaining=0xbfbfd2cc)
> >     at /usr/src/lib/libc_r/uthread/uthread_nanosleep.c:72
> > #4  0x8307b9e in sleep (seconds=1)
> >     at /usr/src/lib/libc_r/../libc/gen/sleep.c:63
> > #5  0x8285598 in os_this_thread::sleep (seconds_=1) at thisthrd.cpp:712
> > #6  0x825bce5 in lyris_CodeBase_Table::open (this=0x85bcd00,
> > Exclusive=false)
> >     at cbtable3.cpp:588
> > #7  0x82342f0 in lyris_Table::open (this=0xbfbfd538, Exclusive=false)
> >     at table.cpp:1004
> > #8  0x8048f9f in lyris_Config::open (this=0xbfbfd4fc, Exclusive=false)
> >     at config.cpp:257
> > #9  0x8048221 in lyris_Config::lyris_Config (this=0xbfbfd4fc) at
> > config.cpp:52
> > #10 0x814be41 in lyris_CommandLine::RunCommandLine (this=0x85adc90, 
> >     InArguments=@0xbfbfd788) at lyrcline.cpp:682
> > #11 0x8160e83 in main (argc=4, argv=0xbfbfd808) at lyrmain.cpp:59
> 
> Great, now it should be easy to reproduce!  Can you send me
> something to reproduce it?
> 
> Dan Eischen
> eischen@vigrid.com
> 
> 




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.05.9907141412060.21964-100000>