strange, I attached your code to the end, still get seg-fault.

來源: MGM 2006-08-02 13:30:53 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (457 bytes)
... ...
xorl %eax, %eax
incl %eax
xorl %ebx, %ebx
# movl $1, %eax
# movl $0, %ebx
# int $0x80
The commented code are my original 'exit' call. I guess they are equivalent to yours, right? Anyway, this time i used your code, and run it by both GCC and as + ld, the result stays the same, segmentation fault occurs. Any ideas?
Oh, dear. linux is such mystirious world for me..
Thanks very much for looking into the situation.

所有跟帖: 

still, not working.. -MGM- 給 MGM 發送悄悄話 (396 bytes) () 08/02/2006 postreply 14:04:13

still not working.. -MGM- 給 MGM 發送悄悄話 (396 bytes) () 08/02/2006 postreply 14:03:16

請您先登陸,再發跟帖!

發現Adblock插件

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

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

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

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