From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30915 invoked by alias); 16 Jan 2017 20:26:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 30898 invoked by uid 89); 16 Jan 2017 20:26:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=dllmain, DllMain, HCc:D*co.uk, unloaded X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Jan 2017 20:26:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4003420A2F; Mon, 16 Jan 2017 15:26:38 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 16 Jan 2017 15:26:38 -0500 X-ME-Sender: Received: from [192.168.1.102] (host86-173-196-32.range86-173.btcentralplus.com [86.173.196.32]) by mail.messagingengine.com (Postfix) with ESMTPA id C43277E53B; Mon, 16 Jan 2017 15:26:37 -0500 (EST) Subject: Re: svn segfault when using svn+ssh schema To: cygwin@cygwin.com References: <9a5a8d1d-2b71-522e-59a6-29ad915e2445@acm.org> <333d0191-3b5b-da0d-bb58-b4e8cc840352@cs.umass.edu> From: Jon Turney Cc: Sam Edge Message-ID: Date: Mon, 16 Jan 2017 20:26:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-01/txt/msg00198.txt.bz2 On 16/01/2017 20:07, Sam Edge wrote: > On 09/01/2017 19:07, Sam Edge wrote: >> On 09/01/2017 02:04, Eliot Moss wrote: >>> On 1/8/2017 3:45 PM, David Rothenberger wrote: >>>> On 1/8/2017 6:12 AM, Sam Edge wrote: >>>>> I've seen a number of 'svn segfault' threads on the mailing list >>>>> archive >>>>> but none of them seem to cover this specific failure mode. >>>>> (Apologies if >>>>> one of them does!) >>>>> >>>>> I'm getting segfaults from svn but only when using ssh as the schema. >>>>> The following three commands are all accessing the same server, the >>>>> name >>>>> of which has been changed to protect the guilty. >>>>> >>>>> -------- >>>>> SamEdge@thor ~ >>>>> $ ssh cmserver.XXXXXX.com >>>>> ( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries >>>>> commit-revprops depth log-revprops atomic-revprops partial-replay >>>>> inherited-props ephemeral-txnprops file-revs-reverse ) ) ) >>>>> SamEdge@thor ~ >>>>> $ svn ls svn+ssh://cmserver.XXXXXX.com/edl/ >>>>> Segmentation fault (core dumped) >>> Assuming this is repeatable behavior, perhaps getting a trace using >>> strace would reveal some more useful information. >>> >>> Regards - Eliot Moss >>> >> Good idea. >> >> Strangely, on another Windows 7 64-bit machine svn+ssh to the same >> server is working fine for me. The most significant differences are that >> the 'working' machine is running Windows 7 Pro on an Intel CPU with >> Sophos AV and domain accounts whereas the 'failing' machine is Windows 7 >> Home Premium on an AMD with MS Security Essentials and local accounts. >> These differences may or may not be relevant of course. >> >> Anyway, attached are the two strace outputs. Diffing them suggests that >> it's segfaulting in the fork() "system" call. Not quite, this strace has... > --- Process 5436 loaded C:\cygwin64\lib\sasl2_3\cygcrammd5-3.dll at 00000003EA090000 > --- Process 5436, exception c0000005 at 00000003EA023780 > --- Process 5436 unloaded DLL at 00000003EA090000 > 333 52465 [main] svn 5436 seterrno_from_win_error: /home/corinna/src/cygwin/cygwin-2.6.1/cygwin-2.6.1-1.x86_64/src/newlib-cygwin/winsup/cygwin/dlfcn.cc:304 windows error 998 > 24 52489 [main] svn 5436 geterrno_from_win_error: windows error 998 == errno 14 > 20 52509 [main] svn 5436 dlopen: ret 0x0 and then a bit later > 21 91851 [main] svn 5436 fork: entering > 168 92019 [main] svn 5436 sig_send: sendsig 0x80, pid 5436, signal -72, its_me 1 > 19 92038 [main] svn 5436 sig_send: wakeup 0x28C > 24 92062 [main] svn 5436 sig_send: Waiting for pack.wakeup 0x28C > 36 92098 [sig] svn 5436 wait_sig: signalling pack.wakeup 0x28C > 27 92125 [main] svn 5436 sig_send: returning 0x0 from sending signal -72 > --- Process 5436, exception c0000005 at 0000000180053D3F So it looks like perhaps cygcrammd5 is faulting during it's DllMain, and perhaps this leaves things in a state that dll_list::topsort can't handle... >> I don't have time in the week to run it in a debug session but I'll try >> to do so at the weekend given the advice I've been given here. I will >> also do a rebaseall after I've tracked down the >> >> Thanks for the feedback folks. Much appreciated. >> >> BR > > Hi again. > > I've downloaded the debug symbols for subversion & the Cygwin dll and > run the command in gdb. Output attached. Not really giving me any clues > so far. You also need the symbols for the DLL loaded at the faulting address. From previous information I'd guess that is cyrus-sasl-debuginfo. (you can check this using gdb's 'info shared' command) > I've also run 'rebaseall' on the off chance that it would help - it didn't! > > Still open to suggestions if anyone has any "light bulb" notions. :-) -- 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