binary debug

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

 



Guys,

Need a little help to try to understand why my staticly linked optimized
binary works on some machines, but has crash on certain systems (though
all the systems have the same image and are the same type (make and
model) of hardware).  Here is the where:

[chrisc@ae002 chrisc]$ gdb /home/code/bin-linux/rc-O 
GNU gdb 5.2.1
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x8048526
(gdb) r
Starting program: /home/code/bin-linux/rc-O 

Program received signal SIGSEGV, Segmentation fault.
0x086104f0 in _GLOBAL__I__Z6tpprocP7TechlibP12hasht_structS2_ ()
(gdb) where
#0  0x086104f0 in _GLOBAL__I__Z6tpprocP7TechlibP12hasht_structS2_ ()
#1  0x08895485 in __do_global_ctors_aux ()
#2  0x080480ca in _init ()
#3  0x0882fdde in __libc_start_main (main=0x8048520 <main>, argc=1,
ubp_av=0xbfffee14, 
    init=0x80480b4 <_init>, fini=0x8895520 <_fini>, rtld_fini=0,
stack_end=0xbfffee0c)
    at ../sysdeps/generic/libc-start.c:122
(gdb) 

gcc 3.2.3, -O2, static, linux 2.4.19, glibc:
glibc-2.2.4-13
glibc-profile-2.2.4-13
glibc-common-2.2.4-13
glibc-devel-2.2.4-13
compat-glibc-6.2-2.1.3.2



The debug version does not exhibit this problem.

Any help diagnosing this problem is mucho appreciated.

TIA! 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux