This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Perl crash when using Net::FTP or LWP::UserAgent with recent CVS


On Fri, 18 Mar 2005, Igor Pechtchanski wrote:

> On Fri, 18 Mar 2005, Yitzchak Scott-Thoennes wrote:
>
> > On Fri, Mar 18, 2005 at 03:32:24PM -0500, Christopher Faylor wrote:
> > > On Fri, Mar 18, 2005 at 02:51:52PM -0500, Joe Buehler wrote:
> > > >In case this is not already known, the current CVS has a serious
> > > >problem -- attempts to rsh or ssh in to a machine running a cygwin1.dll
> > > >compiled from it fail with an error message regarding a failed setgid()
> > > >call.
> > >
> > > WJFFM.
> >
> > FWIW I had a lot of trouble with the 20050316 snapshot; perl coredumping
> > when using Net::POP3 and lots of messages like:
> > 7 [main] perl 7824 fork_parent: child 2452 died waiting for longjmp before initialization
> >
> > I'll report in more detail on Sunday unless there's a newer snapshot that
> > doesn't have these problems.
>
> Actually, I'm now getting a coredump when trying to use both Net::FTP and
> LWP::UserAgent from perl.  The crash is in
>
> cygwin_getprotobynumber
> /usr/src/cygwin-cvs/src/winsup/cygwin/net.cc:548
>
> according to addr2line.  I'll try investigating further.
> 	Igor

Actually, here's a full stack trace from gdb (when running /bin/cpan):

#0  0x6104bfb6 in cygwin_getprotobynumber (number=17236) at /usr/src/cygwin-cvs/src/winsup/cygwin/net.cc:548
#1  0x6107589f in _sigfe () at /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82
#2  0x0022ee18 in ?? ()
#3  0x100ace0c in cygperl5_8!Perl_free_tmps () from /usr/bin/cygperl5_8.dll
#4  0x10071e19 in cygperl5_8!Perl_runops_standard () from /usr/bin/cygperl5_8.dll
#5  0x100076f5 in perl_run () from /usr/bin/cygperl5_8.dll
#6  0x004011d6 in cygcrypt-0!crypt ()
#7  0x61005a78 in dll_crt0_1 () at /usr/src/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:861
#8  0x61005b93 in _dll_crt0 () at /usr/src/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:915
#9  0x00000000 in ?? () from

Frames #0 looks bogus, and #1 seems to have a wrong file/line number.
Some sort of stack corruption?

Unfortunately, I don't have a debug build of Perl (and no time right now
to create one).  Any takers?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]