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=nt1sLyHoZmTeMPyy MzpyeNcq7/YIvUsRC+cJGr5WyZJcVO5wUWaSxGxE0BuopxfljWrX7MDC6q8xuhgU aTxanUboE4y+bDDeYTZVGV/+qe9lxVNVdk4+bws2POzeXC1oLyNbf8hBtv1t1xDh SxMlCZpg5LH6FVwNMlOrJOb9fxI= 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=6n20+a8A5qqqzIv30dH2aU aIxWc=; b=yIuqgKDnXI+6KgLfk4nborn3nJMDdLt/FCb/24JRb2K0wcZHt8/uGr xlazFzzyB+Bb5ozeikN6obzVnFArTk6WghlHd7XeCTeCFLCBtZ7cHs0tr6H5O+Vh qFg+BKL0C5xqsVWr7qyVl/onhf8tYI6fP/ZCcb3tYQxS3EJ1lOBM8= 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.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f179.google.com X-Received: by 10.195.18.67 with SMTP id gk3mr4189536wjd.35.1446673367737; Wed, 04 Nov 2015 13:42:47 -0800 (PST) Subject: Re: Segmentation fault before main To: cygwin AT cygwin DOT com References: <56338BCC DOT 40709 AT gmail DOT com> <20151030191826 DOT GQ5319 AT calimero DOT vinschen DOT de> <5633C8D0 DOT 2060101 AT gmail DOT com> From: Marco Atzeri Message-ID: <563A7BD4.5050007@gmail.com> Date: Wed, 4 Nov 2015 22:42:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5633C8D0.2060101@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 30/10/2015 20:45, Marco Atzeri wrote: > On 30/10/2015 20:18, Corinna Vinschen wrote: >> On Oct 30 16:25, Marco Atzeri wrote: >>> Hi Corinna, >>> > >>> Any help will be really appreciated. >> >> Well, it's a stack probe. It's typically called when trying to allocate >> big datastructures on the stack, e.g. with alloca. Did you try to raise >> the default stacksize in the executable header (see peflags -x and -X >> options). There's not much else to work with... >> For the archive, I found the culprit in the test code. Using "%lu" to print int is not a good idea on cygwin 64 bit. - bbprintf0(stmt,"%ssize_t %s_countset[%lu] = {", + bbprintf0(stmt,"%ssize_t %s_countset[%u] = {", indented(1), cname(vsym), rank); as it could produce size_t br_startset[25769803777] = {0} ; size_t br_countset[25769803777] = {2}; instead of size_t br_startset[1] = {0} ; size_t br_countset[1] = {2}; as 25769803777 = 0x00060001 Regards Marco -- 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