bugGNU Octave - Bugs: bug #64735, `pkg load io` crashes Octave GUI...

 
 

bug #64735: `pkg load io` crashes Octave GUI with no error

Submitter:  Harvey <sr105>
Submitted:  Mon 02 Oct 2023 05:34:20 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 8.3.0 Release: 
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 24 Oct 2023 12:48:45 PM UTC, comment #20: 

No further feedback during the last three weeks.

Closing report.

If additional feedback is provided, this report can be re-opened.

Markus Mützel <mmuetzel>
Group administrator
Thu 05 Oct 2023 06:29:05 AM UTC, comment #19: 

Just guessing: Maybe that's a C runtime mismatch between the JRE binaries and Octave.
Octave for Windows as currently distributed by the Octave project is built against the MSVCRT. Maybe, the JRE that you are using is built against (the newer) UCRT. Mixing binaries built against different C runtimes can lead to unexpected behavior (including crashes) sometimes.

The test versions of Octave for Windows with -default- in their file name are built against the UCRT.

Could you please check if it still crashes if you test with a nightly version of Octave for Windows that was built from the default branch of MXE Octave?
You can download those from here:
https://buildbot.octave.space/#/download

Please, test with the installer with -default- in its file name.

Markus Mützel <mmuetzel>
Group administrator
Wed 04 Oct 2023 10:48:44 PM UTC, comment #18: 

A few things for you to try out, from least disruptive to most:

  • The 10m in Xss10m is megabytes. You can try increasing it but it may or may not solve the problem.


  • Is it feasible for you to use csvread or dlmread instead of xlsread?


  • Is it feasible for you to (temporarily) deactivate Java from that machine, such as by renaming any Java installation directory?


  • Is it feasible for you to use Octave compiled with --disable-java?
Arun Giridhar <arungiridhar>
Group Member
Wed 04 Oct 2023 09:41:08 PM UTC, comment #17: 

It seems the exception is an Access Violation (c0000005). The address 00000223979e03d4 looks suspect.

https://stackoverflow.com/a/17169463/47078


octave:1> pkg load io
octave:2> xlsread("data_level4/DOC-0005704.xlsx", "Firmware CSV EXPORT", "A1:B1")
--- Process 20124 loaded C:\Program Files\Java\jre-1.8\bin\server\jvm.dll at 00007ffd21570000
--- Process 20124 loaded C:\Windows\System32\psapi.dll at 00007ffdb1c00000
--- Process 20124 loaded C:\Windows\System32\wsock32.dll at 00007ffd81f60000
--- Process 20124 loaded C:\Windows\System32\winmm.dll at 00007ffd987c0000
--- Process 20124 loaded C:\Windows\System32\version.dll at 00007ffdaf0f0000
--- Process 20124 loaded C:\Windows\System32\vcruntime140.dll at 00007ffd936e0000
--- Process 20124 loaded C:\Program Files\Java\jre-1.8\bin\verify.dll at 00007ffdaa730000
--- Process 20124 loaded C:\Program Files\Java\jre-1.8\bin\java.dll at 00007ffda7bf0000
--- Process 20124 loaded C:\Program Files\SentinelOne\Sentinel Agent 23.1.4.650\SentinelJava64.dll at 00007ffd7bab0000
--- Process 20124 loaded C:\Windows\System32\ole32.dll at 00007ffdb1d90000
--- Process 20124 loaded C:\Program Files\Java\jre-1.8\bin\zip.dll at 00007ffda7bd0000
--- Process 20124, exception c0000005 at 00000223979e03d4


Harvey <sr105>
Wed 04 Oct 2023 09:29:50 PM UTC, comment #16: 

I tried

  • setting java.opts to `-Xss10m` but it still crashes. It uses the options, because a typo generated a warning in the command window.


  • setting `HAVE_JAVA = false;` which allows io to load successfully. Then, running my boss's script crashes Octave with no error. He's parsing an excel file. It crashes on `xlsread()`.
