Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: How to find perl line after segfault.

by BrowserUk (Patriarch)
on Feb 14, 2015 at 20:32 UTC ( #1116725=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to find perl line after segfault.
in thread How to find perl line after segfault.

Sorry, but I never had any luck at all with open3() when I first tried it, as a consequence I never use it. You'll need help from someone who does.

As an aside; I wasn't aware that open3(), accepted strings for the file handles. Nor does anything in the documentation lead me to believe it does.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re^5: How to find perl line after segfault.

Replies are listed 'Best First'.
Re^6: How to find perl line after segfault.
by Steve_BZ (Chaplain) on Feb 14, 2015 at 21:05 UTC

    Ok, maybe that's it.

    Actually, I notice now that CallTrace outputs to STDERR not STDOUT, so it wouldn't work for that reason either.

    Thanks for your help.

      As you're sending the output to a file, why not just?:

      system q[perl -d:CallTrace i-Mage.pl 2> trace.txt];

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

        Well I shall probably have to do that, But then when it segfaults I wont be able to manage the crash, It'll just be a case of restarting the application. I suppose since I have a crash file (the trace.txt), I can look for trace.txt files at the startup of a programme and then do whatever I need to.

        Regards

        Steve.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2023-03-31 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (76 votes). Check out past polls.

    Notices?