public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Another lftp issue
@ 2009-06-30 18:54 Marco Atzeri
  0 siblings, 0 replies; 9+ messages in thread
From: Marco Atzeri @ 2009-06-30 18:54 UTC (permalink / raw)
  To: cygwin, Andrew Schulman


--- Mar 30/6/09, Andrew Schulman  ha scritto:

> Da: Andrew Schulman 
> Oggetto: Re: Another lftp issue
> A: 
> Data: Martedì 30 giugno 2009, 17:26
> > >> But my version does
> dump core on 'cls -ltr'.
> > >
> > > Actually it seems to be just 'cls -l' that causes
> the fault.
> > 
> > Odd, with 3.7.14 running on Cygwin 1.7.0-50 compiled
> via gcc-4 works
> > fine for me (both 'cls -ltr' and 'cls -l').  I've
> tried with both ftp
> > and sftp connections.
> 
> Chris, please test my draft lftp 3.7.14 package for 1.7:
> 
> http://home.comcast.net/~andrex2/cygwin-1.7/lftp/lftp-3.7.14-1.tar.bz2
> 
> I compiled it with gcc-4.  On my XP host with Cygwin
> 1.7.0-50, this lftp
> segfaults when I run
> 
> open ftp.debian.org
> cls -l
> 
> Do you see the same behavior?
> 

Both this version and 3.7.6-4 segfalts on 
Windows XP  with latest cygwin snapshots 
1.7.0s(0.210/5/3) 20090629.
As additional info I have a proxy in the middle.

strace extract :

 55 30709397 [main] lftp 8608 fhandler_base::close: closing '/usr/share/zoneinfo/GMT' handle 0x5F0
   69 30709466 [main] lftp 8608 close: 0 = close (5)
 3479 30712945 [main] lftp 8608 readv: readv (4, 0x22CC54, 1) nonblocking, sigcatchers 4
   73 30713018 [main] lftp 8608 __set_errno: void __set_winsock_errno(const char*, int):217 val 11
   56 30713074 [main] lftp 8608 __set_winsock_errno: recv_internal:1396 - winsock error 10035 -> errno 11
   63 30713137 [main] lftp 8608 readv: -1 = readv (4, 0x22CC54, 1), errno 11
   54 30713191 [main] lftp 8608 readv: readv (4, 0x22CC84, 1) nonblocking, sigcatchers 4
   61 30713252 [main] lftp 8608 __set_errno: void __set_winsock_errno(const char*, int):217 val 11
   50 30713302 [main] lftp 8608 __set_winsock_errno: recv_internal:1396 - winsock error 10035 -> errno 11
   62 30713364 [main] lftp 8608 readv: -1 = readv (4, 0x22CC84, 1), errno 11
  137 30713501 [main] lftp 8608 readv: readv (4, 0x22CC54, 1) nonblocking, sigcatchers 4
   62 30713563 [main] lftp 8608 __set_errno: void __set_winsock_errno(const char*, int):217 val 11
  107 30713670 [main] lftp 8608 __set_winsock_errno: recv_internal:1396 - winsock error 10035 -> errno 11
   51 30713721 [main] lftp 8608 readv: -1 = readv (4, 0x22CC54, 1), errno 11
   51 30713772 [main] lftp 8608 readv: readv (4, 0x22CC84, 1) nonblocking, sigcatchers 4
   67 30713839 [main] lftp 8608 __set_errno: void __set_winsock_errno(const char*, int):217 val 11
   49 30713888 [main] lftp 8608 __set_winsock_errno: recv_internal:1396 - winsock error 10035 -> errno 11
   52 30713940 [main] lftp 8608 readv: -1 = readv (4, 0x22CC84, 1), errno 11
--- Process 8608, exception C0000005 at 00411712
 1626 30715566 [main] lftp 8608 _cygtls::handle_exceptions: In cygwin_except_handler exc 0xC0000005 at 0x411712 sp 0x22C8F0
   68 30715634 [main] lftp 8608 _cygtls::handle_exceptions: In cygwin_except_handler sig 11 at 0x411712
   53 30715687 [main] lftp 8608 _cygtls::handle_exceptions: In cygwin_except_handler calling 0x0
   51 30715738 [main] lftp 8608 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  291 30716029 [main] lftp 8608 try_to_debug: debugger_command ''
  268 30716297 [main] lftp 8608 open_stackdumpfile: Dumping stack trace to lftp.exe.stackdump


