[ADIC] #44: segv during reinterpret cast of SgNode instance address set from string in xaif
#44: segv during reinterpret cast of SgNode instance address set from string in xaif --------------------------+------------------------------------------------- Reporter: utke | Owner: norris Type: defect | Status: new Priority: major | Milestone: Component: XAIF parsing | Version: Keywords: | --------------------------+------------------------------------------------- This is placeholder to collect info about this problem. Symptom: Program received signal SIGSEGV, Segmentation fault. 0x00002aaab1f7192b in __dynamic_cast () from /usr/lib64/libstdc++.so.6 (gdb) where #0 0x00002aaab1f7192b in __dynamic_cast () from /usr/lib64/libstdc++.so.6 #1 0x00002aaaac2cf691 in isSgStatement(SgNode*) () from /sandbox/Argonne/Apps/rose_inst/lib/librose.so.0 #2 0x00000000005d8169 in adic::SgXAIF::DFSVisitor_XAIF2Sage::onStartElement ( this=0x7fffffffaff0, e=0x2aaae49187f0, empty=true) at ../ADIC/xaif/XAIFVisitors.cpp:296 #3 0x00000000005aee30 in adic::SgXAIF::DFSTraversal::visit ( this=0x7fffffffb9b0, e=0x2aaae49187f0) at ../ADIC/xaif/XAIFGraphTraversals.cpp:119 #4 0x00000000005af0aa in adic::SgXAIF::DFSTraversal::visit ( this=0x7fffffffb9b0, e=0x2aaae4665e60) at ../ADIC/xaif/XAIFGraphTraversals.cpp:136 #5 0x00000000005af4a4 in adic::SgXAIF::DFSTraversal::visit ( this=0x7fffffffb9b0, e=0x2aaae4744050) at ../ADIC/xaif/XAIFGraphTraversals.cpp:157 #6 0x00000000005af0aa in adic::SgXAIF::DFSTraversal::visit ( this=0x7fffffffb9b0, e=0x2aaae408a7e0) at ../ADIC/xaif/XAIFGraphTraversals.cpp:136 #7 0x00000000005af0aa in adic::SgXAIF::DFSTraversal::visit ( this=0x7fffffffb9b0, e=0x2aaae4081d10) at ../ADIC/xaif/XAIFGraphTraversals.cpp:136 #8 0x00000000005ae780 in adic::SgXAIF::DFSTraversal::traverse ( this=0x7fffffffb9b0, e=0x2aaae4081d10) at ../ADIC/xaif/XAIFGraphTraversals.cpp:56 #9 0x000000000060e6b7 in main (myargc=3, myargv=0x7fffffffd3c8) at ../ADIC/main/ADIC.cpp:492 (gdb) p staddr $1 = 18446744073243085568 (gdb) p stmtAddress $2 = "46913461308160" I run on 64 bit opensuse 11.2 with gcc 4.4.1 and have ROSE (pre-release beta version: 0.9.5a) --- using EDG C/C++ front-end version: edg-3.3 --- using OFP Fortran parser version: ofp-0.7.2 and rose svn revision: 779 -- Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/44> ADIC <http://trac.mcs.anl.gov/projects/ADIC> ADIC: Automatic Differentiation for C and C++
#44: segv during reinterpret cast of SgNode instance address set from string in xaif --------------------------+------------------------------------------------- Reporter: utke | Owner: norris Type: defect | Status: new Priority: major | Milestone: Component: XAIF parsing | Version: Keywords: | --------------------------+------------------------------------------------- Comment(by utke): Just as a note - from the debugging session I am guessing that something goes seriously wrong much earlier and the fact that the strings isn't properly converted to the u int is really just a symptom and has little to do with the cause. -- Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/44#comment:1> ADIC <http://trac.mcs.anl.gov/projects/ADIC> ADIC: Automatic Differentiation for C and C++
#44: segv during reinterpret cast of SgNode instance address set from string in xaif --------------------------+------------------------------------------------- Reporter: utke | Owner: norris Type: defect | Status: new Priority: major | Milestone: Component: XAIF parsing | Version: Keywords: | --------------------------+------------------------------------------------- Comment(by utke): may be r:1ff1cb2e2889 fixes this? -- Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/44#comment:2> ADIC <http://trac.mcs.anl.gov/projects/ADIC> ADIC: Automatic Differentiation for C and C++
#44: segv during reinterpret cast of SgNode instance address set from string in xaif --------------------------+------------------------------------------------- Reporter: utke | Owner: norris Type: defect | Status: new Priority: major | Milestone: Component: XAIF parsing | Version: Keywords: | --------------------------+------------------------------------------------- Comment(by utke): i meant changeset:1ff1cb2e2889 -- Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/44#comment:3> ADIC <http://trac.mcs.anl.gov/projects/ADIC> ADIC: Automatic Differentiation for C and C++
#44: segv during reinterpret cast of SgNode instance address set from string in xaif --------------------------+------------------------------------------------- Reporter: utke | Owner: norris Type: defect | Status: new Priority: major | Milestone: Component: XAIF parsing | Version: Keywords: | --------------------------+------------------------------------------------- Comment(by norris): Replying to [comment:3 utke]:
i meant changeset:1ff1cb2e2889
Does it fix the crash? I am a bit worried that this specific fix assumes that uintptr_t is defined, which may not be true everywhere, so we have to at least check for it at configure time and use the next best type if uintptr_t is not available. -- Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/44#comment:4> ADIC <http://trac.mcs.anl.gov/projects/ADIC> ADIC: Automatic Differentiation for C and C++
participants (1)
-
ADIC