Steve McIntyre dixit:

>Digging further with the built-in debug TRACE function, I can see
>problems in usr/dash/eval.c:evalcommand(). The place where cmd
>switches from non-NULL to NULL is
>
>  status = redirectsafe(cmd->ncmd.redirect, REDIR_PUSH|REDIR_SAVEFD2);

Yeah, I got approximately so far too, with gdb (despite my
extremely limited gdb-fu).

>Interestingly, adding more TRACE() calls makes the problem go
>away. \o/ Classic Heisenbug behaviour.

Right. Interestingly it’s always the shells you notice this in.
Last time I saw this, it was a problem having to do with argument
passing (registers vs. stack, how many, which, and where), including
return value placement. But I’m out of guesses.

Good luck,
//mirabilos
-- 
13:37⎜«Natureshadow» Deep inside, I hate mirabilos. I mean, he's a good
guy. But he's always right! In every fsckin' situation, he's right. Even
with his deeply perverted taste in software and borked ambition towards
broken OSes - in the end, he's damn right about it :(! […] works in mksh



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to