Regards
Marco






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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-30  2:41       ` Chris Sutcliffe
  2009-06-30 18:50         ` Andrew Schulman
@ 2009-07-01  3:19         ` Andrew Schulman
  1 sibling, 0 replies; 9+ messages in thread
From: Andrew Schulman @ 2009-07-01  3:19 UTC (permalink / raw)
  To: cygwin

> >> But my version does dump core on 'cls -ltr'.
> >
> > Actually it seems to be just 'cls -l' that causes the fault.
> 
> Odd, with 3.7.14 running on Cygwin 1.7.0-50 compiled via gcc-4 works
> fine for me (both 'cls -ltr' and 'cls -l').  I've tried with both ftp
> and sftp connections.

Gmane seems to have lost the last two messages in this thread.

Thanks for providing you compilation details.  I had set CC but neglected to set
CXX... doh!  With CXX=g++-4, I now get a good executable with no crash.

ATM there are a couple of other packaging problems-- I think the dependency list
is wrong, and for some reason the translations didn't show up in my latest
package.  Should take me a day or so to iron those out, and then I'll post a new
3.7.14 package.

Thanks for calling this to my attention and helping with the solution.
Andrew.


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-30 18:50         ` Andrew Schulman
@ 2009-06-30 18:55           ` Chris Sutcliffe
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Sutcliffe @ 2009-06-30 18:55 UTC (permalink / raw)
  To: cygwin

Hey Andrew,

> Chris, please test my draft lftp 3.7.14 package for 1.7:
>
> http://home.comcast.net/~andrex2/cygwin-1.7/lftp/lftp-3.7.14-1.tar.bz2
>
> I compiled it with gcc-4.  On my XP host with Cygwin 1.7.0-50, this lftp
> segfaults when I run
>
> open ftp.debian.org
> cls -l
>
> Do you see the same behavior?

Yes, I can confirm that with your build I get the same segfault.
Interestingly, with mine you don't (at least I don't).  I've packaged
my build if you would like to test it to see if it works for you:

http://emergedesktop.org/cygwin/lftp-3.7.14-Chris.tar.bz2

There is no /etc directory in the archive, as I did a 'make install'
with no cygport, just extract it in the root Cygwin directory.

FYI, I built using the following:

$ CC=gcc-4 CXX=g++-4 ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --libexecdir='$(sbindir)' \
    --localstatedir=/var \
    --datadir='$(prefix)/share' \
    --mandir='$(prefix)/share/man'
$ make
$ make install

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-30  2:41       ` Chris Sutcliffe
@ 2009-06-30 18:50         ` Andrew Schulman
  2009-06-30 18:55           ` Chris Sutcliffe
  2009-07-01  3:19         ` Andrew Schulman
  1 sibling, 1 reply; 9+ messages in thread
From: Andrew Schulman @ 2009-06-30 18:50 UTC (permalink / raw)
  To: cygwin

> >> But my version does dump core on 'cls -ltr'.
> >
> > Actually it seems to be just 'cls -l' that causes the fault.
> 
> Odd, with 3.7.14 running on Cygwin 1.7.0-50 compiled via gcc-4 works
> fine for me (both 'cls -ltr' and 'cls -l').  I've tried with both ftp
> and sftp connections.

Chris, please test my draft lftp 3.7.14 package for 1.7:

http://home.comcast.net/~andrex2/cygwin-1.7/lftp/lftp-3.7.14-1.tar.bz2

I compiled it with gcc-4.  On my XP host with Cygwin 1.7.0-50, this lftp
segfaults when I run

open ftp.debian.org
cls -l

Do you see the same behavior?


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-29 22:13     ` Andrew Schulman
@ 2009-06-30  2:41       ` Chris Sutcliffe
  2009-06-30 18:50         ` Andrew Schulman
  2009-07-01  3:19         ` Andrew Schulman
  0 siblings, 2 replies; 9+ messages in thread
From: Chris Sutcliffe @ 2009-06-30  2:41 UTC (permalink / raw)
  To: cygwin

>> But my version does dump core on 'cls -ltr'.
>
> Actually it seems to be just 'cls -l' that causes the fault.

Odd, with 3.7.14 running on Cygwin 1.7.0-50 compiled via gcc-4 works
fine for me (both 'cls -ltr' and 'cls -l').  I've tried with both ftp
and sftp connections.

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-29 21:20   ` Andrew Schulman
@ 2009-06-29 22:13     ` Andrew Schulman
  2009-06-30  2:41       ` Chris Sutcliffe
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Schulman @ 2009-06-29 22:13 UTC (permalink / raw)
  To: cygwin

