F
Florian Quetting
Hello.
I wrote a litte program, that generates a SIGSEGV after a while.
parse_umfeld is my method. It runs through about 330 times without error,
but the next time, call to strlen (from within parse_umfeld) generates a
SIGSEGV.
How could I find out, why exactly the problem occures?
gdb bt gives:
Program received signal SIGSEGV, Segmentation fault.
0xb7e30173 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7e30173 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0x0804a20a in c_Parser:arse_umfeld (this=0x8050050,
buffer=0x8053c8b
"<Feld><Boden>Rasen</Boden><Ameise><Typ>Rot</Typ><ID>1</ID><Blickrichtung>NO</Blickrichtung><Angegriffen>0</Angegriffen></Ameise></Feld><Feld><Boden>Rasen</Boden></Feld><Feld><Boden>Rasen</Boden></Feld"...)
at c_Parser.cpp:69
<snip>
What does entry #0 mean?
Regards,
Flo
I wrote a litte program, that generates a SIGSEGV after a while.
parse_umfeld is my method. It runs through about 330 times without error,
but the next time, call to strlen (from within parse_umfeld) generates a
SIGSEGV.
How could I find out, why exactly the problem occures?
gdb bt gives:
Program received signal SIGSEGV, Segmentation fault.
0xb7e30173 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7e30173 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0x0804a20a in c_Parser:arse_umfeld (this=0x8050050,
buffer=0x8053c8b
"<Feld><Boden>Rasen</Boden><Ameise><Typ>Rot</Typ><ID>1</ID><Blickrichtung>NO</Blickrichtung><Angegriffen>0</Angegriffen></Ameise></Feld><Feld><Boden>Rasen</Boden></Feld><Feld><Boden>Rasen</Boden></Feld"...)
at c_Parser.cpp:69
<snip>
What does entry #0 mean?
Regards,
Flo