Harvey <sr105>
Wed 04 Oct 2023 04:47:05 PM UTC, comment #15: 
Markus Mützel <mmuetzel>
Group administrator
Wed 04 Oct 2023 04:36:14 PM UTC, comment #14: 

Does Octave still crash after you increase the Java stack size?
https://savannah.gnu.org/bugs/?60620#comment35

For this, add `-Xss10m` to `java.opts`.
Octave looks for that file in `getenv('OCTAVE_JAVA_DIR')`. Or if that is empty in `fullfile (_octave_config_info_ ('fcnfiledir'), 'java')`.

Markus Mützel <mmuetzel>
Group administrator
Wed 04 Oct 2023 01:05:18 PM UTC, comment #13: 

__enter_io__ could be a typo. Good catch BTW, I'm pondering about a new io package release and this can be mended as well then.
ATM I can't look it up but in the io package log on SourceForge it can be easily found if I'm to blame :-)

About stack size and javachk.m:
If it is true what you say, perhaps javachk.m could be adapted to leave stack size alone. Or maybe such functionality had better be added to libinterp/octave-value/__ov_java__.cc .
There's a lot going on behind one's back when using Java. E.g., several years ago we had different creepy Java bugs related to (IIRC) silently fiddling with processor flags during the JVM init process.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 03 Oct 2023 10:37:44 PM UTC, comment #12: 

@Philip: What is the relationship between _init_io_ and _enter_io_package_? Is this docstring correct?

octave:5> help __init_io__
'__init_io__' is a function from the file ...../io-2.6.4/__init_io__.m

 -- __enter_io_package__ ()
     Undocumented internal function of io package.


Arun Giridhar <arungiridhar>
Group Member
Tue 03 Oct 2023 10:11:59 PM UTC, comment #11: 

The minor difference from bug #60620 is that there the JVM loaded without a problem but any subsequent operation like a matrix multiplication caused a crash. Here loading the JVM itself causes the crash.

Reading the strace output, this is what I think is happening:

  • Loading the io package calls javachk, which is known to reduce the stack size.


  • Loading Java on OP's machine calls up the Sentinel security module, which is now operating with an unexpectedly small stack.


  • Stack overflow within the Java modules --> crash.


Arun Giridhar <arungiridhar>
Group Member
Tue 03 Oct 2023 09:54:48 PM UTC, comment #10: 

@Harvey, go to the io package location, and edit the file

__init_io__.m

to change the line

  HAVE_JAVA = isempty (javachk ("jvm"));

to

  HAVE_JAVA = false;


If it works for you after that, and if it doesn't lose any functionality you were using, that's a workaround for you for now.

If you need Java, there are some workarounds listed in bug #60620, but they will require some digging. That bug is a long-standing and deep one.

@Philip: Sorry, I had been thinking that the call javachk ("jvm") was a separate process like a system() call, but I find that if Octave was built with Java support then it's a different executable, so try-catch won't catch a full crash like this. I build with `--disable-java` except in rare cases for debugging.

Arun Giridhar <arungiridhar>
Group Member
Tue 03 Oct 2023 09:08:19 PM UTC, comment #9: 

strace output. It loads an IT security DLL just before crashing "SentinelOne".


