Michal, what about a stack trace?
My guess is that this might be my fault, since I and Roland added code
which relies on the fact that open(".", ...) works. I may have a fix,
but need a confirmation from some one with more compute resources (I
am off road this month) that this is the fault.
Olga
On Wed, Sep 19, 2012 at 11:26 AM, Michal Hlavinka <[email protected]> wrote:
> Hi,
>
> we found a bug in ksh. When script is executed from removed directory,
> ksh (2012-08-01) crashes in sh/subshell.c:sh_subshell():541:
>
> 541: if(xp->pwdfd>0 && strcmp(xp->pwd,shp->pwd)==0)
>
> both xp->pwd and shp->pwd are NULL and strcmp(NULL,NULL) crashes
>
> reproducer:
> =============================================
> #!/bin/bash
> mkdir testdir
> cd testdir
> ksh -c 'sleep 1; FOO=$(/bin/echo $(/bin/echo "bar") )' &
> cd ..
> rmdir testdir
> wait
> =============================================
>
> This is regression between 2012-06-28 (last working) and 2012-07-27 (first
> broken).
>
> Let me know if you need more information.
>
> Michal
> _______________________________________________
> ast-developers mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-developers
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ [email protected] \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers