Bug 208098 - shells/ksh93: a() { b } makes ksh93 dump core.
Summary: shells/ksh93: a() { b } makes ksh93 dump core.
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kurt Jaeger
URL:
Keywords: crash, needs-patch
Depends on: 211164
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-17 19:44 UTC by Robert Clausecker
Modified: 2019-01-07 03:48 UTC (History)
4 users (show)

See Also:
saper: maintainer-feedback+
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker 2016-03-17 19:44:08 UTC
Recently I wrote a shell script, made a syntax error and watched ksh93 dump core. To reproduce, create a file with the following content

    a() { b }

then try to run this as a ksh93 shell script. The result looks like this:

    $ ksh93 ksh_crash.sh
    ksh_crash.sh: syntax error at line 2: `{' unmatched
    Memory fault(coredump)

This is the version reported by ksh93:

    $ echo $KSH_VERSION
    Version AJM 93u+ 2012-08-01
Comment 1 Marcin Cieślak 2016-07-16 23:33:17 UTC
I believe this is no longer occuring with 93v- 2014-12-24
Comment 2 Marcin Cieślak 2017-01-23 01:28:26 UTC
Hello,

the patches are attached to the ksh93 port update at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211164
Comment 3 w.schwarzenfeld freebsd_triage 2018-01-16 09:54:24 UTC
Is this still relevant?
Comment 4 Robert Clausecker 2018-01-16 22:51:31 UTC
The problem still occurs with ksh93 from pkg and with ksh93 built from ports, so it's still open.