http://bugs.grommit.com/show_bug.cgi?id=621
Summary: "tail" builtin may crash if it hits misspelled long options Product: ksh93-integration Version: unspecified Platform: All OS/Version: Solaris 11/Nevada Status: NEW Severity: blocker Priority: P3 Component: App/Other AssignedTo: ksh93-integration-discuss at opensolaris.org ReportedBy: roland.mainz at nrubsig.org CC: roland.mainz at nrubsig.org, ksh93-integration- discuss at opensolaris.org, Milan.Jurik at sun.com "tail" builtin may crash if it hits misspelled long options, e.g. $ tail --attack_of_chicken_monsters # will cause a core dump like this: -- snip -- $ ~/bin/ksh -c 'print "hello" | tail --attack_of_chicken_monsters' Memory fault(coredump) $ dbx ~/bin/ksh core For information about new features see `help changes' To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc Reading ksh core file header read successfully Reading ld.so.1 Reading libsocket.so.1 Reading libnsl.so.1 Reading libm.so.2 Reading libmd.so.1 Reading libsecdb.so.1 Reading libc.so.1 Reading libmd_psr.so.1 Reading libc_psr.so.1 program terminated by signal SEGV (no mapping at the fault address) Current function is b_tail 503 if (i = *(s - 1) == '-' || *(s - 1) == '+') (dbx) where =>[1] b_tail(argc = 2, argv = 0x266a60, context = 0x24d6d0), line 503 in "tail.c" [2] sh_exec(t = 0x266a00, flags = 4), line 992 in "xec.c" [3] sh_exec(t = 0x266a70, flags = 5), line 1397 in "xec.c" [4] sh_exec(t = 0x266a70, flags = 5), line 1518 in "xec.c" [5] exfile(shp = 0x24d3e4, iop = 0x26ffb0, fno = -1), line 595 in "main.c" [6] sh_main(ac = 3, av = 0xffbff144, userinit = (nil)), line 370 in "main.c" [7] main(argc = 3, argv = 0xffbff144), line 46 in "pmain.c" -- snip -- -- Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. You are the assignee for the bug, or are watching the assignee.