From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cyprien Nicolas Newsgroups: gmane.lisp.guile.bugs Subject: bug#11845: guile-1.8.8 segfaults at build-time with gcc-4.6.3 and -O3 Date: Tue, 03 Jul 2012 12:33:00 +0200 Message-ID: <4FF2CA5C.7070307@gmail.com> References: <4FF1EA37.8080909@gmail.com> <87mx3hnong.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1341311620 20979 80.91.229.3 (3 Jul 2012 10:33:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 10:33:40 +0000 (UTC) Cc: 11845@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Jul 03 12:33:37 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sm0QL-0003wY-6N for guile-bugs@m.gmane.org; Tue, 03 Jul 2012 12:33:37 +0200 Original-Received: from localhost ([::1]:46781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm0QJ-0004F5-VJ for guile-bugs@m.gmane.org; Tue, 03 Jul 2012 06:33:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm0QC-0004EO-GT for bug-guile@gnu.org; Tue, 03 Jul 2012 06:33:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm0Q5-0001NW-IG for bug-guile@gnu.org; Tue, 03 Jul 2012 06:33:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm0Q5-0001NK-CX for bug-guile@gnu.org; Tue, 03 Jul 2012 06:33:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sm0Ub-0002kE-GM for bug-guile@gnu.org; Tue, 03 Jul 2012 06:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cyprien Nicolas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 03 Jul 2012 10:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11845 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11845-submit@debbugs.gnu.org id=B11845.134131187110534 (code B ref 11845); Tue, 03 Jul 2012 10:38:01 +0000 Original-Received: (at 11845) by debbugs.gnu.org; 3 Jul 2012 10:37:51 +0000 Original-Received: from localhost ([127.0.0.1]:44471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sm0UR-0002jr-0N for submit@debbugs.gnu.org; Tue, 03 Jul 2012 06:37:51 -0400 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]:64199) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sm0UO-0002jk-US for 11845@debbugs.gnu.org; Tue, 03 Jul 2012 06:37:49 -0400 Original-Received: by eaaq13 with SMTP id q13so2435892eaa.3 for <11845@debbugs.gnu.org>; Tue, 03 Jul 2012 03:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=onv/3sklNtVF8K44cho5qPOKxvcUN/n1xXW9eugiIdM=; b=XI+m0bfsy1+41tVXdga/x83KXvLeMiqVViZz0/YdZMTTVEKloVghFCNSOZlAxS/9Ps +C0yXukN1mBf7Bfau/1Ugskr5qO5aqmwJ3JpF04lNTowYti2gbRcruLg7B1aLpXIaxNN Mkhv+o+m7qztyS4186C1ehXoK+BXwlS8cRkkRe5+1Hbjigk4lVIu45AoLTXkoQOMDAf+ kyuCC7+VwznSMtjyLKDENQlneAue2nsQ6ibOBnofatCLWtDN28joHS9xVtnr68iNujqK l/StE3lxeNEM3BpNBCYq+++mS3zYlArdL2Rk793YnAlUHbqapfRIU4tm8WjzQvBeNMjw gRLg== Original-Received: by 10.14.94.142 with SMTP id n14mr4189621eef.211.1341311587459; Tue, 03 Jul 2012 03:33:07 -0700 (PDT) Original-Received: from [192.168.1.5] (reverse-241.fdn.fr. [80.67.176.241]) by mx.google.com with ESMTPS id m46sm43623688eeh.9.2012.07.03.03.33.05 (version=SSLv3 cipher=OTHER); Tue, 03 Jul 2012 03:33:06 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120622 Firefox/13.0.1 SeaMonkey/2.10.1 In-Reply-To: <87mx3hnong.fsf@gnu.org> X-Enigmail-Version: 1.4.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6380 Archived-At: Ludovic Courtès wrote: > Hi Cyprien, Hi Ludo’, > > Guile 2.0 uses this instead: > > --8<---------------cut here---------------start------------->8--- > int > find_stack_direction (int *addr, int depth) > { > int dir, dummy = 0; > if (! addr) > addr = &dummy; > *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; > dir = depth ? find_stack_direction (addr, depth - 1) : 0; > return dir + dummy; > } > > int > main (int argc, char **argv) > { > return find_stack_direction (0, argc + !argv + 20) < 0; > } > --8<---------------cut here---------------end--------------->8--- > > Can you check whether it works for you? Already checked, at the very end of my previous message, and it actually works for me. > (See also > > on that topic.) This is the exact same issue :) -- ,Cyprien