Roland Mainz schrieb:
Bernd Eggink wrote:
Roland Mainz schrieb:
On 4/14/09, Bernd Eggink <[email protected]> wrote:
[snip]
and as it doesn't crash by itself, I killed the process with signal 6.
But all I get from gdb is

    (gdb) bt
    #0  0xffffe424 in __kernel_vsyscall ()
    #1  0xb7e7d2c3 in ?? ()

which doesn't look very informative to me. Did I miss something?

Can you check whether the binary was compiled with "-g" in debug mode ?

Yes, it was compiled in debug mode, but it has been a long time since I last used gdb - I forgot to supply the program. Sorry. Here is the stack trace:

(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7e972c3 in waitpid () from /lib/libc.so.6
#2 0x0806037e in job_reap (sig=0) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/jobs.c:277 #3 0x08062ae7 in job_wait (pid=19658) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/jobs.c:1424 #4 0x08092f30 in sh_exec (t=0x81abec8, flags=5) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/xec.c:1244 #5 0x0808d355 in sh_subshell (t=0x81abec8, flags=5, comsub=2) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/subshell.c:544 #6 0x08070168 in comsubst (mp=0x81a4060, t=0x81abec8, type=2) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/macro.c:1965 #7 0x0806f751 in varsub (mp=0x81a4060) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/macro.c:1843 #8 0x0806b178 in copyto (mp=0x81a4060, endch=0, newquote=0) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/macro.c:587 #9 0x0806998f in sh_mactrim (shp=0x819e2a0, str=0x81abe61 "l=${ cat /local/docs/ksh/man93.html; }", mode=-1)
    at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/macro.c:173
#10 0x080723b8 in nv_setlist (arg=0x81abe58, flags=131584) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/name.c:324 #11 0x08091533 in sh_exec (t=0x81abe88, flags=5) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/xec.c:817 #12 0x0804e02c in exfile (shp=0x819e2a0, iop=0x81d08b8, fno=-1) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/main.c:591 #13 0x0804d666 in sh_main (ac=3, av=0xbfc96f64, userinit=0) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/main.c:366 #14 0x0804c9fd in main (argc=3, argv=0xbfc96f64) at /local/ports/monoped/ksh/work/src/src/cmd/ksh93/sh/pmain.c:46

Hope that helps.

Regards,
Bernd

--
Bernd Eggink
http://sudrala.de
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to