[問題] cirr - 奇怪的bug...

看板EE_DSnP作者 (美良)時間14年前 (2010/01/19 15:43), 編輯推噓3(303)
留言6則, 3人參與, 最新討論串1/1
就是... 我自己寫了一個dofile如下 cirr testcases/C880.cir breset 256 65521 65521 cirsetv -f cirb -a usage cirr testcases/C432.cir breset 256 65521 65521 cirr testcases/C880.cir -r (*) q -f 執行到打(*)的那行我的程式就會crash... 而且 我把(*)這行換成usage也會crash... 用ddd顯示的結果分別如下面所示: 1.) bdd> cirr testcases/C880.cir -r Note: original circuit is replaced... Program received signal SIGSEGV, Segmentation fault. 0xb7d5e0d2 in ?? () from /lib/tls/i686/cmov/lib.so.6 2.) bdd> usage Period time .... Total time ... Program received signal SIGSEGV, Segmentation fault. 0xb7d55ddec in ?? () from /lib/tls/i686/cmov/lib.so.6 請問是哪裡出錯了呢? 到底是我寫錯了還是發生了什麼事了呢.....orz -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.250.191

01/19 17:41, , 1F
我也遇到一樣的bug...
01/19 17:41, 1F

01/19 19:14, , 2F
你可以不斷"up"看看有沒有出現看的到的位置而非"??"
01/19 19:14, 2F

01/19 19:15, , 3F
或者用valgrind試試看
01/19 19:15, 3F

01/19 19:44, , 4F
我找到了在reset的時候要先清supports在清hash table
01/19 19:44, 4F

01/19 19:57, , 5F
真的好了耶! 話說我up了一陣子也沒看出來orz...
01/19 19:57, 5F

01/19 19:59, , 6F
只是為什麼錯誤會是這樣呢.....
01/19 19:59, 6F
文章代碼(AID): #1BLMAciF (EE_DSnP)