Roland Mainz wrote:
> 
> Hi!
> 
> ----
> 
> Below is a small reduced testcase (based on a larger application which
> crashes the same way) which cases a crash in libshell code (current
> codebase is ast-ksh.2009-05-05):
> -- snip --
> #include <shell.h>
> 
> int
> main(int argc, char *argv[])
> {
>         int i;
>         Shell_t *shp;
> 
>         char *ar[2]={ "/usr/bin/sh", NULL };
> 
>         shp = sh_init(1, ar, 0);
>         if (!shp)
>                 error(ERROR_exit(1), "shell initialisation failed.");
>         (void) sh_trap("alias -v", 0);
[snip]

BTW: I forgot to say that putting the command in a subshell fixes the
crash.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to