From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1190 invoked by alias); 21 Nov 2005 22:02:26 -0000 Received: (qmail 1171 invoked by uid 48); 21 Nov 2005 22:02:26 -0000 Date: Mon, 21 Nov 2005 22:02:00 -0000 Message-ID: <20051121220226.1170.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers" In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "mckinlay at redhat dot com" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2005-q4/txt/msg00384.txt.bz2 List-Id: ------- Comment #7 from mckinlay at redhat dot com 2005-11-21 22:02 ------- > Except that under Bryce's GCJ, the function terminates successfully > even if you throw in System.out.println's into it, thus tainting its > "purity". No, when I add a System.out.println("hi"), and compile with a trunk gcj, the example behaves as expected - "hi" is printed many times until a stack overflow eventually occurs, resulting in a segfault. Removing the try/finally, the example runs forever thanks to tail-call optimization. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24980