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

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Jlz6xZRrQgNOW1Fj5aT1xldeow9jtP5xFxeFpe+PjzEN1Fd14gHtu
G9qRzYr23o8WdTDHIJHZ0Iepzo0n3NBeHnbx9+uBMfDqP/kzViaYWJ4DD5bbe3OO
MN5nUDYrv4H7wKT5BRnU3/P3P+oJrGHQsHZaKMbo7bhTJNdf5vi8s8=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=UW6ZYRa3ceBhQGn1GWljre0wK90=; b=JBl8pFRwDAX/ceF7Bqa5PLqH22/d
f6VrB6XqzwZzLEtjanI8jmmQ8OHioIA4YVoER6q2tkdG7EvNdQB7V23n9ak38zIg
LjgkpLVJZ2JdBcQcaMkKit6KKrFXzAzNwur/TVjVN92AG6Zhj7UuP+3L7O0ejSAT
bk/7HqHcd4fyVmo=
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=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 15 Jul 2015 15:11:49 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: SIGSEGV before main ? and gcc-debuginfo
Message-ID: <20150715131149.GQ16720@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <55A0C41E DOT 6080203 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <55A0C41E.6080203@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--OgApRN/oydYDdnYz
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> $ 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-r=
c2_build64/ncdump/.libs/ctest.exe
> [New Thread 9476.0x2a88]
> [New Thread 9476.0x1fa0]
> [New Thread 9476.0x9a8]
>=20
> 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 */
>=20
> 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?

> SizeOfStackReserve      0000000000200000
>=20
> SizeOfStackReserve      00000000007a1200
>=20
> with no success.
>=20
> 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.

> $ uname -svr
> CYGWIN_NT-6.1 2.0.4(0.287/5/3) 2015-06-09 12:22
>=20
>=20
> In addition there is a problem with gcc-debuginfo
>=20
>  $ cygcheck -l gcc-debuginfo |grep cygwin.S
> /usr/src/debug/gcc-4.9.3-1/libgcc/config/i386/cygwin.S
>=20
> (gdb) break ___chkstk_ms
> Breakpoint 2 at 0x100407a60: ___chkstk_ms. (5 locations)
> (gdb) run
> Starting program: /cygdrive/e/cyg_pub/devel/netcdf/prova/netcdf-c-4.4.0-r=
c2_build64/ncdump/.libs/ctest.exe
> [New Thread 6656.0x2980]
>=20
> Breakpoint 2, ___chkstk_ms () at ../../../libgcc/config/i386/cygwin.S:137
> 137     ../../../libgcc/config/i386/cygwin.S: No such file or directory.

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


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--OgApRN/oydYDdnYz
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVplwVAAoJEPU2Bp2uRE+gz64P/1wlBHjuMnUf+m6vHENXvE0z
1Hr7NFjZ1d9/aHYT/TInE8digV5tJpMBnzMZ1ovYId9p0aQq37zZNXPoEA9R1lpD
o/9EGCCnQN80GWpo/X70rpLJeZ9kVYu8mpbsaCN5LvZuqSNzGZ3rwC7ZA3ytCVex
6Ec1+PVC0E7HEVM95xS/pafpji8oU3/cggvmvLL9qWAgWm27SzmhBwDGpwBN/v9V
4CfgtBiQJc2cuaGniHNhak4IAQTftAkrc2mbHco5wn0wygDSFcPk1leTxvAEXBGz
RPDYdlTZ+bICtLd0aSM6rRnb+j6XJBd4+L2yAXjub3DVaMs7HPcpJ3ZR5te1re1X
otIit1yurlaYWzRcixY9SCJZOityHMggr2FP3sj5rnoyuZVDH7IQuAfSZVVryFmH
oAgMFU+A7IqtDAfbwq67yJ2sGbk/Ag98Yk6EsWX+aLGvRj/KZLDUNV6KVtufjAYh
gan092YK3WDUAO3Fm8apsg0WD2Ssxs0mi00IPo4ZxXfwypIx7XNc4Ej0EjLYWTWN
fGMIMLMQbBUtamsYLBtM7WMdLgFHOsfSQfQlBJQz85DtennE6hcvJlk+FNuj6m/U
vkRwtFhx8gd7SNQV1FVS8J8FwhszhpGCQ5fNWdXj0NCqf6oX/2Mpr1PbV2VlfQwD
LdzvA7bxT/SdDYMXV72+
=4zm+
-----END PGP SIGNATURE-----

--OgApRN/oydYDdnYz--

- Raw text -


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