http://qs321.pair.com?node_id=581173


in reply to Re: https request causes segmentation fault
in thread https request causes segmentation fault

I wish I could give more info but I am baffled at this problem, I have never experienced anything like it before. Anyway, thanks for your reply. I am unfamiliar with strace and ktrace, how exactly would I go about using one of those?
  • Comment on Re^2: https request causes segmentation fault

Replies are listed 'Best First'.
Re^3: https request causes segmentation fault
by Zaxo (Archbishop) on Oct 30, 2006 at 02:55 UTC

    The strace or ktrace utils are found on unix-like systems. The simplest usage is, e.g.,

    prompt> strace perl myscript.pl
    which will be followed by a huge dump of information.

    If you're on a winders system, perhaps someone who knows will suggest an equivalent diagnostic utility.

    After Compline,
    Zaxo

Re^3: https request causes segmentation fault
by madbombX (Hermit) on Oct 30, 2006 at 02:50 UTC
    Assuming that you are on a linux system, either do a man strace or check out the man page for strace. IIRC, ktrace is more of a *BSD thing. If you are using a BSD platform, then check out the ktrace man page. It all depends on what platform you are doing this all on.
Re^3: https request causes segmentation fault
by superfrink (Curate) on Oct 30, 2006 at 03:17 UTC
    These tools can print out information about system calls that the perl interpreter makes to your operating system to get things done. (eg: opening a file and any error that occurred) I don't normally use strace until I'm out of other ideas but it can be helpful.

    On Linux you can use strace, on Solaris truss, and on OpenBSD ktrace. Check out the man page or try googling for some examples.