|
From: Kurien M. <km...@en...> - 2004-06-15 13:52:11
|
Hello,
I am having trouble running my program through Valgrind. It seems to
hang after a few seconds when run with valgrind. When the hung process
is attached via gdb this is what I have:
Program received signal SIGINT, Interrupt.
vg_do_syscall3 (syscallno=4294966784, arg1=2, arg2=1075618368, arg3=86)
at vg_mylibc.c:92
92 }
(gdb) bt
#0 vg_do_syscall3 (syscallno=4294966784, arg1=2, arg2=1075618368,
arg3=86) at vg_mylibc.c:92
#1 0x00000056 in ?? ()
Cannot access memory at address 0x1
(gdb)
#0 vg_do_syscall3 (syscallno=4294966784, arg1=2, arg2=1075618368,
arg3=86) at vg_mylibc.c:92
#1 0x00000056 in ?? ()
(gdb) bt
#0 vg_do_syscall3 (syscallno=4294966784, arg1=2, arg2=1075618368,
arg3=86) at vg_mylibc.c:92
#1 0x00000056 in ?? ()
(gdb) info locals
__res = 4294966784
(gdb) info threads
(gdb)
Do you have any suggestions in getting past this problem?
The original problem with the program is that it ends with a
segmentation fault with backtrace:
#0 0x00000001 in ?? ()
#1 0x413f7cd0 in AV_Scene::render(RE_Renderer*, double, int)
(this=0x8537f90, renderer=0x80b6bb8, time=47.301000000000002, quality=1)
at AV_Scene.cpp:730
#2 0x4131b042 in CL_Client::render(double, double*) (this=0x808ecc8,
currentPlayerTime=-1, currentPresentationTimep=0x0) at CL_Client.cpp:897
#3 0x4131ab5b in CL_Client::idle(double, double*) (this=0x808ecc8,
currentPlayerTime=-1, currentPresentationTimep=0x0) at CL_Client.cpp:759
#4 0x4131d862 in idle (table=0x808ab9c, currentPlayerTime=-1,
currentPresentationTimep=0x0) at CL_Client.cpp:1891
#5 0x0805031c in SigmaClient::play() (this=0x808ab78) at
SigmaClient.cpp:1328
#6 0x080505e9 in SigmaClient::loop() (this=0x808ab78) at
SigmaClient.cpp:1376
#7 0x0805548b in run (argc=2, argv=0xbfffef34) at
SigmaClientMain.cpp:73
#8 0x08055638 in main (argc=2, argv=0xbfffef34) at
SigmaClientMain.cpp:107
#9 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
and the line 730 in AV_Scene.cpp is a function call.
729: while (m_eventHolder->popEvent (&event)) {
730: manageEvent (&event);
731: }
I was expecting to located this corruption (in the code segment?) using
valgrind.
Any hints would be of great help.
Thanks
Kurien
|