This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb bus error(core dump), from linking in a library


Help!.. gdb keeps core dumping on me(with a bus error). I've stripped the
app down to a hello world c program. It still core'd. I figured out it is a
particular library that I am linking in(pkgl in my below example). Anyone
know why linking in a certain library would cause gdb to core dump?  This is
just driving  me nuts as I can't stand having to do printf debugging in an
app... I need my debugger! :>

How I compile/link this app.

 gcc -c -g ba1_main.c
 gcc -g -L/home/gschoep/pkgl/lib -o ba1 ba1_main.o -Bstatic -lpkgl

This is what I get when I run the am in the debugger(it runs fine outside
the debugger)

gschoep@weasel>263% gdb ./ba1
GNU gdb 6.0
Copyright 2003 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 "sparc-sun-solaris2.9"...
(gdb) run
Starting program: /silver/home/gschoep/test/ipc/gdbtest/ba1 
Bus error (core dumped)


I am using gcc 3.3.2, gdb 6.0


Any ideas?

Thanks
-grant


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]