List Info

Thread: step over "next" cause the application to crash




step over "next" cause the application to crash
user name
2007-08-29 17:13:27
Hello,

I am debugging (gdb 6.0) one of our applications and when I
step over
"next" (after one or two tries) I get the below
error.
How do I resolve this problem?

NOTE: The application is running on UML (
2.4.20_mvlcge31-uml-2.4.27-1-1um) hosted on Red Hat (Red Hat
Linux
release 9 (Shrike)).

NOTE: I have renamed the function, file and constant names
for email
communication purpose.

Program received signal SIGTRAP, Trace/breakpoint trap.

0x0813399a in mxxSxxMxxXXXList (pHdr=0x4e244770,
pMsb=0x480ebc94,
mpiDesc=0x4e2453fc)
    at mxxNsxx.c:2747

2747        cniprintf(CAT_XXX_XXX,CNI_DEBUG_LVL_INFO,
"%s (line; %d):
MS_X_XXXn",
(gdb)
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x1: Input/output error.

(gdb)
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x1: Input/output error.

(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 294931]

0x081339a9 in mxxSxxMxxXXXList (pHdr=0x4e244770,
pMsb=0x480ebc94,
miDesc=0x4e2453fc)

    at mxxNsxx.c:2747
2747        cniprintf(CAT_XXX_XXX,CNI_DEBUG_LVL_INFO,
"%s (line; %d):
MS_X_XXXn",
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 360470]
0x4001bd46 in __pthread_cleanup_upto (target=0x0,
targetframe=0x4eff44a4 "ÄDÿN2003137")
    at ../linuxthreads/sysdeps/pthread/ptlongjmp.c:35
35      ../linuxthreads/sysdeps/pthread/ptlongjmp.c: No such
file or directory.
        in ../linuxthreads/sysdeps/pthread/ptlongjmp.c
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x4001bd46 in __pthread_cleanup_upto (target=0x0,
targetframe=0x4eff44a4 "ÄDÿN2003137")
    at ../linuxthreads/sysdeps/pthread/ptlongjmp.c:35
35            in
../linuxthreads/sysdeps/pthread/ptlongjmp.c


Thanks,

Jeeva

Re: step over "next" cause the application to crash
country flaguser name
United States
2007-08-30 07:12:36
On Wed, Aug 29, 2007 at 06:13:27PM -0400, Jeeva Chelladhurai
wrote:
> Hello,
> 
> I am debugging (gdb 6.0) one of our applications and
when I step over
> "next" (after one or two tries) I get the
below error.
> How do I resolve this problem?
> 
> NOTE: The application is running on UML (
> 2.4.20_mvlcge31-uml-2.4.27-1-1um) hosted on Red Hat
(Red Hat Linux
> release 9 (Shrike)).

Everything in your log suggests that one of the above - all
of GDB,
UML, and RHL are very old - is broken.  You should never see
these
messages:

> Program received signal SIGTRAP, Trace/breakpoint
trap.

> Warning:
> Cannot insert breakpoint 0.
> Error accessing memory address 0x1: Input/output
error.

I would guess that UML was to blame.

-- 
Daniel Jacobowitz
CodeSourcery

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )