On Sun, May 11, 2014 at 03:55:50PM -0400, David Korn wrote:
> This has been fixed for the next update.

Indeed some issues are fixed but this

> > On Wed, Feb 05, 2014 at 04:03:17PM -0600, Nathan Weeks wrote:
> > > ksh 2014-01-14 fails to compile on OS X 10.7.5 (Xcode 4.6.1) due to the
> > > following error:

[...]

> > > ========================================
> > > --- ./src/lib/libcmd/ls.c.orig  2013-12-08 01:24:57.000000000 -0600
> > > +++ ./src/lib/libcmd/ls.c       2014-02-04 08:34:10.000000000 -0600
> > > @@ -1257,7 +1257,7 @@
> > >         if (!VISIBLE(state, ent))
> > >         {
> > >                 fts_set(NiL, ent, FTS_SKIP);
> > > -               return;
> > > +               return 0;
> > >         }
> > >         switch (ent->fts_info)
> > >         {
> > > @@ -1265,12 +1265,12 @@
> > >                 if (ent->fts_parent->fts_info == FTS_DNX)
> > >                         break;
> > >                 error(2, "%s: not found", ent->fts_path);
> > > -               return;
> > > +               return 0;
> > >         case FTS_DC:
> > >                 if (state->lsflags & LS_DIRECTORY)
> > >                         break;
> > >                 error(2, "%s: directory causes cycle", ent->fts_path);
> > > -               return;
> > > +               return 0;
> > >         case FTS_DNR:
> > >                 if (state->lsflags & LS_DIRECTORY)
> > >                         break;
> > > ========================================

is not.

Also the crash of the test script io.sh if run with shcomp is already
there, after adding a `gdb --args' in front of `$valgrind $SHELL $trace $c'
for the compile tree in shtests, I see
 
 Program received signal SIGPIPE, Broken pipe.
 0x00007ffff74b3f60 in __write_nocancel () from /lib64/libc.so.6
 (gdb) up
 #1  0x00000000004eeb90 in sfwr (f=0x25fffca167d0, buf=0x25fffca1a8e0, n=100, 
disc=0x0)
     at /usr/src/packages/BUILD/ksh93/src/lib/libast/sfio/sfwr.c:209
 209                                     if((w = syswritef(f->file,buf,n)) > 0)
 #0  0x00007ffff74b3f60 in __write_nocancel () from /lib64/libc.so.6
 #1  0x00000000004eeb90 in sfwr (f=0x25fffca167d0, buf=0x25fffca1a8e0, n=100, 
disc=0x0)
     at /usr/src/packages/BUILD/ksh93/src/lib/libast/sfio/sfwr.c:209
 #2  0x00000000004ddbd4 in _sfflsbuf (f=0x25fffca167d0, c=-1)
     at /usr/src/packages/BUILD/ksh93/src/lib/libast/sfio/sfflsbuf.c:97
 #3  0x00000000004e5f62 in sfsync (f=0x25fffca167d0) at 
/usr/src/packages/BUILD/ksh93/src/lib/libast/sfio/sfsync.c:133
 #4  0x00000000004e5dd6 in _sfall () at 
/usr/src/packages/BUILD/ksh93/src/lib/libast/sfio/sfsync.c:68
 #5  sfsync (f=<optimized out>) at 
/usr/src/packages/BUILD/ksh93/src/lib/libast/sfio/sfsync.c:94
 #6  0x0000000000458385 in sh_fork (shp=0x7d09c0, flags=522, 
jobid=0x7fffffffc478)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/xec.c:3305
 #7  0x000000000045fa53 in sh_exec (shp=0x7d09c0, t=0x25fffca52ad0, flags=0)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/xec.c:1726
 #8  0x000000000045d250 in sh_exec (shp=0x7d09c0, t=0x25fffca52b70, flags=1)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/xec.c:2183
 #9  0x000000000045476c in sh_subshell (shp=0x7d09c0, t=0x25fffca52b70, 
flags=1, comsub=3)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/subshell.c:616
 #10 0x0000000000435330 in comsubst (mp=0x25fffca18900, t=0x25fffca52b70, 
type=3)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/macro.c:2167
 #11 0x0000000000430123 in varsub (mp=0x25fffca18900) at 
/usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/macro.c:1190
 #12 0x0000000000434a01 in copyto (mp=0x25fffca18900, endch=0, 
newquote=<optimized out>)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/macro.c:634
 #13 0x00000000004364e6 in sh_macexpand (shp=0x7d09c0, argp=0x25fffca52870, 
arghead=0x0, flag=0)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/macro.c:245
 #14 0x00000000004366d7 in sh_macpat (shp=0x3, arg=0x25fffca52870, 
flags=<optimized out>)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/macro.c:423
 #15 0x000000000045ad7f in sh_exec (shp=0x7d09c0, t=0x25fffca52850, flags=0)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/xec.c:2924
 #16 0x000000000045d09d in sh_exec (shp=0x7d09c0, t=0x25fffca52830, flags=4)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/xec.c:2286
 #17 0x000000000040f317 in exfile (shp=0x7d09c0, iop=0x25fffca164d0, fno=11)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/main.c:627
 #18 0x000000000040fc9a in sh_main (ac=<optimized out>, av=0x7fffffffdfc8, 
userinit=<optimized out>)
     at /usr/src/packages/BUILD/ksh93/src/cmd/ksh93/sh/main.c:399
 #19 0x00007ffff7408c36 in __libc_start_main () from /lib64/libc.so.6
 #20 0x000000000040e799 in _start () at ../sysdeps/x86_64/elf/start.S:113

IMHO the socketpair had lost its reading end in case of using shcomp.

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

Attachment: pgpI3l70_pIUc.pgp
Description: PGP signature

_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to