LWP::UserAgent + HTTPS + threads ==> segmentation fault

From: Ray Smith (craysmith_at_rcn.com)
Date: 11/12/04

  • Next message: Bill Karwin: "Re: unix perl module install errors"
    Date: Thu, 11 Nov 2004 20:57:16 -0500
    
    

    Folks,
    We have a problem using LWP::UserAgent, https, and threads.
    When we do we get a segmentation error.

    perl lwp_threads.pl <https://www.yahoo.com>
    produces a Segmentation fault
    while
    perl lwp_threads.pl <http://www.yahoo.com>
    does not.

    Attached is the perl script.

    Another question - does anybody outthere have examples of LWP, using the
    callback function coupled with threads?

    All suggestions are greatly appreciated.
    Ray Smith (raysmith@alum.mit.edu <mailto:raysmith@alum.mit.edu>)

    begin 666 lwp_threads.pl
    M(R!T:')E861S7W1E<W0N<&P@(" @(" @,3 M3F]V+3(P,#0@(&-R<RP@0W)E
    M871E#0HC(%-I;7!L92!T:')E861S('1E<W0-"B,-"G5S92!S=')I8W0[#0IU
    M<V4@=&AR96%D<SL-"G5S92!,5U [#0H-"FUY("1U<FD[#0II9B H0$%21U8@
    M/B P*2![#0H@(" @)'5R:2 ]('-H:69T.PT*?0T*#0IM>2 D=6$@/2!,5U Z
    M.E5S97)!9V5N="T^;F5W*"D[#0H-"FEF("AD969I;F5D("1U<FDI('L-"B @
    M("!P<FEN=" B=7)I.B D=7)I7&XB.PT*(" @(&UY("1R(#T@)'5A+3YG970H
    M)'5R:2D[#0H@(" @:68@*&YO=" D<BT^:7-?<W5C8V5S<R@I*2![#0H@(" @
    M(" @('!R:6YT(")'150@97)R;W(@;VX@/"1U<FD^+BXN7&XB#0H@(" @(" @
    M(" @+B D<BT^97)R;W)?87-?2%1-3"@I("X@(EQN(CL-"B @(" @(" @97AI
    M="@Q*3L-"B @("!]#0I]#0H-"FUY("1T(#T@=&AR96%D<RT^;F5W*%PF=&AR
    M96%D961297%U97-T5&AR96%D*0T*("!O<B!D:64@(D-A;B=T(&-R96%T92!T
    M:')E861<;B([#0H-"G!R:6YT(")*;VEN:6YG('1H<F5A9%QN(CL-"FUY($!R
    M970@/2 D="T^:F]I;B@I.PT*<')I;G0@(E1H<F5A9"!R971U<FYE9"! <F5T
    M7&XB.PT*97AI="@P*3L-"@T*(R!!8W1U86P@5&AR96%D(&9U;F-T:6]N#0IS
    M=6(@=&AR96%D961297%U97-T5&AR96%D('L-"B @("!P<FEN=" B26YS:61E
    M('1H<F5A9&5D4F5Q=65S=%1H<F5A9%QN(CL-"B @("!R971U<FX@(D$@;&ES
    1="!O9B!W;W)D<R([#0I]#0H`
    `
    end


  • Next message: Bill Karwin: "Re: unix perl module install errors"

    Relevant Pages

    • LWP::UserAgent + HTTPS + threads ==> segmentation fault
      ... We have a problem using LWP::UserAgent, https, and threads. ... When we do we get a segmentation error. ... produces a Segmentation fault ... Attached is the perl script. ...
      (comp.lang.perl.misc)
    • LWP::UserAgent + HTTPS + threads ==> segmentation fault
      ... We have a problem using LWP::UserAgent, https, and threads. ... When we do we get a segmentation error. ... produces a Segmentation fault ... Attached is the perl script. ...
      (comp.lang.perl)
    • beginners Digest 28 May 2008 16:42:36 -0000 Issue 3467
      ... First time using Perl & PDF::API2 ... Getting Segmentation fault ... 101000 by: Rajnikant ... I use sort to give the max of an array something like this ...
      (perl.beginners)
    • Error 139 in Perl program
      ... it starts out as a shell script ... wrapper, which calls a perl ... dies, and here's the error I saw in Perl Debug: ... is that sometimes it dies with Error 139 (Segmentation Fault) on the ...
      (perl.dbi.users)
    • Perl threads + HTTPS = Crash :(
      ... I have a program in perl which do several HTTP requests, ... I use HTTPS and only one thread the program work perfectly. ... 01EC8026 nop ...
      (comp.lang.perl.misc)