public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/1373] recursion stress test causes segmentation fault
       [not found] <20001220121922.1373.osk@hem.passagen.se>
@ 2003-05-24 23:56 ` pinskia@physics.uc.edu
  2004-01-07 18:42 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-24 23:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-24 23:41:26
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-05-24 23:41 -------
still happens in the mainline (20030524).

With stacksize       8192 kbytes
tin:~/src/gnu/gcctest>./recurse
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
20000
30000
40000
50000
60000
70000
80000
90000
100000
200000
Segmentation fault (core dumped)
tin:~/src/gnu/gcctest>gij recurse
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
Segmentation fault (core dumped)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug java/1373] recursion stress test causes segmentation fault
       [not found] <20001220121922.1373.osk@hem.passagen.se>
  2003-05-24 23:56 ` [Bug java/1373] recursion stress test causes segmentation fault pinskia@physics.uc.edu
@ 2004-01-07 18:42 ` pinskia at gcc dot gnu dot org
  2004-01-07 18:48 ` [Bug libgcj/1373] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-07 18:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-07 18:42 -------
*** Bug 13605 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <20001220121922.1373.osk@hem.passagen.se>
  2003-05-24 23:56 ` [Bug java/1373] recursion stress test causes segmentation fault pinskia@physics.uc.edu
  2004-01-07 18:42 ` pinskia at gcc dot gnu dot org
@ 2004-01-07 18:48 ` pinskia at gcc dot gnu dot org
  2004-01-08 20:39 ` bruno at clisp dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-07 18:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-07 18:48 -------
A library issue and not a front-end one.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|java                        |libgcj


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <20001220121922.1373.osk@hem.passagen.se>
                   ` (2 preceding siblings ...)
  2004-01-07 18:48 ` [Bug libgcj/1373] " pinskia at gcc dot gnu dot org
@ 2004-01-08 20:39 ` bruno at clisp dot org
  2004-01-08 20:44 ` pinskia at gcc dot gnu dot org
  2004-04-19 15:54 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: bruno at clisp dot org @ 2004-01-08 20:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bruno at clisp dot org  2004-01-08 20:39 -------
> One way of fixing this having a signal catcher for SIGSEGV but from the
glibc's signal 
> man page:
> According to POSIX, the behaviour of a process is undefined after it ignores a
SIGFPE, 
> SIGILL, or SIGSEGV signal that was not generated by the kill(2) or the
raise(3) functions.

This is not very relevant, because in practice, using the proper cautions,
catching SIGSEGV coming from a stack overflow works fine. GNU libsigsegv
provides the functionality, and GNU clisp and GNU smalltalk use it. It works on
Linux, OSF/1, FreeBSD, OpenBSD, NetBSD/Alpha, MacOS X, Solaris, HP-UX/HPPA,
IRIX, AIX 4, BeOS, Cygwin, Windows. The only tricky point in using it would be
the necessity to extend the stack by a few pages in order to be able to throw
the StackOverflowException. Or to throw this exception from within the signal
stack. Either of these would be challenging.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <20001220121922.1373.osk@hem.passagen.se>
                   ` (3 preceding siblings ...)
  2004-01-08 20:39 ` bruno at clisp dot org
@ 2004-01-08 20:44 ` pinskia at gcc dot gnu dot org
  2004-04-19 15:54 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-08 20:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-08 20:44 -------
Note the word "undefined", on most platforms it will work just fine but it does not have to work on 
some platforms or even on ones where  it looks like it does.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <20001220121922.1373.osk@hem.passagen.se>
                   ` (4 preceding siblings ...)
  2004-01-08 20:44 ` pinskia at gcc dot gnu dot org
@ 2004-04-19 15:54 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-19 15:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-19 15:25 -------
Note at -O1 on the tree-ssa it never exits because of tail recursion optimization also.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-01-12 14:41:03         |2004-04-19 15:25:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-04-23 16:16 ` pinskia at gcc dot gnu dot org
@ 2006-04-23 16:18 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-23 16:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2006-04-23 16:18 -------
A better testcase comes from PR 27268 which seg faults at all optimizations
level currently (though this case can also be optimized out to be an infinite
loop really):
public class test
{
    public test()
    {
        test t = new test();
    }

    public static void main(String argv[])
    {
        new test();
    }
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-11-21 21:46 ` pinskia at gcc dot gnu dot org
@ 2006-04-23 16:16 ` pinskia at gcc dot gnu dot org
  2006-04-23 16:18 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-23 16:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2006-04-23 16:16 -------
*** Bug 27268 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |debian-gcc at lists dot
                   |                            |debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-13  9:11 ` aph at gcc dot gnu dot org
@ 2005-11-21 21:46 ` pinskia at gcc dot gnu dot org
  2006-04-23 16:16 ` pinskia at gcc dot gnu dot org
  2006-04-23 16:18 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-21 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2005-11-21 21:46 -------
*** Bug 24980 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vadimn at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
  2005-10-13  9:08 ` aph at gcc dot gnu dot org
  2005-10-13  9:10 ` aph at gcc dot gnu dot org
@ 2005-10-13  9:11 ` aph at gcc dot gnu dot org
  2005-11-21 21:46 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-10-13  9:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from aph at gcc dot gnu dot org  2005-10-13 09:11 -------
And http://gcc.gnu.org/ml/java-patches/2004-q4/msg00270.html.

Hans' threading seems to be broken.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
  2005-10-13  9:08 ` aph at gcc dot gnu dot org
@ 2005-10-13  9:10 ` aph at gcc dot gnu dot org
  2005-10-13  9:11 ` aph at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-10-13  9:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from aph at gcc dot gnu dot org  2005-10-13 09:10 -------
See also http://gcc.gnu.org/ml/java-patches/2004-q4/msg00241.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libgcj/1373] recursion stress test causes segmentation fault
       [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
@ 2005-10-13  9:08 ` aph at gcc dot gnu dot org
  2005-10-13  9:10 ` aph at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-10-13  9:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from aph at gcc dot gnu dot org  2005-10-13 09:07 -------
See http://gcc.gnu.org/ml/java-patches/2004-q4/msg00230.html.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1373


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-04-23 16:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20001220121922.1373.osk@hem.passagen.se>
2003-05-24 23:56 ` [Bug java/1373] recursion stress test causes segmentation fault pinskia@physics.uc.edu
2004-01-07 18:42 ` pinskia at gcc dot gnu dot org
2004-01-07 18:48 ` [Bug libgcj/1373] " pinskia at gcc dot gnu dot org
2004-01-08 20:39 ` bruno at clisp dot org
2004-01-08 20:44 ` pinskia at gcc dot gnu dot org
2004-04-19 15:54 ` pinskia at gcc dot gnu dot org
     [not found] <bug-1373-3604@http.gcc.gnu.org/bugzilla/>
2005-10-13  9:08 ` aph at gcc dot gnu dot org
2005-10-13  9:10 ` aph at gcc dot gnu dot org
2005-10-13  9:11 ` aph at gcc dot gnu dot org
2005-11-21 21:46 ` pinskia at gcc dot gnu dot org
2006-04-23 16:16 ` pinskia at gcc dot gnu dot org
2006-04-23 16:18 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).