delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/23/15:39:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 23 Mar 2005 15:39:25 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
cc: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
Subject: Re: Perl crash when using Net::FTP or LWP::UserAgent with recent CVS
In-Reply-To: <Pine.GSO.4.61.0503181720090.20717@slinky.cs.nyu.edu>
Message-ID: <Pine.GSO.4.61.0503231421550.11189@slinky.cs.nyu.edu>
References: <d1fbdj$g9$1 AT sea DOT gmane DOT org> <20050318203224 DOT GA19220 AT trixie DOT casa DOT cgf DOT cx> <20050318213129 DOT GA6364 AT efn DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0503181634580 DOT 20717 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT GSO DOT 4 DOT 61 DOT 0503181720090 DOT 20717 AT slinky DOT cs DOT nyu DOT edu>
MIME-Version: 1.0

On Fri, 18 Mar 2005, Igor Pechtchanski wrote:

> 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

Has anyone been able to reproduce this?  I get the same crash with any
snapshot later than 20050311 (the 20050311 snapshot itself is fine).  I
suspect this may be due to the following change:

<http://cygwin.com/ml/cygwin-cvs/2005-q1/msg00202.html>

I'll investigate further, but it would be nice to get this confirmed.
Here is the command I used to reproduce this:

perl -MNet::FTP -e '$a=Net::FTP->new("cygwin.com")->ls("/");'

"uname -srv" reports "CYGWIN_NT-5.1 1.5.14s(0.124/4/2) 20050316 16:53:05".
Perl is version 5.8.6-4.  Anyone?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019