undefined behavior in closeout, aggravated by libsigsegv

2009-07-17 Thread Eric Blake
I'm seeing the following in cygwin with m4 1.4.12, due to an interaction between the closeout module and libsigsegv: $ echo hi > file $ build/src/m4 >&- file build/src/m4: internal error detected; please report this bug to : Segmentation fault I've traced it to the fact that m4 uses the closeout

Re: Help with create_pipe_bidi

2009-07-17 Thread Eric Blake
Eric Blake byu.net> writes: > but I think the simplest is just replacing the existing two calls > to pipe/fd_safer with the simpler one-line call to pipe_safer. I'll commit a > patch later today, which also adds a pipe-test module using your test-pipe.c > as a starting point (but avoiding the

Re: Help with create_pipe_bidi

2009-07-17 Thread Eric Blake
Akim Demaille lrde.epita.fr> writes: > Reading the code, I don't see why the child should be affected here, > but it is. It is due to a bug in gnulib. | if (pipe_stdin) |if (pipe (ofd) < 0 ||| (ofd[1] = fd_safer (ofd[1])) < 0) This has the effect of setting ofd to {1,5} if exact

Re: Help with create_pipe_bidi

2009-07-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 7/17/2009 6:25 AM: > make: *** No rule to make target `spawn.h', needed by `all'. Stop. > > In lib/gnulib.mk, I see lines like: > > BUILT_SOURCES += $(SPAWN_H) > BUILT_SOURCES += $(STDBOOL_H) > > In the corresponding Make

Re: Help with create_pipe_bidi

2009-07-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 7/17/2009 6:14 AM: >> The attempt to use create-pipe-bidi is pushed in Bison's branch >> candidates/create-pipe-bidi, if some wants to play with it. The test >> case is compiled as src/test-pipe. > > I'll try and find some

Re: Help with create_pipe_bidi

2009-07-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Akim Demaille on 7/15/2009 6:44 AM: > I have tried to write a small test case for gnulib (made to be > eventually included there, at least it would be a useful sample). It > shows the same problem, although somewhat differently. It's a n