hchapman@ONI-J77SRN2 MINGW64 ~/AppData/Local/Programs/GNU Octave/Octave-8.3.0/mingw64/bin
$ strace octave-cli
--- Process 12048 created
--- Process 12048 loaded C:\Windows\System32\ntdll.dll at 00007ffdb1f90000
--- Process 12048 loaded C:\Windows\System32\kernel32.dll at 00007ffdb1990000
--- Process 12048 loaded C:\Windows\System32\KernelBase.dll at 00007ffdaf6a0000
--- Process 12048 loaded C:\Program Files\SentinelOne\Sentinel Agent 23.1.4.650\InProcessClient64.dll at 00007ffdaf100000
--- Process 12048 loaded C:\Windows\System32\advapi32.dll at 00007ffdb0120000
--- Process 12048 loaded C:\Windows\System32\msvcrt.dll at 00007ffdb0500000
--- Process 12048 thread 9680 created
--- Process 12048 loaded C:\Windows\System32\sechost.dll at 00007ffdafff0000
--- Process 12048 loaded C:\Windows\System32\rpcrt4.dll at 00007ffdb0ff0000
--- Process 12048 thread 844 created
--- Process 12048 thread 11184 created
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgcc_s_seh-1.dll at 00007ffd96200000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libstdc++-6.dll at 00007ffd7f3d0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\liboctave-10.dll at 00007ffd62cb0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\liboctinterp-11.dll at 00007ffd47380000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libwinpthread-1.dll at 00007ffdaa750000
--- Process 12048 loaded C:\Windows\System32\bcrypt.dll at 00007ffdafdb0000
--- Process 12048 loaded C:\Windows\System32\gdi32.dll at 00007ffdb04d0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libwinpthread-1.dll at 0000022651130000
--- Process 12048 unloaded DLL at 0000022651130000
--- Process 12048 loaded C:\Windows\System32\win32u.dll at 00007ffdaf670000
--- Process 12048 loaded C:\Windows\System32\shell32.dll at 00007ffdb1120000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgfortran-5.dll at 00007ffd76d80000
--- Process 12048 loaded C:\Windows\System32\gdi32full.dll at 00007ffdaf9a0000
--- Process 12048 loaded C:\Windows\System32\msvcp_win.dll at 00007ffdaff50000
--- Process 12048 loaded C:\Windows\System32\msvcp_win.dll at 0000022651330000
--- Process 12048 unloaded DLL at 0000022651330000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libarpack-2.dll at 00007ffd95a30000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgomp-1.dll at 00007ffd959e0000
--- Process 12048 loaded C:\Windows\System32\ucrtbase.dll at 00007ffdafac0000
--- Process 12048 loaded C:\Windows\System32\ucrtbase.dll at 0000022651330000
--- Process 12048 unloaded DLL at 0000022651330000
--- Process 12048 loaded C:\Windows\System32\user32.dll at 00007ffdb0270000
--- Process 12048 loaded C:\Windows\System32\user32.dll at 0000022651330000
--- Process 12048 unloaded DLL at 0000022651330000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libGraphicsMagick++-12.dll at 00007ffd93790000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libGraphicsMagick-3.dll at 00007ffd76c40000
--- Process 12048 loaded C:\Windows\System32\shlwapi.dll at 00007ffdb0470000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libamd.dll at 00007ffda8db0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libccolamd.dll at 00007ffd95df0000
--- Process 12048 loaded C:\Windows\System32\ws2_32.dll at 00007ffdb0090000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libcholmod.dll at 00007ffd71010000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libcolamd.dll at 00007ffd959c0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libcxsparse.dll at 00007ffd93740000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libfontconfig-1.dll at 00007ffd7abf0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libfreetype-6.dll at 00007ffd71e00000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libcurl-4.dll at 00007ffd71780000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libblas.dll at 00007ffd1bfe0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libfftw3-3.dll at 00007ffd628f0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libfftw3f-3.dll at 00007ffd624f0000
--- Process 12048 loaded C:\Windows\System32\crypt32.dll at 00007ffdafc50000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libpcre2-8-0.dll at 00007ffd78be0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libiconv-2.dll at 00007ffd70f10000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\liblapack.dll at 00007ffd514d0000
--- Process 12048 loaded C:\Windows\System32\Wldap32.dll at 00007ffdb01d0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libqrupdate-1.dll at 00007ffd954e0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libquadmath-0.dll at 00007ffd73b90000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libreadline8.dll at 00007ffd8b680000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libbz2.dll at 00007ffd95410000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\liblcms2-2.dll at 00007ffd72330000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libltdl-7.dll at 00007ffd93720000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgl2ps.dll at 00007ffd83f70000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libz.dll at 00007ffd85960000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libhdf5.dll at 00007ffd60300000
--- Process 12048 loaded C:\Windows\System32\glu32.dll at 00007ffd82c10000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libsuitesparseconfig.dll at 00007ffd93700000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libxerbla.dll at 00007ffdaa7d0000
--- Process 12048 loaded C:\Windows\System32\opengl32.dll at 00007ffd82c40000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libspqr.dll at 00007ffd7f390000
--- Process 12048 loaded C:\Windows\System32\combase.dll at 00007ffdb0c00000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libumfpack.dll at 00007ffd70d60000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libcamd.dll at 00007ffd92dc0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libexpat-1.dll at 00007ffd7e640000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libpng16-16.dll at 00007ffd7adf0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libintl-8.dll at 00007ffd83dd0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgnutls-30.dll at 00007ffd70ba0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgsasl-18.dll at 00007ffd803b0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libidn2-0.dll at 00007ffd7aba0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libnettle-8.dll at 00007ffd7a480000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libssh2-1.dll at 00007ffd723b0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libtermcap.dll at 00007ffdaa6e0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgcrypt-20.dll at 00007ffd63bd0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libhogweed-6.dll at 00007ffd722c0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgmp-10.dll at 00007ffd6abb0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libtasn1-6.dll at 00007ffd76c10000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libunistring-5.dll at 00007ffd622f0000
--- Process 12048 loaded C:\Windows\System32\ncrypt.dll at 00007ffdaedf0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libidn-12.dll at 00007ffd73aa0000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libntlm-0.dll at 00007ffd92610000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libgpg-error6-0.dll at 00007ffd725e0000
--- Process 12048 loaded C:\Windows\System32\fltLib.dll at 00007ffdaf0e0000
--- Process 12048 loaded C:\Windows\System32\imm32.dll at 00007ffdb0240000
--- Process 12048 thread 8828 created
--- Process 12048 thread 12060 created
--- Process 12048 thread 12056 created
--- Process 12048 thread 22880 created
--- Process 12048 thread 5612 created
--- Process 12048 thread 8524 created
--- Process 12048 thread 7804 created
--- Process 12048 loaded C:\Windows\System32\ntasn1.dll at 00007ffdaedb0000
--- Process 12048 loaded C:\Windows\System32\bcryptprimitives.dll at 00007ffdafbc0000
--- Process 12048 loaded C:\Windows\System32\cryptbase.dll at 00007ffdaecf0000
--- Process 12048 loaded C:\Windows\System32\NapiNSP.dll at 00007ffd93110000
--- Process 12048 loaded C:\Windows\System32\pnrpnsp.dll at 00007ffd93130000
--- Process 12048 loaded C:\Windows\System32\wshbth.dll at 00007ffda99c0000
--- Process 12048 loaded C:\Windows\System32\nlaapi.dll at 00007ffdaa5b0000
--- Process 12048 loaded C:\Windows\System32\IPHLPAPI.DLL at 00007ffdae780000
--- Process 12048 loaded C:\Windows\System32\mswsock.dll at 00007ffdaeae0000
--- Process 12048 loaded C:\Windows\System32\dnsapi.dll at 00007ffdae7d0000
--- Process 12048 loaded C:\Windows\System32\nsi.dll at 00007ffdb0230000
--- Process 12048 loaded C:\Windows\System32\winrnr.dll at 00007ffd93150000
GNU Octave, version 8.3.0
Copyright (C) 1993-2023 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

