Discussion:
[ast-developers] $ ksh93 --foobarbla # causes crash...
Roland Mainz
2013-08-14 20:38:55 UTC
Permalink
Hi!

----

ast-ksh.2013-08-14 crashes on Solaris 11/B145/AMD64/64bit if I run it
with an unkown/unsupported option.

Example:
-- snip --
$ dbx ~/bin/ksh
(dbx) run --foobarbla
Running: ksh --foobarbla
(process id 15114)
Reading en_US.UTF-8.so.3
Reading methods_unicode.so.3
ksh: foobarbla: bad option(s)
Usage: ksh [ options ] [arg ...]
signal SEGV (no mapping at the fault address) in sh_exit at line 612
in file "fault.c"
612 if(pp->mode == SH_JMPIO && xno!=ERROR_NOEXEC)
(dbx) where
=>[1] sh_exit(xno = 2), line 612 in "fault.c"
[2] errorv(id = (nil), level = 4, ap = 0xfffffd7fffdff690), line 615
in "error.c"
[3] errormsg(dictionary = 0x64f995 "libshell", level = 2052, ... =
(nil), ...), line 38 in "errormsg.c"
[4] sh_argopts(argc = 2, argv = 0xfffffd7fffdffa98, context =
0x6c6f28), line 423 in "args.c"
[5] sh_init(argc = 2, argv = 0xfffffd7fffdffa98, userinit = (nil)),
line 1653 in "init.c"
[6] sh_main(ac = 2, av = 0xfffffd7fffdffa98, userinit = (nil)), line
146 in "main.c"
[7] main(argc = 2, argv = 0xfffffd7fffdffa98), line 45 in "pmain.c"
(dbx) print pp
pp = (nil)
(dbx) print xno
xno = 2
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...