in reply to Segmentation Fault when using LWP::UserAgent

I am getting a segmentation fault

There is usually more information available than just "segmentation fault"?

  • Comment on Re: Segmentation Fault when using LWP::UserAgent

Replies are listed 'Best First'.
Re^2: Segmentation Fault when using LWP::UserAgent
by TheloniusM (Initiate) on May 28, 2010 at 18:31 UTC

    Yes, certainly. I am sorry for not giving enough information.

    In case the fault happens while executing regularly (not debugging) Windows opens a pop up window showing the content of the memory and the question whether an error message should be sent to Microsoft.

    During debugging the following message is given

    Signal SEGV at C:\strawberry\perl\vendor\lib/LWP/UserAgent.pm line 178 eval {...} called at C:\strawberry\perl\vendor\lib/LWP/UserAge +nt.pm line 177 LWP::UserAgent::send_request('LWP::UserAgent=HASH(0xc704d4)', +'HTTP::Req uest=HASH(0x121ac6c)', undef, undef) called at C:\strawberry\perl\vend +or\lib/LWP /UserAgent.pm line 253 LWP::UserAgent::simple_request('LWP::UserAgent=HASH(0xc704d4)' +, 'HTTP::R equest=HASH(0x121ac6c)', undef, undef) called at C:\strawberry\perl\ve +ndor\lib/L WP/UserAgent.pm line 261 LWP::UserAgent::request('LWP::UserAgent=HASH(0xc704d4)', 'HTTP +::Request= HASH(0x121ac6c)') called at C:\strawberry\perl\vendor\lib/LWP/UserAgen +t.pm line 389 LWP::UserAgent::get('LWP::UserAgent=HASH(0xc704d4)', 'http://m +y_server/apache2-default/') called at check_lwp.pl line 9

    Thank you for your help, BrowserUk.
      Windows opens a pop up window showing the content of the memory

      It's been a while since I've seen one, so I don't remember the exact wording or options available, but doesn't it tell which dll or executable actually segfaulted? Also, isn't there an option to have it display the report that would be sent to MS, containing a stack trace and other information?


      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".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        That's what I had expected also. I could see which other applications where active (antivirus and the like) but not which dll was loaded and at which particular point the crash happened.

        In the meantime I used Microsoft's process explorer in order to find out which dlls were involved. But either it did not show it or I was unable to see it.

        Do the messages from the debugger tell you anything helpful?

        Regards