in reply to https request causes segmentation fault

That's not enough information to say what's going wrong.

If your system has strace or ktrace, try running your script under that. It will show pretty clearly where and why the segfault happens.

After Compline,
Zaxo

  • Comment on Re: https request causes segmentation fault

Replies are listed 'Best First'.
Re^2: https request causes segmentation fault
by eisdrache (Novice) on Oct 30, 2006 at 03:36 UTC
    I am running this on a Solaris box, so I used truss. I know this most likely not a perl issue anymore, but just incase anyone has any insight, here is the last few lines of the truss output:
    3055: Incurred fault #6, FLTBOUNDS %pc = 0xFED0E03C 3055: siginfo: SIGSEGV SEGV_MAPERR addr=0x000000A4 3055: Received signal #11, SIGSEGV [default] 3055: siginfo: SIGSEGV SEGV_MAPERR addr=0x000000A4
Re^2: https request causes segmentation fault
by eisdrache (Novice) on Oct 30, 2006 at 02:45 UTC
    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?

      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

      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.
      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.