Re: [mpls-linux-general] gdb out put of segmentation fault.
Status: Beta
Brought to you by:
jleu
From: Abhijit G. <gab...@ee...> - 2001-09-19 04:55:40
|
Perhaps the problem here is some pointer which is not valid in current context is tried to be freed. I dont know the ready made solution, but look for a "free" statement that u think should get executed before the malloc where the core dump is occring. Or you could be freeing more data than malloced in previous case. --a L Srinivas Reddy wrote : >GNU gdb 19991004 >Copyright 1998 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 "i386-redhat-linux"... >(gdb) r >Starting program: /usr/home/lsreddy/mpls/ldp-portable-0.060/ldp_linux >add global 172.16.3.1 >Adding interface eth0 >Adding interface eth1 >Adding route ac100201/32 via 3 >Adding route ac100301/32 via 3 >Adding route ac100300/24 via 3 >Adding route ac100100/24 via 2 >Adding route 7f000000/8 via 0 >Adding route 00000000/0 via 2 >Adding global object with LSRID ac100301 >prompt>add interface eth1 >Adding interface eth1 >prompt>SWITCHED TO TCP LISTEN >SWITCHED TO TCP EVENTDATA >PRT: ldp_state_recv_init: cannot find adj >SWITCHED TO UDP DATA >SWITCHED TO TCP LISTEN >SWITCHED TO TCP EVENTDATA >SWITCHED TO TCP EVENTDATA >SWITCHED TO TCP EVENTDATA >SWITCHED TO TCP EVENTDATA >index: 1 ac100202/32 2 >SWITCHED TO UDP DATA >SWITCHED TO UDP DATA >SWITCHED TO UDP DATA >SWITCHED TO TCP LISTEN |