https://sourceware.org/bugzilla/show_bug.cgi?id=32580

--- Comment #19 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #18 from Stefan Bidigaray <stefanbidi at gmail dot com> ---
> I ran into this issue last month, as well. I was able to track down the 
> problem
> to ksh93 itself. A bug report was filed with the maintained version of ksh93
> (https://github.com/ksh93/ksh/issues/823) and the issue resolved.
>
> Unfortunately, the bug is somewhere deep inside ksh93 with how here-documents
> are processed. The only way to resolve it is by patching ksh93 code. It really
> has nothing to do with Binutils as was evident from the fact the other shells
> didn't run into this problem.

Thanks for the detective work.  However, it seems the Solaris issue is a
different one: your testcase in the ksh93 issue doesn't SEGV on Solaris,
but works just fine with a self-compiled unmodified ksh93 1.0.10.  That
same ksh93 produces the same ldscripts output as does bash.

Unfortunately, the ksh93 bundled with Solaris 11.4 is an older one

  version         sh (AT&T Research) 93u+ 2012-08-01

heavily patched (as can be seen on
https://github.com/oracle/solaris-userland/tree/master/components/ksh93/patches)
and upgrading Solaris /bin/sh (which *is* ksh93) certainly isn't a small
feat to be done lightly.

The unfortunate fact is that the workaround for this bug that went into
binutils 2.44 (unlike my original hack) only works on Solaris/SPARC;
Solaris/x86 is still broken.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to