Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ksh93, jobs program strings are overwritten somehow

17 views
Skip to first unread message

Stefan Krueger

unread,
May 21, 2013, 10:06:01 AM5/21/13
to
Hi,

I have a strange problem with ksh93. After a few weeks or so when
running 'jobs' I only get random strings from previous executed
commands back rather then the real program string.

Example:

This should print 'su -'
sk@solarized:~ $ jobs
[1] + Stopped (SIGSTOP) 48_59.solarized:2,S

This should print 'slrn'
sk@solarized:~ $ jobs
[1] + Stopped ce -n 'fbt:pm:*:entry { @num[probefunc]
= count(); }'

etc.

This seems to be ksh93 specific, as I've seen this on Solaris 11.1 and
Linux (Fedora).

sk@solarized:~ $ echo ${.sh.version}
Version JM 93u 2011-02-08

I have no idea how to trigger/debug this, it just happens after some
time.

PS: I'm running several ksh93 shells in a screen session.

Casper H.S. Dik

unread,
May 21, 2013, 10:45:37 AM5/21/13
to
Stefan Krueger <stadt...@gmx.de> writes:

>Linux (Fedora).

>sk@solarized:~ $ echo ${.sh.version}
>Version JM 93u 2011-02-08

>I have no idea how to trigger/debug this, it just happens after some
>time.

It is clearly a bug in ksh as the strings are part of the ksh93
memory. To debug this problem, a write watch point on the strings
storing the data would directly point to the code at fault.

Casper

Stefan Krueger

unread,
Aug 1, 2013, 5:42:10 PM8/1/13
to
I catched Roland Mainz on IRC and he told me that this is a bug with
Solaris 11.1+ ksh93:

23:37 < nrubsig> technically it was fixed for the ksh93 version
shipped with OpenSolaris integrated in OS/Net... but
then Sun pulled out out of OS/Net and forgot to add
the XPG6 build flags which fix this mess... so it is
fixed in Solaris 11 and broken for the updateds of
Solaris 11 and Solaris 11.1
...
23:38 < nrubsig> technically its an issue with build flags, e.g. make
sure the XPG6 personality in libc is enabled.
0 new messages