-
This crashes sbbs horribly
From
elm@VERT/ECHTOBBS to
Digital Man on Thu Nov 3 06:25:29 2011
I am building off the example code for the MAIL_SEND function that is locatedãat
http://www.synchro.net/docs/baja.html#Logic/Control%20Flow%20Functions.ããWhat I want to do is abort the mail send request if enter is pressed at theã"Send mail to who? " prompt. By default, using the example code, if you pressãenter you will start to cycle through all the users.ããSo I thought I would check for a string length of zero and then if false,ãcontinue on to the MAIL_SEND function and if true, abort. ...but this does notãwork. What I have added crashes sbbs when the mail_send function is called. Iãdo enter a correct username at the "Send mail to who? " prompt.ããcmdkey Sã clsã print "Send mail to who? "ã str nameã int namelengthã getname name 25ã strlen namelength nameã compare namelength 0ã if_falseã mail_sendã elseã print "Send aborted.\n"ã pauseã end_ifã end_cmdããechtoãbbs.echto.netãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Digital Man@VERT to
elm on Thu Nov 3 19:32:42 2011
Re: This crashes sbbs horriblyã By: elm to Digital Man on Thu Nov 03 2011 06:25 amãã > So I thought I would check for a string length of zero and then if false,ã > continue on to the MAIL_SEND function and if true, abort. ...but this doesã > not work. What I have added crashes sbbs when the mail_send function isã > called.ãããThanks, I'll have to try that out and see if I can repro and fix it. What ãversion are you running? ãã digital manããSynchronet "Real Fact" #42:ãSynchronet added Baja/PCMS support with v2.00a (1994).ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
elm@VERT/ECHTOBBS to
Digital Man on Fri Nov 4 06:26:19 2011
Re: This crashes sbbs horriblyã By: Digital Man to elm on Thu Nov 03 2011 19:32:42ãã > > So I thought I would check for a string length of zero and then if false,ã > > continue on to the MAIL_SEND function and if true, abort. ...but this doã > > not work. What I have added crashes sbbs when the mail_send function isã > > called.ã > ã > ã > Thanks, I'll have to try that out and see if I can repro and fix it. Whatã > version are you running?ããI am running 3.15b (64) for linux.ããechtoãbbs.echto.netãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Echto@VERT/ECHTOBBS to
Digital Man on Fri Nov 4 09:55:53 2011
Re: This crashes sbbs horriblyã By: elm to Digital Man on Thu Nov 03 2011 06:25:29ãã > So I thought I would check for a string length of zero and then if false,ã > continue on to the MAIL_SEND function and if true, abort. ...but this does ã > work. What I have added crashes sbbs when the mail_send function is called.ã > do enter a correct username at the "Send mail to who? " prompt.ã ãI am using 3.15b (64) for linux.ããechtoãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Echto@VERT to
Digital Man on Sat Nov 5 12:10:20 2011
Re: This crashes sbbs horriblyã By: Echto to Digital Man on Fri Nov 04 2011 09:55 amãã > > So I thought I would check for a string length of zero and then if false,ã > > continue on to the MAIL_SEND function and if true, abort. ...but this doãesã > > work. What I have added crashes sbbs when the mail_send function is callãed.ã > > do enter a correct username at the "Send mail to who? " prompt.ã > ã > I am using 3.15b (64) for linux.ãã(gdb) btã#0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã#1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã#2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã#3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã#4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã#5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã#6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0, inaddr=0x7fffeb7d2aã fulladdr=0x7fffeb7d2a10 "VERT/THRWHITE/") at qwk.cpp:162ã#7 0x00007ffff720de7c in sbbs_t::qnetmail (this=0x74d4f0, into=0x7fffeb7d2f70 ã subj=0x7ffff72a911b "", mode=4) at netmail.cpp:338ã#8 0x00007ffff719755c in sbbs_t::netmail (this=0x74d4f0, into=0x765c00 "@GOTOXã mode=0) at fido.cpp:131ã#9 0x00007ffff718926c in sbbs_t::exec_function (this=0x74d4f0, csi=0x7fffeb7d6ã#10 0x00007ffff7181012 in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7d6fa0) at eã#11 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0, cmdline=0x7fffeb7d76ã startup_dir=0x0) at exec.cpp:779ã#12 0x00007ffff7181dee in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7dade0) at eã#13 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0, cmdline=0x75a44e "maã startup_dir=0x7ffff72a911b "") at exec.cpp:779ã#14 0x00007ffff7282640 in sbbs_t::external (this=0x74d4f0, cmdline=0x75a44d "*mã startup_dir=0x7ffff72a911b "") at xtrn.cpp:1327ã#15 0x00007ffff71f0adb in sbbs_t::logon (this=0x74d4f0) at logon.cpp:434ã#16 0x00007ffff7184478 in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7f57f0) at eã---Type <return> to continue, or q <return> to quit---ã#17 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0, cmdline=0x7fffeb7f5eã startup_dir=0x0) at exec.cpp:779ã#18 0x00007ffff7181dee in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7f9630) at eã#19 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0, cmdline=0x752c61 "loã at exec.cpp:779ã#20 0x00007ffff7158c95 in sbbs_t::answer (this=0x74d4f0) at answer.cpp:418ã#21 0x00007ffff7203758 in node_thread (arg=0x74d4f0) at main.cpp:3899ã#22 0x00007ffff6681c1a in start_thread () from /lib64/libpthread.so.0ã#23 0x00007ffff5c462cd in clone () from /lib64/libc.so.6ãããechtoã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Echto@VERT to
Digital Man on Sat Nov 5 12:14:00 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sat Nov 05 2011 12:10 pmãã > Re: This crashes sbbs horriblyã > By: Echto to Digital Man on Fri Nov 04 2011 09:55 amã > ã > > > So I thought I would check for a string length of zero and then if falãse,ã > > > continue on to the MAIL_SEND function and if true, abort. ...but thisã doã > esã > > > work. What I have added crashes sbbs when the mail_send function is cãallã > ed.ã > > > do enter a correct username at the "Send mail to who? " prompt.ã > >ã > > I am using 3.15b (64) for linux.ãã(gdb) btã#0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã#1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã#2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã#3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã#4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã#5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã#6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ãinaddr=0x7fffeb7d2a9e "",ã fulladdr=0x7fffeb7d2a10 "VERT/THRWHITE/") at qwk.cpp:162ã#7 0x00007ffff720de7c in sbbs_t::qnetmail (this=0x74d4f0, into=0x7fffeb7d2f70ã"@GOTOXY:51,13@",ã subj=0x7ffff72a911b "", mode=4) at netmail.cpp:338ã#8 0x00007ffff719755c in sbbs_t::netmail (this=0x74d4f0, into=0x765c00ã"@GOTOXY:51,13@", title=0x7ffff72a911b "",ã mode=0) at fido.cpp:131ã#9 0x00007ffff718926c in sbbs_t::exec_function (this=0x74d4f0,ãcsi=0x7fffeb7d6fa0) at execfunc.cpp:184ã#10 0x00007ffff7181012 in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7d6fa0) atãexec.cpp:1134ã#11 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0,ãcmdline=0x7fffeb7d7600 "mailmenu", csi=0x7fffeb7dade0,ã startup_dir=0x0) at exec.cpp:779ã#12 0x00007ffff7181dee in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7dade0) atãexec.cpp:1287ã#13 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0, cmdline=0x75a44eã"mainmenu", csi=0x759d08,ã startup_dir=0x7ffff72a911b "") at exec.cpp:779ã#14 0x00007ffff7282640 in sbbs_t::external (this=0x74d4f0, cmdline=0x75a44dã"*mainmenu", mode=2,ã startup_dir=0x7ffff72a911b "") at xtrn.cpp:1327ã#15 0x00007ffff71f0adb in sbbs_t::logon (this=0x74d4f0) at logon.cpp:434ã#16 0x00007ffff7184478 in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7f57f0) atãexec.cpp:1711ã---Type <return> to continue, or q <return> to quit---ã#17 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0,ãcmdline=0x7fffeb7f5e50 "echtologin", csi=0x7fffeb7f9630,ã startup_dir=0x0) at exec.cpp:779ã#18 0x00007ffff7181dee in sbbs_t::exec (this=0x74d4f0, csi=0x7fffeb7f9630) atãexec.cpp:1287ã#19 0x00007ffff71800b4 in sbbs_t::exec_bin (this=0x74d4f0, cmdline=0x752c61ã"login", csi=0x759d08, startup_dir=0x0)ã at exec.cpp:779ã#20 0x00007ffff7158c95 in sbbs_t::answer (this=0x74d4f0) at answer.cpp:418ã#21 0x00007ffff7203758 in node_thread (arg=0x74d4f0) at main.cpp:3899ã#22 0x00007ffff6681c1a in start_thread () from /lib64/libpthread.so.0ã#23 0x00007ffff5c462cd in clone () from /lib64/libc.so.6ããechtoã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Echto on Sat Nov 5 21:01:34 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sat Nov 05 2011 12:10 pmãã > Re: This crashes sbbs horriblyã > By: Echto to Digital Man on Fri Nov 04 2011 09:55 amã >ã > > > So I thought I would check for a string length of zero and then ifã > false,ã > > > continue on to the MAIL_SEND function and if true, abort. ...butã > this do esã > > > work. What I have added crashes sbbs when the mail_send function isã > call ed.ã > > > do enter a correct username at the "Send mail to who? " prompt.ã > >ã > > I am using 3.15b (64) for linux.ã >ã > (gdb) btã > #0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã > #1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã > #2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã > #3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã > #4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã > #5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã > #6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ã > inaddr=0x7fffeb7d2aããThanks, that back-trace made it a quick and simple fix. Do you think you can ãprovide a bt for your other crash with MAIL_SEND too? :-)ããThanks, ã
ã digital man
ã
ãSynchronet "Real Fact" #75:
ãMichael Swindell still has the "Synchronet Blimp" in his possession.
ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Echto@VERT/ECHTOBBS to
Digital Man on Sun Nov 6 05:08:04 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Digital Man to Echto on Sat Nov 05 2011 21:01:34ãã > Re: gdb back-trace - This crashes sbbs horriblyã > By: Echto to Digital Man on Sat Nov 05 2011 12:10 pmã > ã > > Re: This crashes sbbs horriblyã > > By: Echto to Digital Man on Fri Nov 04 2011 09:55 amã > >ã > > > > So I thought I would check for a string length of zero and then ifã > > false,ã > > > > continue on to the MAIL_SEND function and if true, abort. ...butã > > this do esã > > > > work. What I have added crashes sbbs when the mail_send function iã > > call ed.ã > > > > do enter a correct username at the "Send mail to who? " prompt.ã > > >ã > > > I am using 3.15b (64) for linux.ã > >ã > > (gdb) btã > > #0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã > > #1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã > > #2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã > > #3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã > > #4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã > > #5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã > > #6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ã > > inaddr=0x7fffeb7d2aã > ã > Thanks, that back-trace made it a quick and simple fix. Do you think you canã > provide a bt for your other crash with MAIL_SEND too? :-)ã ãUhm... that was the back-trace from the MAIL_SEND crash. :) If I comment outãthe MAIL_SEND command in the code sbbs does not crash.ããechtoãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Echto@VERT/ECHTOBBS to
Digital Man on Sun Nov 6 05:10:03 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sun Nov 06 2011 05:08:04ãã > > > (gdb) btã > > > #0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã > > > #1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã > > > #2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã > > > #3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã > > > #4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã > > > #5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã > > > #6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ã > > > inaddr=0x7fffeb7d2aã > >ã > > Thanks, that back-trace made it a quick and simple fix. Do you think you ã > > provide a bt for your other crash with MAIL_SEND too? :-)ã ãIs the fix available? Possibly a diff file? :)ããechtoããã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Echto@VERT/ECHTOBBS to
Digital Man on Sun Nov 6 05:14:47 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sun Nov 06 2011 05:10:03ãã > Re: gdb back-trace - This crashes sbbs horriblyã > By: Echto to Digital Man on Sun Nov 06 2011 05:08:04ã > ã > > > > (gdb) btã > > > > #0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã > > > > #1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã > > > > #2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã > > > > #3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã > > > > #4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã > > > > #5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã > > > > #6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ã > > > > inaddr=0x7fffeb7d2aã > > >ã > > > Thanks, that back-trace made it a quick and simple fix. Do you think yã > > > provide a bt for your other crash with MAIL_SEND too? :-)ã > ã > Is the fix available? Possibly a diff file? :)ã > ã > echtoã > ããNevermind. :) No coffee yet today. I grabbing the diff from cvs. thanks!ãI guess it is time to go raid the kitchen for some caffeine.ããechtoãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Echto@VERT/ECHTOBBS to
Digital Man on Sun Nov 6 05:25:34 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sun Nov 06 2011 05:08:04ãã > > Thanks, that back-trace made it a quick and simple fix. Do you think you ã > > provide a bt for your other crash with MAIL_SEND too? :-)ã > ã > Uhm... that was the back-trace from the MAIL_SEND crash. :) If I comment oã > the MAIL_SEND command in the code sbbs does not crash.ã ãThe fix resolved the MAIL_SEND crash. :) Thank you!ããechtoãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
-
From
Digital Man@VERT to
Echto on Sun Nov 6 15:21:02 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sun Nov 06 2011 05:08 amãã > Re: gdb back-trace - This crashes sbbs horriblyã > By: Digital Man to Echto on Sat Nov 05 2011 21:01:34ã >ã > > Re: gdb back-trace - This crashes sbbs horriblyã > > By: Echto to Digital Man on Sat Nov 05 2011 12:10 pmã > >ã > > > Re: This crashes sbbs horriblyã > > > By: Echto to Digital Man on Fri Nov 04 2011 09:55 amã > > >ã > > > > > So I thought I would check for a string length of zero and thenã > ifã > > > false,ã > > > > > continue on to the MAIL_SEND function and if true, abort.ã > ...butã > > > this do esã > > > > > work. What I have added crashes sbbs when the mail_sendã > function iã > > > call ed.ã > > > > > do enter a correct username at the "Send mail to who? " prompt.ã > > > >ã > > > > I am using 3.15b (64) for linux.ã > > >ã > > > (gdb) btã > > > #0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã > > > #1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã > > > #2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã > > > #3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã > > > #4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã > > > #5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã > > > #6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ã > > > inaddr=0x7fffeb7d2aã > >ã > > Thanks, that back-trace made it a quick and simple fix. Do you think youã > canã > > provide a bt for your other crash with MAIL_SEND too? :-)ã >ã > Uhm... that was the back-trace from the MAIL_SEND crash. :) If I commentã > out the MAIL_SEND command in the code sbbs does not crash.ããOh, okay. That's been fixed then. It's actually not a crash, but an assertion ã(not the same thing). If you run the release build instead of a debug build, do ãyou have the same problem (you shouldn't)? ãã digital manããSynchronet "Real Fact" #50:ãRob Swindell was introduced to BBSing in 1982 by his older brother, Dr. Seuss.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Echto on Sun Nov 6 15:22:12 2011
Re: gdb back-trace - This crashes sbbs horriblyã By: Echto to Digital Man on Sun Nov 06 2011 05:10 amãã > Re: gdb back-trace - This crashes sbbs horriblyã > By: Echto to Digital Man on Sun Nov 06 2011 05:08:04ã >ã > > > > (gdb) btã > > > > #0 0x00007ffff5ba6455 in raise () from /lib64/libc.so.6ã > > > > #1 0x00007ffff5ba7870 in abort () from /lib64/libc.so.6ã > > > > #2 0x00007ffff5be199b in ?? () from /lib64/libc.so.6ã > > > > #3 0x00007ffff5be6f66 in ?? () from /lib64/libc.so.6ã > > > > #4 0x00007ffff5bebcfc in free () from /lib64/libc.so.6ã > > > > #5 0x00007ffff5bd7465 in fclose () from /lib64/libc.so.6ã > > > > #6 0x00007ffff721d878 in sbbs_t::qwk_route (this=0x74d4f0,ã > > > > inaddr=0x7fffeb7d2aã > > >ã > > > Thanks, that back-trace made it a quick and simple fix. Do you thinkã > youã > > > provide a bt for your other crash with MAIL_SEND too? :-)ã >ã > Is the fix available? Possibly a diff file? :)ããHere is the diff (removal of a single line):ãã
http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/qwk.cpp?r1=1.57&r2=1.58 ãã digital manããSynchronet "Real Fact" #45:ãSynchronet External X/Y/ZMODEM protocol driver (SEXYZ) was introduced in 2005.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã