public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/31622]  New: Segment violation in the “toString” method on a mathematical expression
@ 2007-04-18 15:13 eduardo dot iniesta at aquiline dot es
  2007-04-18 17:12 ` [Bug java/31622] " tromey at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: eduardo dot iniesta at aquiline dot es @ 2007-04-18 15:13 UTC (permalink / raw)
  To: java-prs

CONTEXT:

- GCC version: 4.3.0.
- Front end: gcj.
- Operating System: Linux Debian, kernel 2.6.17-2-686.
- Hardware: CPU Intel Pentium 4 Xeon, 3 GHz, 16 KB cache L1, 2 MB cache L2.
RAM: 1 GB.

There is a segment violation error when compiling the following code:

public class Fail
{
    public static void main(String args[]) {
        long a=5, b=2, r;
        r=(a-b).toString();
    }
}

The line number 5, r=(a-b).toString();, causes a segment violation during the
compilation:

gcj -C -Wall Fail.java


-- 
           Summary: Segment violation in the “toString” method
                    on a mathematical expression
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eduardo dot iniesta at aquiline dot es
 GCC build triplet: i486-linux-gnu
  GCC host triplet: Intel Pentium 4 Xeon
GCC target triplet: i486-linux-gnu


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


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

* [Bug java/31622] Segment violation in the “toString” method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the “toString” method on a mathematical expression eduardo dot iniesta at aquiline dot es
@ 2007-04-18 17:12 ` tromey at gcc dot gnu dot org
  2007-04-19  1:27 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-04-18 17:12 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from tromey at gcc dot gnu dot org  2007-04-18 18:12 -------
Are you sure you are using gcj 4.3?

I see a SEGV with 4.1 and 4.2.  But with 4.3 I see an error:

opsy. gcj -C Fail.java 
Fail.java:5: error: Cannot invoke toString() on the primitive type long
        r=(a-b).toString();
          ^^^^^^^^^^^^^^^^
1 problem (1 error)

(Note that, in all likelihood, we won't fix front end bugs of this nature
in 4.1 or 4.2.)


-- 

tromey at gcc dot gnu dot org changed:

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


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


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

* [Bug java/31622] Segment violation in the “toString” method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the “toString” method on a mathematical expression eduardo dot iniesta at aquiline dot es
  2007-04-18 17:12 ` [Bug java/31622] " tromey at gcc dot gnu dot org
@ 2007-04-19  1:27 ` pinskia at gcc dot gnu dot org
  2007-04-19 16:39 ` eduardo dot iniesta at aquiline dot es
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-19  1:27 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-04-19 02:27 -------
This is the same problem as referenced in PR 27442.

*** This bug has been marked as a duplicate of 27442 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug java/31622] Segment violation in the “toString” method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the “toString” method on a mathematical expression eduardo dot iniesta at aquiline dot es
  2007-04-18 17:12 ` [Bug java/31622] " tromey at gcc dot gnu dot org
  2007-04-19  1:27 ` pinskia at gcc dot gnu dot org
@ 2007-04-19 16:39 ` eduardo dot iniesta at aquiline dot es
  2007-04-20 16:39 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: eduardo dot iniesta at aquiline dot es @ 2007-04-19 16:39 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from eduardo dot iniesta at aquiline dot es  2007-04-19 17:39 -------