> But my version does dump core on 'cls -ltr'.

Actually it seems to be just 'cls -l' that causes the fault.

I just reported this upstream, but now I've also just tried it on my Debian
box and I can't reproduce it there.  So it seems like maybe a Cygwin bug.
I'll try to track it down further.

A.


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-27  9:48 ` Andrew Schulman
@ 2009-06-29 21:20   ` Andrew Schulman
  2009-06-29 22:13     ` Andrew Schulman
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Schulman @ 2009-06-29 21:20 UTC (permalink / raw)
  To: cygwin

> > After making an sftp connection via lftp, doing a 'cls -ltr' causes a
> > core dump.  I've compiled lftp 3.7.14 using Cygwin 1.7.0-50 using
> > gcc-4 / g++-4 and it doesn't cause the same core dump.
> > 
> > Perhaps a new version of lftp (at least for 1.7.0) is in order?
> 
> Thanks for the report.  I've tried to update lftp for 1.7, but every version
> I've compiled later than 3.7.6 has segfaulted at start on my host.
> 
> Not sure now whether I was using gcc 3 or 4.  I'll take another try at in on
> Monday, with gcc4.  Ping this thread if you don't see a result next week.

OK, I just built lftp 3.7.14 with gcc4.  The good news is, it doesn't
segfault at start.  Progress!

But my version does dump core on 'cls -ltr'.  Seems like an upstream bug.
I'll report it there.

A.


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Another lftp issue
  2009-06-27  4:16 Chris Sutcliffe
@ 2009-06-27  9:48 ` Andrew Schulman
  2009-06-29 21:20   ` Andrew Schulman
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Schulman @ 2009-06-27  9:48 UTC (permalink / raw)
  To: cygwin

> After making an sftp connection via lftp, doing a 'cls -ltr' causes a
> core dump.  I've compiled lftp 3.7.14 using Cygwin 1.7.0-50 using
> gcc-4 / g++-4 and it doesn't cause the same core dump.
> 
> Perhaps a new version of lftp (at least for 1.7.0) is in order?

Thanks for the report.  I've tried to update lftp for 1.7, but every version
I've compiled later than 3.7.6 has segfaulted at start on my host.

Not sure now whether I was using gcc 3 or 4.  I'll take another try at in on
Monday, with gcc4.  Ping this thread if you don't see a result next week.

Andrew.


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Another lftp issue
@ 2009-06-27  4:16 Chris Sutcliffe
  2009-06-27  9:48 ` Andrew Schulman
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Sutcliffe @ 2009-06-27  4:16 UTC (permalink / raw)
  To: The Cygwin Mailing List

After making an sftp connection via lftp, doing a 'cls -ltr' causes a
core dump.  I've compiled lftp 3.7.14 using Cygwin 1.7.0-50 using
gcc-4 / g++-4 and it doesn't cause the same core dump.

Perhaps a new version of lftp (at least for 1.7.0) is in order?

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-01  3:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-30 18:54 Another lftp issue Marco Atzeri
  -- strict thread matches above, loose matches on Subject: below --
2009-06-27  4:16 Chris Sutcliffe
2009-06-27  9:48 ` Andrew Schulman
2009-06-29 21:20   ` Andrew Schulman
2009-06-29 22:13     ` Andrew Schulman
2009-06-30  2:41       ` Chris Sutcliffe
2009-06-30 18:50         ` Andrew Schulman
2009-06-30 18:55           ` Chris Sutcliffe
2009-07-01  3:19         ` Andrew Schulman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).