From: Rocky B. <roc...@gm...> - 2016-03-12 10:17:46
|
This failure means that debugger signal handing is not working for you. This is a debugger is for bash 3.x, and that specific debugger code is about 9 years old. I am not going to be further developing code this old. But if others are so motivated to do so, I'll accept patches. For that to happen, unless it is yourself, the person helping you would probably need to know the OS and version of bash you are using. On Sat, Mar 12, 2016 at 4:20 AM, Song,Ruogang <ruo...@pa...> wrote: > > > --- /tmp/sig.check 2016-03-12 17:16:57.000000000 +0800 > +++ /cpic/sxxsjs/cs1/bashdb-3.1-0.09/test/sig.right 2007-10-14 > 15:27:46.000000000 +0800 > @@ -21,6 +21,7 @@ > +handle TERM bogus > Need to give a command: stop, nostop, stack, nostack, print, noprint > +eval kill -TERM $$ > +Program received signal SIGTERM (15)... > +### Should not have printed a stack trace above... > +handle TERM noprint > +handle TERM stack > @@ -37,11 +38,20 @@ > SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 > "$BASH_COMMAND" "$@"' SIGTERM > +continue > Program received signal SIGTERM (15)... > -->0 in file `sig.sh' at line 17 > -##1 source("sig.sh") called from file `bashdb' at line 277 > -->2 main() called from file `bashdb' at line 0 > +->0 in file `dbg-cmds.inc' at line 2 > +##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `dbg-cmds.inc' > at line 343 > +->2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `dbg-cmds.inc' > at line 157 > +##3 _Dbg_cmdloop() called from file `dbg-sig.inc' at line 220 > +##4 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file > `sig.sh' at line 7 > +##5 source("sig.sh") called from file `bashdb' at line 277 > +##6 main() called from file `bashdb' at line 0 > +### Should have printed a stack trace above... > +continue > ++where > +->0 in file `sig.sh' at line 741 > +##1 source("sig.sh") called from file `bashdb' at line 277 > +##2 main() called from file `bashdb' at line 0 > ++continue > Program received signal SIGINT (2)... > ->0 in file `sig.sh' at line 23 > ##1 source("sig.sh") called from file `bashdb' at line 277 > @@ -51,9 +61,5 @@ > ##1 source("sig.sh") called from file `bashdb' at line 277 > ->2 main() called from file `bashdb' at line 0 > Debugged program terminated normally. Use q to quit or R to restart. > -+where > -No stack. > -+continue > -The program is not being run. > +kill > sig.tests: line 11: xxxx Killed $BASH ${TOP_BUILDDIR}bashdb -B -q -L .. > -x $cmdfile $debugged_script > --- /tmp/sig.check2 2016-03-12 17:16:57.000000000 +0800 > +++ /tmp/sig.right 2016-03-12 17:16:57.000000000 +0800 > @@ -21,6 +21,7 @@ > +handle TERM bogus > Need to give a command: stop, nostop, stack, nostack, print, noprint > +eval kill -TERM $$ > +Program received signal SIGTERM (15)... > +### Should not have printed a stack trace above... > +handle TERM noprint > +handle TERM stack > @@ -37,11 +38,20 @@ > SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 > "$BASH_COMMAND" "$@"' SIGTERM > +continue > Program received signal SIGTERM (15)... > -->0 in file `sig.sh' at line 17 > -##1 source("sig.sh") called from file `bashdb' at line 277 > -->2 main() called from file `bashdb' at line 0 > +->0 in file `dbg-cmds.inc' at line 2 > +##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `dbg-cmds.inc' > at line 343 > +->2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `dbg-cmds.inc' > at line 157 > +##3 _Dbg_cmdloop() called from file `dbg-sig.inc' at line 220 > +##4 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file > `sig.sh' at line 7 > +##5 source("sig.sh") called from file `bashdb' at line 277 > +##6 main() called from file `bashdb' at line 0 > +### Should have printed a stack trace above... > +continue > ++where > +->0 in file `sig.sh' at line 741 > +##1 source("sig.sh") called from file `bashdb' at line 277 > +##2 main() called from file `bashdb' at line 0 > ++continue > Program received signal SIGINT (2)... > ->0 in file `sig.sh' at line 23 > ##1 source("sig.sh") called from file `bashdb' at line 277 > @@ -51,9 +61,5 @@ > ##1 source("sig.sh") called from file `bashdb' at line 277 > ->2 main() called from file `bashdb' at line 0 > Debugged program terminated normally. Use q to quit or R to restart. > -+where > -No stack. > -+continue > -The program is not being run. > +kill > sig.tests: line 11: xxxx Killed $BASH ${TOP_BUILDDIR}bashdb -B -q -L .. > -x $cmdfile $debugged_script > FAIL: run-sig > PASS: run-skip > checking subshell1... > checking subshell2... > checking subshell3... > PASS: run-subshell > PASS: run-tbreak > checking trace... > checking trace2... > PASS: run-trace > PASS: run-watch1 > PASS: run-watch2 > =================================================== > 1 of 25 tests failed > Please report to bas...@li... > =================================================== > make[2]: *** [check-TESTS] Error 1 > make[2]: Leaving directory `/cpic/sxxsjs/cs1/bashdb-3.1-0.09/test' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory `/cpic/sxxsjs/cs1/bashdb-3.1-0.09/test' > make: *** [check-recursive] Error 1 > > > > Best Regards, > [logo+纳斯达克邮件.png] > 宋若刚 > Professional Talent Acquisition > Mobile: +86.136.8219.7690 > Email: ruo...@pa...<mailto:Jac...@pa...> > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > Bashdb-devel mailing list > Bas...@li... > https://lists.sourceforge.net/lists/listinfo/bashdb-devel > |