delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/15/09:24:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=TCC8b755pd/3t9qA
ETTZwKcX88nINcnMZAoG4YVID9kkfgtK1WTK6JL/TslkxVhOsEQSzuS4/ueCkVRa
o4u/Em+BOjslKZjJLOpgpRAIsTTcnuz5zQg2Gd8Nol2U9bQEJFHhVGLVX7WjQvNa
or0bk4DSWQpx6zVGvctAUt8FkNw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=kLc4+zVsfIuMVwy5hQ0OsB
HSGpQ=; b=ZUbz2A91VazpiJbBuAo7H33xHeS1/0Z7Um61+Mola8tmr21K3Bsgku
NOFtHIkID87qWBO8qVlm44Zh5GZ4xibeAK4Gwey6AYu6i8z6bCLgHHDBMEC0q1BF
YIk4sMUDddsMuQ9eKk6aaLYNhZ4oAlLOe7hdbvF+cHHqVTiHBLbR4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wg0-f41.google.com
X-Received: by 10.180.77.40 with SMTP id p8mr231474wiw.29.1436966661417; Wed, 15 Jul 2015 06:24:21 -0700 (PDT)
Subject: Re: SIGSEGV before main ? and gcc-debuginfo
To: cygwin AT cygwin DOT com
References: <55A0C41E DOT 6080203 AT gmail DOT com> <20150715131149 DOT GQ16720 AT calimero DOT vinschen DOT de>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <55A65EE9.7030608@gmail.com>
Date: Wed, 15 Jul 2015 15:23:53 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
MIME-Version: 1.0
In-Reply-To: <20150715131149.GQ16720@calimero.vinschen.de>
X-IsSubscribed: yes

On 7/15/2015 3:11 PM, Corinna Vinschen wrote:
> Hi Marco,
>
>
> I seem to have missed this...
>
> On Jul 11 09:22, Marco Atzeri wrote:
>> trying to debug latest release candidate of netcdf
>> I hit this SIGSEGV before reaching main
>>
>> $ gdb .libs/ctest.exe
>> GNU gdb (GDB) Cygwin 7.9.1-1
>> .....
>> Reading symbols from .libs/ctest.exe...done.
>> (gdb) break main
>> Breakpoint 1 at 0x100401171: file
>> /pub/devel/netcdf/prova/netcdf-c-4.4.0-rc2/ncdump/ctest.c, line 32.
>> (gdb) run
>> Starting program: /cygdrive/e/cyg_pub/devel/netcdf/prova/netcdf-c-4.4.0-rc2_build64/ncdump/.libs/ctest.exe
>> [New Thread 9476.0x2a88]
>> [New Thread 9476.0x1fa0]
>> [New Thread 9476.0x9a8]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> ___chkstk_ms () at
>> /usr/src/debug/gcc-4.9.3-1/libgcc/config/i386/cygwin.S:146
>> 146             orq     $0x0, (%rcx)            /* probe there */
>>
>> I thought it was a stack issue and I raised from 2M to 8M
>
> It *is* a stack issue of some sort, otherwise it wouldn't have called
> ___chkstk_ms, which is the guard page handler.
>
> Did you find out in the meantime?

No. I put at side the issue and reported as upstream regression
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2015/msg00192.html

As the crash is on initialization of a test program
is not too high on my TODO.

>> SizeOfStackReserve      0000000000200000
>>
>> SizeOfStackReserve      00000000007a1200
>>
>> with no success.
>>
>> May be it is not a netcdf bug ? Ideas what to look for ?
>
> If it's prior to main, it must be some constructor.  Other than that,
> no idea.
>

>
> Hmm, the relative path might break finding the debuginfo.  You
> should be able to help gdb by calling
>
>    (gdb) dir /usr/src/debug/gcc-4.9.3-1/libgcc/config/i386
>
>

thanks. I will try



> Corinna
>

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

- Raw text -


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