gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seg fault even though address space is accessible


From: Todimala
Subject: Seg fault even though address space is accessible
Date: Tue, 29 Jul 2008 15:13:45 -0700 (PDT)

Hi All, I got a segmentation fault while accessing a structure element. I pasted the output from gdb and the backtrace. However if I am able successfully access the structure using the address from the gdb output after it seg faulted. Output from gdb also give below. Any idea y this is happening? yes I am trying to access the structure element from where it seg faulted. I am surely missing something. Any help is appreciated! Thanks, Ajay. $$$$$$$$$$$$$ SEG FAULT $$$$$$$$$$$$$$$$$ Program received signal SIGSEGV, Segmentation fault. checkBFVectorList (BFVecList=0x84187a0, BFlen=699) at compute_sticky_IP_per_ASN.c:776 776 vector = vector->nextVector; $$$$$$$$$$$$$$$$ BT $$$$$$$$$$$$$$$$$$$$ (gdb) bt #0 checkBFVectorList (BFVecList=0x84187a0, BFlen=699) at compute_sticky_IP_per_ASN.c:776 #1 0x08051bb3 in buildPeerDetailStructFromLine (line=0x8418dd0 "566", peerStruct=0x8047124) at compute_sticky_IP_per_ASN.c:752 #2 0x080522c1 in main (argc=11, argv=0x8047348) at compute_sticky_IP_per_ASN.c:179 $$$$$$$$$$$$$$$$$$$$ ACCESSING STRUCTURE $$$$$$$$$$$$$$$$$$$ (gdb) p *(bitfieldItemStruct *) 0x84187a0 $1 = {BFVector = 3309413121, nextVector = 0x84187b0} (gdb) p ((bitfieldItemStruct *) 0x84187a0)->nextVector $2 = (struct bitfieldItem *) 0x84187b0 (gdb) p ((struct bitfieldItem *) 0x84187a0)->nextVector $3 = (struct bitfieldItem *) 0x84187b0

View this message in context: Seg fault even though address space is accessible
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]