Operating System - HP-UX
1753385 Members
5687 Online
108792 Solutions
New Discussion юеВ

Re: Undefined line in gdb

 
SOLVED
Go to solution
RogerVI
Regular Advisor

Undefined line in gdb

The operating system is Hp-UX 11i

I'd compiled a program with -g option
I run this program (called genfhist.exe) and resulted in core dumped:

Bus error (core dumped)

Then, I want to know what is the line in the program that caused the error, but I can't
I used the gdb debugger but not show me the line number or function name

#gdb -c core
Detected 64-bit corefile.
Invoking /opt/langtools/bin/gdb64.
HP gdb 2.1
Copyright 1986 - 1999 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 2.1 (based on GDB 5.0-hpwdb-20000630)
Wildebeest 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 Wildebeest. Type "show warranty" for details.
Wildebeest was built for PA-RISC 2.0 (wide), HP-UX 11.00.

Reading symbols from genfhist.exe...done.
Core was generated by `genfhist.exe'.
Program terminated with signal 10, Bus error.
Unable to read in .dynamic section information.
#0 0xc0000000002ee5ec in ?? ()
(gdb) bt
#0 0xc0000000002ee5ec in ?? ()
Error accessing memory address 0x0: Invalid argument.



Can somebody help me, please ?
Thanks in advance

Roger
3 REPLIES 3
Sandman!
Honored Contributor

Re: Undefined line in gdb

Imho the gdb you are using is built for HP-UX 11.0 not 11i. You most likely need the 11i version of gdb.

~cheers
Dennis Handly
Acclaimed Contributor
Solution

Re: Undefined line in gdb

First of all, gdb 2.1 is obsolete. This may prevent it from doing a stack trace. The latest is 5.6. You can download this from:
http://www.hp.com/go/wdb

Your signal 10 is occurring in some shared lib.
Have you tried running it in the debugger?

Also see my response in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1127567
RogerVI
Regular Advisor

Re: Undefined line in gdb

Thank you so much
Roger