--- Process 12048 loaded C:\Windows\System32\windows.storage.dll at 00007ffdad1e0000
--- Process 12048 loaded C:\Windows\System32\wldp.dll at 00007ffdaed80000
--- Process 12048 loaded C:\Windows\System32\SHCore.dll at 00007ffdb0680000
--- Process 12048 loaded C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\lib\octave\8.3.0\oct\x86_64-w64-mingw32\__init_gnuplot__.oct at 00007ffd92320000
octave:1> javachk("jvm")
--- Process 12048 loaded C:\Program Files\Java\jre-1.8\bin\server\jvm.dll at 00007ffd1b730000
--- Process 12048 loaded C:\Windows\System32\psapi.dll at 00007ffdb1c00000
--- Process 12048 loaded C:\Windows\System32\wsock32.dll at 00007ffd81f60000
--- Process 12048 loaded C:\Windows\System32\winmm.dll at 00007ffd987c0000
--- Process 12048 loaded C:\Windows\System32\version.dll at 00007ffdaf0f0000
--- Process 12048 loaded C:\Windows\System32\vcruntime140.dll at 00007ffd936e0000
--- Process 12048 loaded C:\Program Files\Java\jre-1.8\bin\verify.dll at 00007ffda92d0000
--- Process 12048 loaded C:\Program Files\Java\jre-1.8\bin\java.dll at 00007ffd72290000
--- Process 12048 loaded C:\Program Files\SentinelOne\Sentinel Agent 23.1.4.650\SentinelJava64.dll at 00007ffd640d0000
--- Process 12048 loaded C:\Windows\System32\ole32.dll at 00007ffdb1d90000
--- Process 12048 loaded C:\Program Files\Java\jre-1.8\bin\zip.dll at 00007ffd91c70000
--- Process 12048, exception c0000005 at 00000226115b03d4
--- Process 12048 thread 88 created
--- Process 12048 thread 864 created
--- Process 12048 thread 1620 created
--- Process 12048 thread 1728 created
--- Process 12048 thread 8996 created
--- Process 12048 thread 9020 created
--- Process 12048 thread 8772 created
--- Process 12048 thread 5640 created
--- Process 12048 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffdacfe0000
--- Process 12048 thread 5632 created
--- Process 12048 thread 1544 created
--- Process 12048 thread 3836 created
--- Process 12048 loaded C:\Windows\System32\profapi.dll at 00007ffdaf5b0000
--- Process 12048 thread 1412 created
--- Process 12048 thread 5548 created
--- Process 12048 thread 5544 created
--- Process 12048 thread 2148 created
--- Process 12048 thread 9840 created
--- Process 12048 thread 7392 created
--- Process 12048 thread 20072 created
--- Process 12048, exception c0000374 at 00007ffdb208f4c9
--- Process 12048 thread 844 exited with status 0xc0000374
--- Process 12048 thread 9676 exited with status 0xc0000374
--- Process 12048 thread 9680 exited with status 0xc0000374
--- Process 12048 thread 11184 exited with status 0xc0000374
--- Process 12048 thread 12056 exited with status 0xc0000374
--- Process 12048 thread 8828 exited with status 0xc0000374
--- Process 12048 thread 5612 exited with status 0xc0000374
--- Process 12048 thread 22880 exited with status 0xc0000374
--- Process 12048 thread 8524 exited with status 0xc0000374
--- Process 12048 thread 12060 exited with status 0xc0000374
--- Process 12048 thread 88 exited with status 0xc0000374
--- Process 12048 thread 7804 exited with status 0xc0000374
--- Process 12048 thread 864 exited with status 0xc0000374
--- Process 12048 thread 8996 exited with status 0xc0000374
--- Process 12048 thread 1620 exited with status 0xc0000374
--- Process 12048 thread 1728 exited with status 0xc0000374
--- Process 12048 thread 8772 exited with status 0xc0000374
--- Process 12048 thread 5640 exited with status 0xc0000374
--- Process 12048 thread 5632 exited with status 0xc0000374
--- Process 12048 thread 1544 exited with status 0xc0000374
--- Process 12048 thread 9020 exited with status 0xc0000374
--- Process 12048 thread 1412 exited with status 0xc0000374
--- Process 12048 thread 5548 exited with status 0xc0000374
--- Process 12048 thread 2148 exited with status 0xc0000374
--- Process 12048 thread 5544 exited with status 0xc0000374
--- Process 12048 thread 3836 exited with status 0xc0000374
--- Process 12048 thread 9840 exited with status 0xc0000374
--- Process 12048 thread 20072 exited with status 0xc0000374
--- Process 12048 exited with status 0xc0000374


