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: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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 Subject: SIGSEGV before main ? and gcc-debuginfo To: "cygwin AT cygwin DOT 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