Re: Odd crashes with Java

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Odd crashes with Java

Rik-4
On 12/16/2012 04:56 AM, [hidden email] wrote:

> Message: 9
> Date: Sun, 16 Dec 2012 04:55:58 -0800 (PST)
> From: Philip Nienhuis <[hidden email]>
> To: [hidden email]
> Subject: Re: make check: segmentation fault in triplequad.m (in CLI)
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
>
> Philip Nienhuis wrote
>> > 15794:cf3bb2f353a5 tip
>> > Linux Mageia 2
>> >
>> > [philip@jvc741 oct370]$ make check
>> >
>> > :
>> >   libinterp/interpfcn/dirfns.cc .......................... PASS    1/1  
>> >   libinterp/interpfcn/file-io.cc ......................... PASS    0/1  
>> > FAIL 1
>> >   libinterp/interpfcn/graphics.cc ........................ PASS   14/14  
>> > :
>> > (the usual FAIL for file-io.cc, locale issue. There was a new FAIL for
>> > logspace, I've fixed that)
>> > :
>> >   scripts/general/trapz.m ................................ PASS   11/11
>> >   scripts/general/triplequad.m ...........................make[1]: ***
>> > [check] Segmentation fault
>> > make[1]: Leaving directory `/home/philip/devel/oct370/test'
>> > make: *** [check] Error 2
>> > [philip@jvc741 oct370]$
>> >
>> > Interestingly, in the CLI (./run-octave --no-gui):
>> >
>> > octave:6> test triplequad
>> > Segmentation fault
>> >
>> > ...while in the GUI:
>> >
>> > octave:1> test triplequad
>> > PASSES 1 out of 1 tests
>> > octave:2>
>> >
>> > Octave (GUI) also seems unstable (I got several hangs).
>> >
>> > Could this also be related to bug #37924 ?
>> >
>> > Philip
> Answering to myself:
>
> Apparently so. After having added some tests to ov_java.cc and rebuilding,
> make check now chooses to crash at:
>
> :
>  scripts/general/curl.m ................................. PASS    1/1
>   scripts/general/dblquad.m ..............................make[1]: ***
> [check] Segmentation fault
> make[1]: Leaving directory `/home/philip/devel/oct370/test'
> make: *** [check] Error 2
>
> Philip
12/16/12

I think we do have some sort of instability that was introduced with Java.
I discern this particularly because the crashes move around when the code
is re-compiled.  Besides bug #37924, there is #37891 about a crash in
contourc, and #37877 about crashes when using __java_init__ and __java_exit__.

Does 'make check' pass repeatedly if you configure with '--disable-java' ?

--Rik
Reply | Threaded
Open this post in threaded view
|

Re: Odd crashes with Java

Philip Nienhuis
Rik-4 wrote
On 12/16/2012 04:56 AM, [hidden email] wrote:
> Message: 9
> Date: Sun, 16 Dec 2012 04:55:58 -0800 (PST)
> From: Philip Nienhuis <[hidden email]>
> To: [hidden email]
> Subject: Re: make check: segmentation fault in triplequad.m (in CLI)
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
>
> Philip Nienhuis wrote
>> > 15794:cf3bb2f353a5 tip
>> > Linux Mageia 2
>> >
>> > [philip@jvc741 oct370]$ make check
>> >
>> > :
>> >   libinterp/interpfcn/dirfns.cc .......................... PASS    1/1  
>> >   libinterp/interpfcn/file-io.cc ......................... PASS    0/1  
>> > FAIL 1
>> >   libinterp/interpfcn/graphics.cc ........................ PASS   14/14  
>> > :
>> > (the usual FAIL for file-io.cc, locale issue. There was a new FAIL for
>> > logspace, I've fixed that)
>> > :
>> >   scripts/general/trapz.m ................................ PASS   11/11
>> >   scripts/general/triplequad.m ...........................make[1]: ***
>> > [check] Segmentation fault
>> > make[1]: Leaving directory `/home/philip/devel/oct370/test'
>> > make: *** [check] Error 2
>> > [philip@jvc741 oct370]$
>> >
>> > Interestingly, in the CLI (./run-octave --no-gui):
>> >
>> > octave:6> test triplequad
>> > Segmentation fault
>> >
>> > ...while in the GUI:
>> >
>> > octave:1> test triplequad
>> > PASSES 1 out of 1 tests
>> > octave:2>
>> >
>> > Octave (GUI) also seems unstable (I got several hangs).
>> >
>> > Could this also be related to bug #37924 ?
>> >
>> > Philip
> Answering to myself:
>
> Apparently so. After having added some tests to ov_java.cc and rebuilding,
> make check now chooses to crash at:
>
> :
>  scripts/general/curl.m ................................. PASS    1/1
>   scripts/general/dblquad.m ..............................make[1]: ***
> [check] Segmentation fault
> make[1]: Leaving directory `/home/philip/devel/oct370/test'
> make: *** [check] Error 2
>
> Philip
12/16/12

I think we do have some sort of instability that was introduced with Java.
I discern this particularly because the crashes move around when the code
is re-compiled.
Not only that - it also depends on whether code is run in the CLI or in the GUI.

                    Besides bug #37924, there is #37891 about a crash in
contourc, and #37877 about crashes when using __java_init__ and __java_exit__.

Does 'make check' pass repeatedly if you configure with '--disable-java' ?
I haven't tried that yet.
Building now. Hopefully tonight I can give an answer.

Philip
Reply | Threaded
Open this post in threaded view
|

Re: Odd crashes with Java

Philip Nienhuis
Philip Nienhuis wrote
Rik-4 wrote
On 12/16/2012 04:56 AM, [hidden email] wrote:
> Message: 9
> Date: Sun, 16 Dec 2012 04:55:58 -0800 (PST)
> From: Philip Nienhuis <[hidden email]>
> To: [hidden email]
> Subject: Re: make check: segmentation fault in triplequad.m (in CLI)
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
>
> Philip Nienhuis wrote
>> > 15794:cf3bb2f353a5 tip
>> > Linux Mageia 2
>> >
>> > [philip@jvc741 oct370]$ make check
>> >
>> > :
>> >   libinterp/interpfcn/dirfns.cc .......................... PASS    1/1  
>> >   libinterp/interpfcn/file-io.cc ......................... PASS    0/1  
>> > FAIL 1
>> >   libinterp/interpfcn/graphics.cc ........................ PASS   14/14  
>> > :
>> > (the usual FAIL for file-io.cc, locale issue. There was a new FAIL for
>> > logspace, I've fixed that)
>> > :
>> >   scripts/general/trapz.m ................................ PASS   11/11
>> >   scripts/general/triplequad.m ...........................make[1]: ***
>> > [check] Segmentation fault
>> > make[1]: Leaving directory `/home/philip/devel/oct370/test'
>> > make: *** [check] Error 2
>> > [philip@jvc741 oct370]$
>> >
>> > Interestingly, in the CLI (./run-octave --no-gui):
>> >
>> > octave:6> test triplequad
>> > Segmentation fault
>> >
>> > ...while in the GUI:
>> >
>> > octave:1> test triplequad
>> > PASSES 1 out of 1 tests
>> > octave:2>
>> >
>> > Octave (GUI) also seems unstable (I got several hangs).
>> >
>> > Could this also be related to bug #37924 ?
>> >
>> > Philip
> Answering to myself:
>
> Apparently so. After having added some tests to ov_java.cc and rebuilding,
> make check now chooses to crash at:
>
> :
>  scripts/general/curl.m ................................. PASS    1/1
>   scripts/general/dblquad.m ..............................make[1]: ***
> [check] Segmentation fault
> make[1]: Leaving directory `/home/philip/devel/oct370/test'
> make: *** [check] Error 2
>
> Philip
12/16/12

I think we do have some sort of instability that was introduced with Java.
I discern this particularly because the crashes move around when the code
is re-compiled.
Not only that - it also depends on whether code is run in the CLI or in the GUI.

                    Besides bug #37924, there is #37891 about a crash in
contourc, and #37877 about crashes when using __java_init__ and __java_exit__.

Does 'make check' pass repeatedly if you configure with '--disable-java' ?
I haven't tried that yet.
Building now. Hopefully tonight I can give an answer.
OK, build completed, no segfaults, make check gives 2 FAILs: file-io.cc and ov-java.cc.

Do I have to add s/th to ov.java.cc tests to have them skipped by "make check" in case of --disable-java configure option?

And do I have to put all tests for .cc files into one test block? (I put two separate test blocks in ov-java.cc)

Philip