Harvey <sr105>
Tue 03 Oct 2023 09:00:52 PM UTC, comment #8: 

That should be the "__init_io__.m" function.

Anyway, would a try-catch block also catch a hard crash? AFAIU it only catches errors (syntax / undefined / numerical).

Anyway I like arungiridhar's idea. On Windows in the far past I met ample problems with OpenJDK builds but I never had issues with Oracle Java builds (no endorsement).

In bug #60620 it is advised to increase the Java stack size. That can be done using the java.opts file but I forgot where this file is located.
Another option is to simply comment out the call to __init_io__ () in the PKG_ADD file in the io package install directory.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 03 Oct 2023 08:52:37 PM UTC, comment #7: 
  • i reverted TEMP/TMP to C:\Windows\TEMP or whatever the default is
  • i was able to load the strings package
  • I tested `javachk("jvm")` and it crashed
  • I captured the crash backtrace with gdb



(gdb) c
Continuing.
[Thread 16996.0x507c exited with code 0]

Thread 7 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16996.0x5364]
0x0000021b333a03d4 in ?? ()
(gdb) thread apply all bt

Thread 9 (Thread 16996.0x50d4):
#0  0x00007ffdb2030b44 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdb1fe2e67 in ntdll!TpReleaseCleanupGroupMembers () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#3  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 8 (Thread 16996.0x2e34):
#0  0x00007ffdb2030b44 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdb1fe2e67 in ntdll!TpReleaseCleanupGroupMembers () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#3  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 7 (Thread 16996.0x5364):
#0  0x0000021b333a03d4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 16996.0x2e28):
#0  0x00007ffdb2030b44 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdb1fe2e67 in ntdll!TpReleaseCleanupGroupMembers () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#3  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

