看板 EE_DSnP 關於我們 聯絡資訊
※ 引述《waytin (waytin)》之銘言: : 用gdb找到以下這個 : Program received signal SIGSEGV, Segmentation fault. : 0x08055054 in __static_initialization_and_destruction_0 (__initialize_p=Cannot access memory at address 0xbfa29360 : ) at bddMgr.cpp:19 : 19 BddMgr* bddMgr = new BddMgr; : 打up他說不能access... : 請問這是什麼問題啊? (gdb) run Starting program: /export/home/B94/b94901076/programming/project/bdd/bdd Program received signal SIGSEGV, Segmentation fault. 0x0805505c in __static_initialization_and_destruction_0 (__initialize_p=Cannot access memory at address 0xbfe57790 ) at bddMgr.cpp:19 19 BddMgr* bddMgr = new BddMgr; (gdb) up Cannot access memory at address 0xbfe5779c (gdb) where #0 0x0805505c in __static_initialization_and_destruction_0 (__initialize_p=Cannot access memory at address 0xbfe57790 ) at bddMgr.cpp:19 Cannot access memory at address 0xbfe5779c Cannot access memory at address 0xbfe5779c 那就麻煩老師了。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.7.59
ric2k1:也許你在 BddMgr 的 constructor 裡 access 了不該 access 06/24 21:20
ric2k1:的 memory 06/24 21:20
waytin:我不太懂,它在BddMgr* bddMgr = new BddMgr; 這行就爆了 06/24 21:23
waytin:constructor只呼叫void init這應該沒問題啊 06/24 21:23
ric2k1:把這行 comment 掉, 換到其他global 的地方執行看看... 06/24 21:50
waytin:老師 comment掉就不會過了= = 06/24 22:04