| Subject: | [Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers" |
|---|---|
| From: | "mckinlay at redhat dot com" |
| Date: | 21 Nov 2005 22:02:26 -0000 |
------- 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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers", vadimn at redhat dot com |
|---|---|
| Next by Date: | [Bug java/16439] gcj generates wrong line number for static function breakpoint, pinskia at gcc dot gnu dot org |
| Previous by Thread: | [Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers", vadimn at redhat dot com |
| Next by Thread: | [Bug libgcj/1373] recursion stress test causes segmentation fault, pinskia at gcc dot gnu dot org |
| Indexes: | [Date] [Thread] [Top] [All Lists] |