--Type <RET> for more, q to quit, c to continue without paging--c
Thread 5 (Thread 16996.0x2e24):
#0  0x00007ffdb2030b44 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdb1fe2e67 in ntdll!TpReleaseCleanupGroupMembers () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#3  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 4 (Thread 16996.0x2e18):
#0  0x00007ffdb202dc04 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdaf6f1b40 in WaitForMultipleObjectsEx () from C:\WINDOWS\System32\KernelBase.dll
#2  0x00007ffdaf6f1a3e in WaitForMultipleObjects () from C:\WINDOWS\System32\KernelBase.dll
#3  0x00007ffd1c232703 in openblas_get_parallel_ () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libblas.dll
#4  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#5  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 3 (Thread 16996.0x52dc):
#0  0x00007ffdb202dc04 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdaf6f1b40 in WaitForMultipleObjectsEx () from C:\WINDOWS\System32\KernelBase.dll
#2  0x00007ffdaf6f1a3e in WaitForMultipleObjects () from C:\WINDOWS\System32\KernelBase.dll
#3  0x00007ffd1c232703 in openblas_get_parallel_ () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libblas.dll
#4  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#5  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 2 (Thread 16996.0x3fa0):
#0  0x00007ffdb202dc04 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ffdaf6f1b40 in WaitForMultipleObjectsEx () from C:\WINDOWS\System32\KernelBase.dll
#2  0x00007ffdaf6f1a3e in WaitForMultipleObjects () from C:\WINDOWS\System32\KernelBase.dll
#3  0x00007ffd1c232703 in openblas_get_parallel_ () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\libblas.dll
#4  0x00007ffdb19a7614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#5  0x00007ffdb1fe26f1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 1 (Thread 16996.0x108):
#0  0x00007ffdaf67a104 in win32u!NtUserMsgWaitForMultipleObjectsEx () from C:\WINDOWS\System32\win32u.dll
#1  0x00007ffdb02907fe in USER32!MsgWaitForMultipleObjectsEx () from C:\WINDOWS\System32\user32.dll
#2  0x00007ffd612ff087 in QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\Qt5Core.dll
#3  0x00007ffd20ae2c85 in qwindows!qt_plugin_instance () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\qt5\plugins\platforms\qwindows.dll
#4  0x00007ffd612a2d43 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\Qt5Core.dll
#5  0x00007ffd612ab4a7 in QCoreApplication::exec() () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\Qt5Core.dll
#6  0x00007ffd619fee7f in liboctgui-9!_ZN6octave12base_qobject4execEv () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\liboctgui-9.dll
#7  0x00007ffd61a0d2e2 in liboctgui-9!_ZN6octave14qt_application7executeEv () from C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64\bin\liboctgui-9.dll
#8  0x00007ff7b1f521c2 in wmain ()
#9  0x00007ff7b1f513da in ?? ()
#10 0x00007ff7b1f51506 in octave-gui!mainCRTStartup ()
(gdb)


