Question : SIGSEGV memset() from libc.so.6

irvin tsang irvin_smile@hotmail.com
Wed May 19 06:43:00 GMT 2004


Hi All,
i am not the expert on gibc.  i don't know whether this question is too 
trivial or?  Please let me know whether the question is a valid one or it 
has been solved by some way?

thank for your help!
irvin

--- i t <test11_test11@yahoo.com> wrote:
>Hi,
>i have the problem with libc.so.6 which similiar to
>the mail thread dated back in 2002 :
>http://sources.redhat.com/ml/libc-alpha/2002-07/msg00044.html
>
>however, i cannot find the answer/conclusion from
>that
>thread.
>
>here is the gdb output
>
>
>GNU gdb 6.1-debian
>Copyright 2004 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-linux"...Using host
>libthread_db library "/lib/libthread_db.so.1".
>(gdb) run
>Starting program: testprogram
>[Thread debugging using libthread_db enabled]
>[New Thread 16384 (LWP 6802)]
>[New Thread 32769 (LWP 6804)]
>Program received signal SIGSEGV, Segmentation fault.
>[Switching to Thread 32769 (LWP 6804)]
>0x4441e3ab in memset () from /lib/libc.so.6
>(gdb) thread apply all where
>Thread 2 (Thread 32769 (LWP 6804)):
>#0  0x4441e3ab in memset () from /lib/libc.so.6
>#1  0x42d83036 in pthread_allocate_stack () from
>/lib/libpthread.so.0
>#2  0x42d8311c in pthread_handle_create () from
>/lib/libpthread.so.0
>#3  0x42d82c18 in __pthread_manager () from
>/lib/libpthread.so.0
>#4  0x42d82d57 in __pthread_manager_event () from
>/lib/libpthread.so.0
>#5  0x4447e64a in clone () from /lib/libc.so.6

>Thread 1 (Thread 16384 (LWP 6802)):
>#0  0x42d855f4 in __pthread_sigsuspend () from
>/lib/libpthread.so.0
>#1  0x42d853b8 in __pthread_wait_for_restart_signal
>()
>    from /lib/libpthread.so.0
>#2  0x42d84c32 in pthread_create@@GLIBC_2.1 () from
>/lib/libpthread.so.0
>#3  0x442a9e0e in taskSpawn (name=0x4380ab61
>"startup", priority=255,
>     options=0, stacksize=0, entryPt=0xfffffffc,
>arg1=-4, arg2=-4, arg3=-4,
>     arg4=-4, arg5=-4, arg6=-4, arg7=-4, arg8=-4,
>arg9=-4, arg10=-4)
>     at /vobs/vel/src/taskLib.c:298
>#4  0x4380990b in main (argc=2, argv=0xbffffda4)
>     at /vobs/startup/src/startup.c:502
>#5  0x443bcdc6 in __libc_start_main () from
>/lib/libc.so.6
>#6  0x080497a1 in _start ()
>#0  0x4441e3ab in memset () from /lib/libc.so.6
>(gdb) quit
>The program is running.  Exit anyway? (y or n) y
># uname -a
>Linux efi-linux 2.4.26 #1 Wed Apr 28 11:39:23 PDT
>2004
>i686 GNU/Linux
>
>my program is complied with gcc 3.3.3, debian, glibc
>2.3.2
>
>something may not be releated is, i have noticed
>that
>the size of libpthread-0.9.so(glibc 2.2.5) is 102172
>byte, however, the libpthread-0.10.so is 81063.  I
>thought the usual case is the latter version will be
>larger?
>
>Thanks for the help!
>irvin
>
>
>
>

_________________________________________________________________
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win 
$1 million! http://local.msn.com/special/giveaway.asp



More information about the Libc-alpha mailing list