作者BBSealion (海獅)
看板EE_DSnP
標題[問題] 奇怪的狀況...
時間Sun Jan 16 01:40:51 2011
我剛更新完sat的檔案該有的路徑等
最後能在cirFraig.cpp中include sat.h
然後順利make完成沒有error message
但奇怪的是我讀檔開始發生問題
讀sim10沒問題
但讀sim09或08等大於1000gate的檔案就會讀完後segment error
甚至還有發生
fraig: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char
*) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk,
fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size
& 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
但我新增的code都只在cirFraig.cpp這個檔案中
理論上讀檔完全不會用到他才對,為什麼會有影響呢?
我找回我以前的檔案,還沒做sat相關部分的
就都不會crash
--
請問一下大家,這樣情況,可能發生的原因是什麼呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.168.220.12
※ 編輯: BBSealion 來自: 218.168.220.12 (01/16 02:04)
1F:推 ric2k1:漏回了這篇... 請問問題解決了嗎? 有用 debugger 看一下嗎? 01/16 17:15
2F:推 tomap41017:感覺像開檔有誤 01/16 17:30
3F:→ BBSealion:喔喔 有解決了 謝謝! 算是map要到空位置的錯誤 01/16 19:46