Harvey <sr105>
Tue 03 Oct 2023 01:33:52 PM UTC, comment #6: 

@maintainers: loading the io package calls the

__enter_io_package__

function. Most of that function is just setting various internal variables with appropriate paths, but the very first statement is to call javachk ("jvm") and that's outside a try-catch block. Possible connection to bug #60620.

Arun Giridhar <arungiridhar>
Group Member
Tue 03 Oct 2023 11:00:57 AM UTC, comment #5: 

It doesn't look like a permissions issue of the Temp folder. But who knows?

Given the value of OCTAVE_HOME, it looks like the partition that Octave is installed on uses a file system that doesn't support short file names.
Arun's suggestion of installing in a folder without any spaces in its path might help to work-around this issue.

But I agree that Octave shouldn't crash like it does for you.

To find out why it is crashing (and potentially fix that), it would be nice to get a backtrace from the crash.

Could you please do the following?

  • Open Octave and execute `getpid`. Take note of the PID that is displayed.
  • Go to the Windows start menu, find Octave's group in "All Apps", and open "Bash Shell" from there. A window with a shell should appear.
  • At that prompt, execute `gdb -p <PID>` (where you replace `<PID>` with the PID that you queried in the first step). If this attaches correctly to the Octave process, its window will feel like it is "frozen".
  • At the (gdb) prompt, execute `c`. After that, the Octave window should "unfreeze". But the (gdb) prompt will look like it's "frozen" now.
  • Execute the commands that make Octave crash for you.
  • At that point, the (gdb) prompt should be reactive again. Enter `thread apply all bt` and show the output that you get. (That might be multiple screens. Make sure to grab the entire output.)




Markus Mützel <mmuetzel>
Group administrator
Tue 03 Oct 2023 01:35:01 AM UTC, comment #4: 

What is C:\Projects\Temp and what its permissions wrt user "hchapman"?

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 03 Oct 2023 01:04:20 AM UTC, comment #3: 

The only thing I see which gives me some concern is that the install path has spaces with either "GNU Octave" or "Program Files", which has been a complicating factor in the past, but that by itself shouldn't cause such an unceremonious exit.

Do I understand correctly that the io path in comment #0 and the path in comment #2 were from different installations during your reinstallations?

