Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Trying to track a sleeping CGI request with gdb

by sfink (Deacon)
on Oct 12, 2006 at 04:12 UTC ( [id://577747]=note: print w/replies, xml ) Need Help??


in reply to Trying to track a sleeping CGI request with gdb

With my version of gdb, that would be gdb -p 1234.

When doing this, it is often useful to ask Perl to tell you where it is. For that, I do p Perl_warner(my_perl, 1, "oops"), which will print out something like "oops at Snorkus.pm line 56".

That may require debug symbols. You can install the perl-debuginfo RPM if you can find it. (I got it via rpmbuild --rebuild perl-*.src.rpm)

Or you could do something like p Perl_eval_pv(my_perl, "use Carp; Carp::cluck('oops')", 0) to get a full stack trace.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-19 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found