Stormr has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a script that is to run a unix make for several different applications, and should parse the result into an easily read report file.
However, when capturing the output I get a 'Segmentation fault' as soon as the make is to save a derived object. The compilations seems to go on fine, but after "Will store derived object xyz.o" I get the fault and the make exits (of course).
I can otherwise (not capturing output) run the make successfully through a script, so the issue is not the ability to save files on the network. Neither is the problem how I retrieve/store the output. In fact, I've tried three different solutions (STDOUT to filehandle via typeglob, fdopen in IO::Handle and (currently, thx grinder) IPC::Open3).
My limited Perl and 'nix experience makes it a bit hard to see the problem. Could it be a buffer problem (need to flush STDOUT before child writes the file?), or anything else??
Appreciate any help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Segmentation Fault - Child/Output collision?
by clemburg (Curate) on Aug 07, 2001 at 17:26 UTC | |
|
Re: Segmentation Fault - Child/Output collision?
by Stormr (Beadle) on Aug 07, 2001 at 15:09 UTC | |
by ariels (Curate) on Aug 07, 2001 at 15:45 UTC | |
by Stormr (Beadle) on Aug 07, 2001 at 16:29 UTC | |
by tachyon (Chancellor) on Aug 07, 2001 at 15:42 UTC |