這樣試試

來源: ohlalala 2008-07-30 07:31:48 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (859 bytes)
回答: 沒怎麽看懂ohlalala2008-07-30 05:14:17
$export MALLOC_CHECK_=3
then run your program. If the crash happens, the error messages will be printed on stderr and the program will be aborted. If ulimit is set properly, a core file will also be created. In most cases, crash in glibc is caused by heap corruption. From the core file, maybe you can find more clues.

glibc and gcc are pretty good in compatability. I am not sure if this could be caused by different glibc. I tend to believe it's the code itself. Later versions of glibc are more strict to heap corruptions than older versions. But, if you want to try old gcc, glibc, just download them from gnu webside or install from yast/yast2 (I doubt OpenSuse's repository keeps them though). You don't have to install 8.2. Plus, 8.2 image was not free, you either had to buy it (Suse professional) or install from ftp.

Good luck.

所有跟帖: 

多謝了。suse沒有keep舊版本,能down的都在10以上。 -馬甲,又見馬甲!- 給 馬甲,又見馬甲! 發送悄悄話 (59 bytes) () 07/30/2008 postreply 07:59:14

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”