From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128970 invoked by alias); 15 Jul 2015 13:24:26 -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 128242 invoked by uid 89); 15 Jul 2015 13:24:25 -0000 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 Received: from mail-wg0-f41.google.com (HELO mail-wg0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 15 Jul 2015 13:24:24 +0000 Received: by wgxm20 with SMTP id m20so33606281wgx.3 for ; Wed, 15 Jul 2015 06:24:21 -0700 (PDT) X-Received: by 10.180.77.40 with SMTP id p8mr231474wiw.29.1436966661417; Wed, 15 Jul 2015 06:24:21 -0700 (PDT) Received: from [192.168.2.108] (pD9E6149B.dip0.t-ipconnect.de. [217.230.20.155]) by smtp.googlemail.com with ESMTPSA id l14sm7929259wjq.21.2015.07.15.06.24.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jul 2015 06:24:20 -0700 (PDT) Subject: Re: SIGSEGV before main ? and gcc-debuginfo To: cygwin@cygwin.com References: <55A0C41E.6080203@gmail.com> <20150715131149.GQ16720@calimero.vinschen.de> From: Marco Atzeri Message-ID: <55A65EE9.7030608@gmail.com> Date: Wed, 15 Jul 2015 13:24:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00247.txt.bz2 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