Are you able to load other packages? (Try ones that don't use the io package). If you get such a crash for multiple packages we will at least get some bug isolation.

Arun Giridhar <arungiridhar>
Group Member
Mon 02 Oct 2023 09:33:58 PM UTC, comment #2: 

comment #1:

> What does `OCTAVE_HOME` at the Octave command prompt return for you? I've reinstalled 3 times. This last install, I tried installing for the current user only.



>> OCTAVE_HOME
ans = C:\Users\hchapman\AppData\Local\Programs\GNU Octave\Octave-8.3.0\mingw64
>>


Harvey <sr105>
Mon 02 Oct 2023 06:01:58 PM UTC, comment #1: 

Thank you for your report.

`pkg load io` work correctly for me with Octave 8.3.0 on Windows 11 here.

What does `OCTAVE_HOME` at the Octave command prompt return for you?

Markus Mützel <mmuetzel>
Group administrator
Mon 02 Oct 2023 05:34:20 PM UTC, original submission:  

Steps:
- install Octave 8.3.0 from web installer
- in Command Window, type `pkg load io`
- Octave pauses for a moment, then closes with no messages

pkg list shows this line:


io  |   2.6.4 | C:\Program Files\GNU Octave\Octave-8.3.0\mingw64\share\octave\packages\io-2.6.4


I also tried a suggestion from this older, duplicate bug http://savannah.gnu.org/bugs/?47094 :


>> more off;
>> pkg install -forge -verbose io
downloading tarball(s) from:
- https://packages.octave.org/download/io-2.6.4.tar.gz
mkdir (C:\Projects\TEMP\oct-2p2Jlb)
untar (C:\Projects\Temp\io-2.6.4-SCi1We.tar.gz, C:\Projects\TEMP\oct-2p2Jlb)
make: Entering directory '/tmp/oct-2p2Jlb/io-2.6.4/src'
C:/PROGRA~1/GNU\ Octave/Octave-8.3.0/mingw64/bin/mkoctfile-8.3.0.exe --verbose csvexplode.cc
g++ -c -IC:\PROGRA~1\GNU Octave\Octave-8.3.0\mingw64/include  -I"C:\PROGRA~1\GNU Octave\Octave-8.3.0\mingw64\include\oc
tave-8.3.0\octave\.." -I"C:\PROGRA~1\GNU Octave\Octave-8.3.0\mingw64\include\octave-8.3.0\octave" -I"C:\PROGRA~1\GNU Oc
tave\Octave-8.3.0\mingw64\include"  -pthread -fopenmp -g -O2    csvexplode.cc -o C:\Projects\TEMP/oct-irgiOH.o
g++: warning: Octave\Octave-8.3.0\mingw64/include: linker input file unused because linking not done
g++: error: Octave\Octave-8.3.0\mingw64/include: linker input file not found: No such file or directory
make: *** [Makefile:6: csvexplode.oct] Error 1
make: Leaving directory '/tmp/oct-2p2Jlb/io-2.6.4/src'

error: pkg: error running 'make' for the io package
error: called from
    configure_make at line 117 column 9
    install at line 202 column 7
    pkg at line 619 column 9


I found a cli version hoping to get an error message.


C:\Program Files\GNU Octave\Octave-8.3.0>mingw64\bin\octave-cli-8.3.0.exe
GNU Octave, version 8.3.0
Copyright (C) 1993-2023 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1> pkg load -verbose io

C:\Program Files\GNU Octave\Octave-8.3.0>


Harvey <sr105>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #55184:  Screenshot@2023-10-02@133229.png added by sr105 (31KiB - image/png - windows event viewer)
file #55185:  Screenshot@2023-10-02@133321.png added by sr105 (43KiB - image/png - windows event viewer)
file #55186:  Screenshot@2023-10-02@133302.png added by sr105 (35KiB - image/png - windows event viewer)

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by sr105 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-11-18 arungiridhar Dependencies- bugs #64864 is dependent
    2023-10-24 mmuetzel Open/ClosedOpen Closed
    2023-10-04 mmuetzel StatusConfirmed Need Info
    2023-10-03 arungiridhar Dependencies- Depends on bugs #60620
    2023-10-03 arungiridhar StatusNeed Info Confirmed
    2023-10-03 philipnienhuis Carbon-Copy- Added philipnienhuis
    2023-10-02 mmuetzel Item GroupNone Segfault, Bus Error, etc.
        StatusNone Need Info
    2023-10-02 sr105 Attached File- Added Screenshot@2023-10-02@133229.png, #55184
        Attached File- Added Screenshot@2023-10-02@133321.png, #55185
        Attached File- Added Screenshot@2023-10-02@133302.png, #55186

    Back to the top

    Powered by Savane 3.15-26b0.
    Corresponding source code