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]

autossh crash with 20050314 and earlier cygwin1.dll


I've been having some problems with autossh crashing with 1.5.13 and
later snapshots. These problems did not occur with 1.5.12. (The problem
may be related to the one reported by Andrew Schulman in
<http://sourceware.org/ml/cygwin/2005-03/msg00410.html>.)

autossh doesn't reliably crash for me within 5 minutes as it does for
Andrew. It has crashed twice in the few weeks and I've captured stack
traces for each. I was running a debugging copy of the Cygwin DLL (built
myself from CVS) in each case and I've run addr2line on each stack
trace. The second stack trace was running the DLL build from CVS at
20050314 19:52:25 PDT. I don't have the date of the DDL for the first
stack trace, but it was an earlier one.

In both cases, autossh has detected an ssh child exit on signal 1. It
then tries to restart ssh, but the ssh child continues to exit with
signal 11. It continues to try to restart the child until autossh itself
fails with a STATUS_ACCESS_VIOLATION exception.

The first stack trace was from "thread sig" and the second from "thread
main". In both cases, the exception occurred in malloc, from a realloc call.

The second stack trace includes two function addresses that couldn't be
resolved. I've rebuilt autossh with debugging symbols and am running
that now in case another stack trace appears with functions in autossh
itself.

The two stack traces and my cygcheck out are attached. I wish I could
provide more information, but I haven't figured out how to trigger the
exception, so I can't run an strace on autossh or use gdb.

David

--
David Rothenberger                spammer? -> spam@daveroth.dyndns.org
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734

Exception: STATUS_ACCESS_VIOLATION at eip=61093A1F
eax=6112B494 ebx=50385452 ecx=0A0504F0 edx=2C375453 esi=5A3D5942 edi=00000020
ebp=0065E938 esp=0065E918 program=C:\cygwin\bin\autossh.exe, pid 1228, thread sig
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0065E938  61093A1F  (6112B460, 7974742F, 61120031, 6974616D)    malloc.cc:3952
0065E978  610937FD  (0000C2C0, 0A050A10, 0A05CCC8, 0A05CCD0)    malloc.cc:3473
0065E9B8  61045569  (00000000, 00000328, 0A069574, 00000004)    malloc_wrapper.cc:85
0065E9E8  610C52E2  (0065EA80, 0065EA18, 00000000, 00000004)    pinfo.cc:1210
0065EA28  6105B63D  (0065EA80, 00000000, 0065F0A0, 0065EA80)    pinfo.cc:1273
0065EA48  6105B823  (0065EA80, 00000000, 0000072C, 00000000)    pinfo.cc:1328
0065EA68  6105B794  (0065EA80, 00000000, 7C801898, 0065EB00)    pinfo.cc:1313
0065EAB8  6107843B  (0000072C, 0065EB00, 000000A4, 0065EAEC)    sigproc.cc:928
0065EFC8  610787BE  (610CA958, 00000000, 00000000, 00000000)    sigproc.cc:1107
0065EFF8  61002D1F  (610CA958, 0065F030, 61002CB0, 00000000)    cygthread.cc:73
0065F028  610039F4  (00000000, 00000000, 00000000, 00000000)    cygtls.cc:92
0065FF98  610039AA  (00000000, 00000000, 00000000, 00000000)    cygtls.cc:82
End of stack trace

Exception: STATUS_ACCESS_VIOLATION at eip=61093B6F
eax=6111D494 ebx=50385452 ecx=0A0504F0 edx=2C375453 esi=5A3D5942 edi=00000020
ebp=0022DD48 esp=0022DD28 program=C:\cygwin\bin\autossh.exe, pid 6680, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022DD48  61093B6F  (6111D460, 00000000, 00000000, 00000002)    malloc.cc:3952
0022DD88  6109394D  (00000000, 617D33A8, 0022F0A0, 00000040)    malloc.cc:3473
0022DDC8  61045569  (00000000, 0000021E, 0000000C, 00000015)    malloc_wrapper.cc:85
0022DDE8  61079954  (0022E9A0, 0022EA00, 00000015, 00240000)    spawn.cc:223
0022EB28  6107AE21  (0022EC00, 0A0503D0, 0A0504C0, 00000003)    spawn.cc:565
0022EB58  6107B44F  (00000003, 0022EC00, 0A0503D0, 0A0504C0)    spawn.cc:935
0022EB78  61016A5B  (0022EC00, 0A0503D0, 0A0504C0, 00000000)    exec.cc:36
0022EB98  61016AF1  (0022EC00, 0A0503D0, 0022ECF8, 0022EBA0)    exec.cc:63
0022ED18  61016C05  (0A0503B8, 0A0503D0, 0A0503B8, 00000004)    exec.cc:93
0022ED58  6107385F  (00000004, 0A0503D0, 00000001, 00004E22)    ??:0
0022EFC8  004015FD  (00000007, 617D1688, 0A0500A8, 0022F020)    ??:0
0022F008  610054DD  (0022F020, 0022F2F4, 002441F0, 0022F850)    dcrt0.cc:861
0022FF88  61005603  (00000000, 00000000, 00000000, 00000000)    dcrt0.cc:916
End of stack trace

Attachment: cygcheck.out
Description: Text document

--
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]