Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Steve_BZ (Chaplain)
on Feb 14, 2015 at 21:05 UTC ( #1116728=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^6: How to find perl line after segfault.

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

    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.

        But then when it segfaults I wont be able to manage the crash,

        It would be no different if you used open3(). That also starts a separate process over which you would have no control.


        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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2023-02-04 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (30 votes). Check out past polls.

    Notices?