X-Recipient: archive-cygwin@delorie.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:from:subject:to:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=UX8
	m56TlS81p5Z3VaYsL8JhXtqyZCaxqcP4g7+Qm+dUTjCm8WWVUZOen+c7YrdXJGyV
	6oTwphkLwnC5zMMykLfafaWJF3S/aQlWfvVZsahCftNykNmZLMc2HM0WNODZ+tgS
	AT4skO8Oe3ueirbELbbKWX86r0obPtkuoZ+suDYg=
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:from:subject:to:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=ZIPL+zZsE
	ZWnktpVgn+YWMg1Hw4=; b=TXVV05hOmYeMzoUxc64oWUrlFSYkkIdVrGXgxkAAs
	nGgpwm32HVGOjN25iy4Apydq7+Abmt1r2AXn0QgMp0U805lsllvHXZsQ3zr0b+nS
	bZXthZkuZAuj/UFBYSVgSBdYH+dACqtLqIHTgKss+5nGqh2tSmU73stVxeWvvvvP
	dY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wg0-f42.google.com
X-Received: by 10.181.13.36 with SMTP id ev4mr4625725wid.65.1436599360966;        Sat, 11 Jul 2015 00:22:40 -0700 (PDT)
From: Marco Atzeri <marco.atzeri@gmail.com>
Subject: SIGSEGV before main ? and gcc-debuginfo
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Message-ID: <55A0C41E.6080203@gmail.com>
Date: Sat, 11 Jul 2015 09:22:06 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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

SizeOfStackReserve      0000000000200000

SizeOfStackReserve      00000000007a1200

with no success.

May be it is not a netcdf bug ? Ideas what to look for ?


$ uname -svr
CYGWIN_NT-6.1 2.0.4(0.287/5/3) 2015-06-09 12:22


In addition there is a problem with gcc-debuginfo

  $ cygcheck -l gcc-debuginfo |grep cygwin.S
/usr/src/debug/gcc-4.9.3-1/libgcc/config/i386/cygwin.S

(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-rc2_build64/ncdump/.libs/ctest.exe
[New Thread 6656.0x2980]

Breakpoint 2, ___chkstk_ms () at ../../../libgcc/config/i386/cygwin.S:137
137     ../../../libgcc/config/i386/cygwin.S: No such file or directory.

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

