bugGNU Octave - Bugs: bug #40608, MinGW: crashes with JIT


bug #40608: MinGW: crashes with JIT

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Sun 17 Nov 2013 12:00:13 PM UTC  
Category:  Libraries Severity:  3 - Normal
Priority:  1 - Later Item Group:  Segfault, Bus Error, etc.
Status:  Postponed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  Open
Release:  dev Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 15 Jan 2014 07:36:45 PM UTC, comment #5:

A simple example to trigger the segfault. The relevant part is the 'pow' operation.

I build gdb and made a backtrace (quick&dirty mxe patch attached). Unfortunately I did not get it managed to build octave with debug symbols. I added C/CXX/FFLAGS=-g, but build failed with many 'undefined reference' errors. However, here is the backtrace without debugging symbols:

Even if no segfault occurs, working with complex values fails completely:

m should be unmodified after while loop, but actually it is something 5.2998e-315 (and k as well).

(file #30282)

Stefan Mahr <dac922>
Fri 10 Jan 2014 10:00:47 PM UTC, comment #4:

Works for me with Linux 3.8.0

Michael Godfrey <godfrey>
Project Member
Fri 10 Jan 2014 09:30:20 PM UTC, comment #3:

I can make it crash with this:

I'm using http://www.openems.de/download/octave/octave-3.8.0.exe

Felipe G. Nievinski <fgnievinski>
Mon 18 Nov 2013 08:20:56 PM UTC, comment #2:

In the meantime, in between the scenes, I'll try to track down exactly where in jit.tst Octave crashes.

In a thread on MinGW builds on the maintainers ML ~2 week ago I already mentioned that test #3 fails (Octave seems to hang there).

Philip Nienhuis <philipnienhuis>
Project Member
Sun 17 Nov 2013 10:35:22 PM UTC, comment #1:

jit.tst does enable LLVM regardless of the use of the --jit-compiler option so that explains the crashes there. Given that the JIT compiler is marked experimental for 3.8 I've changed the status to "Postponed". We need to figure this out sometime, but there are indications on the UNIX side as well that LLVM might have some problems.

Rik <rik5>
Project Administrator
Sun 17 Nov 2013 12:00:13 PM UTC, original submission:

Running octave-cli-3.7.7+.exe (cs17941:9799a996b2c1, mxe cross-built) in a cmd32.exe window:

If I run octave-cli without the --jit-compiler switch, a crash occurs when _run_test_suite_ processes jit.tst.
Initially Octave seems to hang forever, but that's not the case. Instead, after 10-15 minutes, it segfaults:

So with or without the --jit-compiler flag, LLVM-enabled mxe-built Octave binaries for MinGW appear unstable. I know (suspect) that in jit.tst is enabled (apparently overriding the start-up flag).
I have a fairly up-to-date mxe-octave (3286:29e227f8bef6 Don't depend on build-m4/buid-xz for and native-MinGW); it includes LLVM 3.3.

On a positive note, since few days I see no more FAILs at all in the "Integrated test scripts" section (running _run_test_suite_.m). That's the first time since I started building Octave for MinGW some 3 or 4 years ago. Nice!

Philip Nienhuis <philipnienhuis>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #30282:  mxe-gdb.diff added by dac922 (4KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by dac922 (Updated the item)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by fgnievinski (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-25 rik5 Priority5 - Normal => 1 - Later
    2014-01-15 dac922 Attached File- => Added mxe-gdb.diff, #30282
    2013-11-17 rik5 StatusNone => Postponed

    Back to the top

    Powered by Savane 3.3