in reply to Re^3: How to find perl line after segfault.
in thread How to find perl line after segfault.
Hi Browser UK,
perl -d:CallTrace i-Mage.pl 2> trace.txt
absolutely did the job and found the problem immediately. It was a Wx::Timer process that I had forgotten about starting off a little early. There seemed to be very little performance overhead, maybe the program loaded a bit slower but after that it seemed about the same as always.
Now I'd like to call it from open3 like this:
my @array = qw(perl -d:CallTrace i-Mage.pl); my $child_pid = open3( '<&STDIN', ">trace.txt", *CHILD_ERROR, @array );
The code starts, but there is no sign of "trace.txt".
Not sure where I'vwe gone wrong.
Regards
Steve.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to find perl line after segfault.
by BrowserUk (Patriarch) on Feb 14, 2015 at 20:32 UTC | |
by Steve_BZ (Chaplain) on Feb 14, 2015 at 21:05 UTC | |
by BrowserUk (Patriarch) on Feb 14, 2015 at 21:14 UTC | |
by Steve_BZ (Chaplain) on Feb 15, 2015 at 10:09 UTC | |
by BrowserUk (Patriarch) on Feb 15, 2015 at 10:58 UTC | |
|