[問題] 程式錯誤斷線

作者: hrs113355 (小分分)   2009-01-31 19:46:36
從PttCurrent抓下來的程式
(code有改過一點點 但是在剛抓下來的時候也有發生同樣的情形)
有時候進到使用者名單的時候會crash
用gdb去看了一下
似乎是掛在setflags
請問是否有解?
<第一次掛掉>
(gdb) where
#0 0x282823a7 in nanosleep () from /lib/libc.so.5
#1 0x28276686 in sleep () from /lib/libc.so.5
#2 0x0807531f in abort_bbs_debug (sig=11) at mbbsd.c:325
#3 0xbfbfff94 in ?? ()
#4 0x0000000b in ?? ()
#5 0x0000000c in ?? ()
#6 0xbfbfb680 in ?? ()
#7 0x6f00006f in ?? ()
#8 0x080750e2 in setflags (mask=240, value=-1077955044) at mbbsd.c:169
#9 0x08053650 in vs_cols (cols=0x6f00006f, ws=0x80b8f50, n=240) at
visio.c:715
#10 0x0807c471 in t_users () at talk.c:1972
#11 0x08077b6b in igetch () at io.c:550
#12 0x080521c9 in domenu (cmdmode=8, cmdtitle=0x809badc "各種服務", cmd=18,
cmdtable=0x809bba0) at menu.c:497
#13 0x08052351 in Service () at menu.c:847
#14 0x08051f93 in domenu (cmdmode=1, cmdtitle=0x809ba8b "主功\能表", cmd=259,
cmdtable=0x809c040) at menu.c:438
#15 0x0805224f in main_menu () at menu.c:733
#16 0x080775aa in main (argc=2, argv=0xf, envp=0xbfbfdacc) at mbbsd.c:1393
(gdb)
<第二次掛掉>
(gdb) where
#0 0x282823a7 in nanosleep () from /lib/libc.so.5
#1 0x28276686 in sleep () from /lib/libc.so.5
#2 0x0807531f in abort_bbs_debug (sig=11) at mbbsd.c:325
#3 0xbfbfff94 in ?? ()
#4 0x0000000b in ?? ()
#5 0x0000000c in ?? ()
#6 0xbfbfaae0 in ?? ()
#7 0x00000005 in ?? ()
#8 0x080750e2 in setflags (mask=240, value=-1077958020) at mbbsd.c:169
#9 0x08053650 in vs_cols (cols=0x5, ws=0x80b8f50, n=240) at visio.c:715
#10 0x0807c471 in t_users () at talk.c:1972
#11 0x08077b6b in igetch () at io.c:550
#12 0x08085f5f in pmore (fpath=0xbfbfd100 "home/Y/Yahoo/M.1233402160.A.109",
promptend=1)
at pmore.c:2343
#13 0x08082954 in more (fpath=0xbfbfd100 "home/Y/Yahoo/M.1233402160.A.109",
promptend=1)
at more.c:26
#14 0x0806c3c9 in mail_read (ent=8, fhdr=0x80c2380, direct=0x80b9360
"home/Y/Yahoo/.DIR")
at mail.c:1174
#15 0x08062326 in i_read (cmdmode=16, direct=0x80b8d80 "home/Y/Yahoo/.DIR",
dotitle=0x806a8fa <mail_all+712>, doentry=0x806a9d0 <mailtitle+206>,
rcmdlist=0x80a3080, bidcache=-1) at read.c:1068
#16 0x0806ba82 in m_read () at mail.c:1816
#17 0x08051f93 in domenu (cmdmode=3, cmdtitle=0x809bab8 "電子郵件", cmd=259,
cmdtable=0x809bf20) at menu.c:438
#18 0x080522dd in Mail () at menu.c:819
#19 0x08051f93 in domenu (cmdmode=1, cmdtitle=0x809ba8b "主功\能表", cmd=259,
cmdtable=0x809c040) at menu.c:438
#20 0x0805224f in main_menu () at menu.c:733
#21 0x080775aa in main (argc=2, argv=0xf, envp=0x80a851a) at mbbsd.c:1393

Links booklink

Contact Us: admin [ a t ] ucptt.com