(In reply to comment #1)

Thanks...

The exact version is:

$ gcj --version
gcj (GCC) 4.3.0 20061212 (experimental)
...

> Are you sure you are using gcj 4.3?
> 
> I see a SEGV with 4.1 and 4.2.  But with 4.3 I see an error:
> 
> opsy. gcj -C Fail.java 
> Fail.java:5: error: Cannot invoke toString() on the primitive type long
>         r=(a-b).toString();
>           ^^^^^^^^^^^^^^^^
> 1 problem (1 error)
> 
> (Note that, in all likelihood, we won't fix front end bugs of this nature
> in 4.1 or 4.2.)
> 

(In reply to comment #1)
> Are you sure you are using gcj 4.3?
> 
> I see a SEGV with 4.1 and 4.2.  But with 4.3 I see an error:
> 
> opsy. gcj -C Fail.java 
> Fail.java:5: error: Cannot invoke toString() on the primitive type long
>         r=(a-b).toString();
>           ^^^^^^^^^^^^^^^^
> 1 problem (1 error)
> 
> (Note that, in all likelihood, we won't fix front end bugs of this nature
> in 4.1 or 4.2.)
> 


-- 


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


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

* [Bug java/31622] Segment violation in the “toString” method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the “toString” method on a mathematical expression eduardo dot iniesta at aquiline dot es
                   ` (2 preceding siblings ...)
  2007-04-19 16:39 ` eduardo dot iniesta at aquiline dot es
@ 2007-04-20 16:39 ` tromey at gcc dot gnu dot org
  2007-04-23  6:53 ` eduardo dot iniesta at aquiline dot es
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-04-20 16:39 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from tromey at gcc dot gnu dot org  2007-04-20 17:39 -------
Please post the output of running gcj -C -v Fail.java
Thanks.


-- 


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


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

* [Bug java/31622] Segment violation in the “toString” method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the “toString” method on a mathematical expression eduardo dot iniesta at aquiline dot es
                   ` (3 preceding siblings ...)
  2007-04-20 16:39 ` tromey at gcc dot gnu dot org
@ 2007-04-23  6:53 ` eduardo dot iniesta at aquiline dot es
  2007-04-23 16:24 ` tromey at gcc dot gnu dot org
  2007-04-25 12:26 ` eduardo dot iniesta at aquiline dot es
  6 siblings, 0 replies; 8+ messages in thread
From: eduardo dot iniesta at aquiline dot es @ 2007-04-23  6:53 UTC (permalink / raw)
  To: java-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2294 bytes --]



------- Comment #5 from eduardo dot iniesta at aquiline dot es  2007-04-23 07:53 -------
(In reply to comment #4)
> Please post the output of running gcj -C -v Fail.java
> Thanks.
>

The output of running gcj -C -v Fail.java is:

$ gcj -C -v Fail.java > salida_compila.txt
Usando especificaciones internas.
Objetivo: i486-linux-gnu
Configurado con: /usr/src/gcc/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang
--prefix=/usr/src/gcc/build --enable-shared --with-system-zlib
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu : (reconfigured)
/usr/src/gcc/configure -v --enable-languages=all --prefix=/usr/src/gcc/build
--enable-shared --with-system-zlib --enable-libstdcxx-debug --enable-mpfr
--with-tune=i686 --enable-checking=release i486-linux-gnu : (reconfigured)
/usr/src/gcc/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang,java
--prefix=/usr/src/gcc/build --enable-shared --with-system-zlib
--enable-libstdcxx-debug --enable-mpfr --enable-libgcj --with-tune=i686
--enable-checking=release i486-linux-gnu : (reconfigured)
/usr/src/gcc/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang,java
--prefix=/usr/src/gcc/build --enable-shared --enable-libstdcxx-debug
--enable-mpfr --enable-libgcj --with-tune=i686 --enable-checking=release
i486-linux-gnu
Modelo de hilos: posix
gcc versión 4.3.0 20061212 (experimental)
 /usr/src/gcc/build/libexec/gcc/i486-linux-gnu/4.3.0/jc1 Fail.java -quiet
-dumpbase Fail.java -mtune=i686 -auxbase-strip NONE -g1 -version -fsyntax-only
-femit-class-files -o /dev/null
GNU Java versión 4.3.0 20061212 (experimental) (i486-linux-gnu)
        compilado por GNU C versión 4.3.0 20061212 (experimental).
GGC heurísticas: --param ggc-min-expand=99 --param ggc-min-heapsize=129589
Class path starts here:
    ./
    /usr/src/gcc/build/share/java/libgcj-4.3.0.jar/ (system) (zip)
Fail.java: In class 'Fail':
Fail.java: In method 'Fail.main(java.lang.String[])':
Fail.java:5: error interno del compilador: Violación de segmento
Por favor envíe un reporte completo de bichos,
con el código preprocesado si es apropiado.
Vea <URL:http://gcc.gnu.org/bugs.html> para más instrucciones.

Bests regards


-- 


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


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

* [Bug java/31622] Segment violation in the &#8220;toString&#8221; method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the &#8220;toString&#8221; method on a mathematical expression eduardo dot iniesta at aquiline dot es
                   ` (4 preceding siblings ...)
  2007-04-23  6:53 ` eduardo dot iniesta at aquiline dot es
@ 2007-04-23 16:24 ` tromey at gcc dot gnu dot org
  2007-04-25 12:26 ` eduardo dot iniesta at aquiline dot es
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-04-23 16:24 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from tromey at gcc dot gnu dot org  2007-04-23 17:24 -------
Ok.  You are running a version of gcj 4.3 from *before* the gcj-eclipse
merge.  So, this is correctly marked as a duplicate.

If you update and rebuild, and follow the new instructions vis a vis ecj1,
you will get a working gcj.


-- 


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


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

* [Bug java/31622] Segment violation in the &#8220;toString&#8221; method on a mathematical expression
  2007-04-18 15:13 [Bug java/31622] New: Segment violation in the &#8220;toString&#8221; method on a mathematical expression eduardo dot iniesta at aquiline dot es
                   ` (5 preceding siblings ...)
  2007-04-23 16:24 ` tromey at gcc dot gnu dot org
@ 2007-04-25 12:26 ` eduardo dot iniesta at aquiline dot es
  6 siblings, 0 replies; 8+ messages in thread
From: eduardo dot iniesta at aquiline dot es @ 2007-04-25 12:26 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from eduardo dot iniesta at aquiline dot es  2007-04-25 13:26 -------
Thank you very much, Tom.

I have updated GCC 4.3.0. Everything is well.

(In reply to comment #6)
> Ok.  You are running a version of gcj 4.3 from *before* the gcj-eclipse
> merge.  So, this is correctly marked as a duplicate.
> 
> If you update and rebuild, and follow the new instructions vis a vis ecj1,
> you will get a working gcj.
> 


-- 


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


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

end of thread, other threads:[~2007-04-25 12:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18 15:13 [Bug java/31622] New: Segment violation in the &#8220;toString&#8221; method on a mathematical expression eduardo dot iniesta at aquiline dot es
2007-04-18 17:12 ` [Bug java/31622] " tromey at gcc dot gnu dot org
2007-04-19  1:27 ` pinskia at gcc dot gnu dot org
2007-04-19 16:39 ` eduardo dot iniesta at aquiline dot es
2007-04-20 16:39 ` tromey at gcc dot gnu dot org
2007-04-23  6:53 ` eduardo dot iniesta at aquiline dot es
2007-04-23 16:24 ` tromey at gcc dot gnu dot org
2007-04-25 12:26 ` eduardo dot iniesta at aquiline dot es

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).