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

Re: sigsegv in _dl_sym()



At Wed, 1 Dec 2004 02:55:03 -0700,
Ryan Mansfield wrote:
> ryan@avarice:~/503$ gcc reduced.c -ldl -g
> ryan@avarice:~/503$ gdb ./a.out
> GNU gdb 6.3-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/tls/libthread_db.so.1".
> 
> (gdb) run
> Starting program: /home/ryan/503/a.out
> Detaching after fork from child process 15133.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x40011900 in realloc () from /lib/ld-linux.so.2
> (gdb) bt
> #0  0x40011900 in realloc () from /lib/ld-linux.so.2
> #1  0x400076fb in _dl_unload_cache () from /lib/ld-linux.so.2
> #2  0x40007def in _dl_lookup_symbol () from /lib/ld-linux.so.2
> #3  0x40137d3c in _dl_sym () from /lib/tls/libc.so.6
> (gdb)

I got under the recent sid environment:

	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/tls/i686/cmov/libthread_db.so.1".
	
	(gdb) run
	Starting program: /home/gotom/debian/glibc/bugs/debian-glibc-14717/a.out 
	Detaching after fork from child process 32245.
	Cannot load symbol 'hello': %
	
	Program exited with code 01.

Looking at your program, the generated object built by tcc does not
work - so contacting tcc maintainer may give the light for this
problem.  I sent this mail to Cc: tcc maintainer.

Regards,
-- gotom



Reply to: