octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53733] Panic/segfault when calling Java metho


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #53733] Panic/segfault when calling Java method after forge:im[read|write]
Date: Thu, 3 May 2018 03:33:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #63, bug #53733 (project octave):

This might be important. With Java 9, when I comment out the call to
imformats, I get the following output in gdb


(gdb) r
Starting program: /usr/bin/octave-cli --norc --silent --eval testscr
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
[New Thread 0x7fffc81cb700 (LWP 24096)]
[New Thread 0x7fffc3fff700 (LWP 24097)]
[New Thread 0x7fffc3efd700 (LWP 24098)]
[New Thread 0x7fffc3dfb700 (LWP 24099)]
[New Thread 0x7fffc3cf9700 (LWP 24100)]
[New Thread 0x7fffc3bf7700 (LWP 24101)]
[New Thread 0x7fffc3af5700 (LWP 24102)]
[New Thread 0x7fffc39f3700 (LWP 24103)]
[New Thread 0x7fffc30e9700 (LWP 24104)]
[New Thread 0x7fffc2fe7700 (LWP 24105)]
[New Thread 0x7fffc2ee5700 (LWP 24106)]
[New Thread 0x7fffc2de3700 (LWP 24107)]
[New Thread 0x7fffc2ce1700 (LWP 24108)]
[New Thread 0x7fffc2bdf700 (LWP 24109)]
[New Thread 0x7fffc2add700 (LWP 24110)]
[New Thread 0x7fffc29db700 (LWP 24111)]
[New Thread 0x7fffc28d9700 (LWP 24112)]
[New Thread 0x7fffc07ad700 (LWP 24113)]
[New Thread 0x7fffc06ab700 (LWP 24114)]
[New Thread 0x7fffc05a9700 (LWP 24115)]
[New Thread 0x7fff695fd700 (LWP 24116)]
[New Thread 0x7fff694fb700 (LWP 24117)]
[New Thread 0x7fff693fa700 (LWP 24118)]
[New Thread 0x7fff6907a700 (LWP 24119)]
[New Thread 0x7fff68f79700 (LWP 24120)]
[New Thread 0x7fff68e78700 (LWP 24121)]
[New Thread 0x7fff68d77700 (LWP 24122)]
[New Thread 0x7fff68c76700 (LWP 24123)]
[New Thread 0x7fff68b75700 (LWP 24124)]
[New Thread 0x7fff6864a700 (LWP 24125)]
[New Thread 0x7fff68549700 (LWP 24126)]
[New Thread 0x7fff68448700 (LWP 24127)]
N =  10
N =  100
N =  1000
N =  10000
N =  100000

Thread 1 "octave-cli" received signal SIGSEGV, Segmentation fault.
N =  1000000
N =  10000000
N =  100000000
N =    1.0000e+09

Thread 1 "octave-cli" received signal SIGSEGV, Segmentation fault.
panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-workspace'...
warning: save: unable to save java objects, skipping
warning: called from
    testscr at line 7 column 3
save to 'octave-workspace' complete

Thread 1 "octave-cli" received signal SIGSEGV, Segmentation fault.
[Thread 0x7fff68448700 (LWP 24127) exited]
[Thread 0x7fff68549700 (LWP 24126) exited]
[Thread 0x7fff6864a700 (LWP 24125) exited]
[Thread 0x7fff68b75700 (LWP 24124) exited]
[Thread 0x7fff68c76700 (LWP 24123) exited]
[Thread 0x7fff68d77700 (LWP 24122) exited]
[Thread 0x7fff68e78700 (LWP 24121) exited]
[Thread 0x7fff68f79700 (LWP 24120) exited]
[Thread 0x7fff6907a700 (LWP 24119) exited]
[Thread 0x7fff693fa700 (LWP 24118) exited]
[Thread 0x7fff694fb700 (LWP 24117) exited]
[Thread 0x7fff695fd700 (LWP 24116) exited]
[Thread 0x7fffc05a9700 (LWP 24115) exited]
[Thread 0x7fffc06ab700 (LWP 24114) exited]
[Thread 0x7fffc07ad700 (LWP 24113) exited]
[Thread 0x7fffc28d9700 (LWP 24112) exited]
[Thread 0x7fffc29db700 (LWP 24111) exited]
[Thread 0x7fffc2add700 (LWP 24110) exited]
[Thread 0x7fffc2bdf700 (LWP 24109) exited]
[Thread 0x7fffc2ce1700 (LWP 24108) exited]
[Thread 0x7fffc2de3700 (LWP 24107) exited]
[Thread 0x7fffc2ee5700 (LWP 24106) exited]
[Thread 0x7fffc2fe7700 (LWP 24105) exited]
[Thread 0x7fffc30e9700 (LWP 24104) exited]
[Thread 0x7fffc39f3700 (LWP 24103) exited]
[Thread 0x7fffc3af5700 (LWP 24102) exited]
[Thread 0x7fffc3bf7700 (LWP 24101) exited]
[Thread 0x7fffc3cf9700 (LWP 24100) exited]
[Thread 0x7fffc3dfb700 (LWP 24099) exited]
[Thread 0x7fffc3efd700 (LWP 24098) exited]
[Thread 0x7fffc3fff700 (LWP 24097) exited]
[Thread 0x7fffc81cb700 (LWP 24096) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) q


Notice the additional SIGSEGV received and handled at N=10^5. I do not see
that with Java 8. It could be that this additional SIGSEGV is supposed to be a
normal part of the Java stack probing behavior, that for some reason turns
into a fatal signal delivered to Octave if and only if GraphicsMagick has been
initialized.

That's not the only bug here, Octave should also not be able to crash even if
the user tries to call a Java function with an array of size 10^20. But this
difference in behavior between Java 8 and 9, which is possibly intentional,
may help explain why it takes a much smaller array to cause a segfault with
Java 9 or newer.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53733>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]