bugGNU Octave - Bugs: bug #65675, figure segfaults on Sonoma

 
 

bug #65675: figure segfaults on Sonoma

Submitter:  None
Submitted:  Thu 02 May 2024 09:32:13 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Scott McDermott Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 9.1.0
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 06 May 2024 10:28:15 AM UTC, comment #6: 

Thank you for the report. But there is nothing Octave can do about it.

This was fixed downstream by Homebrew:
https://github.com/Homebrew/homebrew-core/pull/170657

Closing report as a downstream packaging issue.

In the future, please report packaging issues to the packager (Homebrew core, in this case).

Markus Mützel <mmuetzel>
Group administrator
Sun 05 May 2024 02:40:25 PM UTC, comment #5: 

Thank you so much!  The straight 'reinstall' didn't work for me, but 'uninstall' followed by 'install' did.


cosmos@Voyager ~ % brew reinstall octave
==> Downloading https://ghcr.io/v2/homebrew/core/octave/manifests/9.1.0_2
Already downloaded: /Users/cosmos/Library/Caches/Homebrew/downloads/b4256c549cb0defb3c403f080aad4e05150bbcc61b2f1baa39548ce2feb2d7c3--octave-9.1.0_2.bottle_manifest.json
==> Fetching octave
==> Downloading https://ghcr.io/v2/homebrew/core/octave/blobs/sha256:c0e3b1658deeb3be2605a127f76e570825a42a876b08b74a9c98e0bc60af459d
Already downloaded: /Users/cosmos/Library/Caches/Homebrew/downloads/2e1eed2cc477bb23b34d690d3e06dd7210d8ea94df089307af733597f63bf7e6--octave--9.1.0_2.arm64_sonoma.bottle.tar.gz
==> Reinstalling octave
==> Pouring octave--9.1.0_2.arm64_sonoma.bottle.tar.gz
🍺  /opt/homebrew/Cellar/octave/9.1.0_2: 2,543 files, 62.3MB
==> Running `brew cleanup octave`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

cosmos@Voyager ~ % octave
GNU Octave, version 9.1.0
Copyright (C) 1993-2024 The Octave Project Developers.

[...]

Octave was configured for "aarch64-apple-darwin23.4.0".

[...]

octave:1> figure
fatal: caught signal Segmentation fault: 11 -- stopping myself...
zsh: segmentation fault  octave

cosmos@Voyager ~ % brew uninstall octave
Uninstalling /opt/homebrew/Cellar/octave/9.1.0_2... (2,543 files, 62.3MB)

cosmos@Voyager ~ % brew install octave
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
ansible-creator                                     cahute                                              fastapi                                             tofuenv
==> New Casks
msty                                                                                                    yass

You have 1 outdated formula installed.

==> Downloading https://ghcr.io/v2/homebrew/core/octave/manifests/9.1.0_2-1
####################################################################################################################################################################################################### 100.0%
==> Fetching octave
==> Downloading https://ghcr.io/v2/homebrew/core/octave/blobs/sha256:39facd51c0a174ceaf405e1aeb12c7c5641a1b301bf8a0f5192b3fc0c38aa607
####################################################################################################################################################################################################### 100.0%
==> Pouring octave--9.1.0_2.arm64_sonoma.bottle.1.tar.gz
🍺  /opt/homebrew/Cellar/octave/9.1.0_2: 2,543 files, 62.3MB
==> Running `brew cleanup octave`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/cosmos/Library/Caches/Homebrew/octave_bottle_manifest--9.1.0_2... (113KB)

cosmos@Voyager ~ %
cosmos@Voyager ~ % octave
GNU Octave, version 9.1.0
Copyright (C) 1993-2024 The Octave Project Developers.

[...]

Octave was configured for "aarch64-apple-darwin23.4.0".

[...]

octave:1> figure
octave:2>


It's probably just because "install" did a brew update that "reinstall" didn't.  In any event: fixed!  Many thanks again.


Anonymous
Sun 05 May 2024 01:18:46 AM UTC, comment #4: 

 brew reinstall octave
==> Downloading https://ghcr.io/v2/homebrew/core/octave/manifests/9.1.0_2-1

[....]

------------------------------------------
the bottle was updated 2 days ago (https://github.com/Homebrew/homebrew-core/blob/7ac5d4f04d55d13cfefaa680b2ca5d2f5c867311/Formula/o/octave.rb)

the issue with QT is now fixed (cherry-pick two commits)

------------------------------------------
[....]
  # Fix build for Qt 6.7.0
  # https://hg.savannah.gnu.org/hgweb/octave/rev/f428a432ed4f
  patch do
    url "https://hg.savannah.gnu.org/hgweb/octave/raw-rev/f428a432ed4f"
    sha256 "a9dd08ffecff5b310039b14847e8012e150de9b71337adc0955b0e668eea1d37"
  end

  # Fix opengl-partial-update bug causing crashes on figure() and plot() with Qt 6.7.0
  # https://hg.savannah.gnu.org/hgweb/octave/rev/317fa0e5c8de
  patch do
    url "https://hg.savannah.gnu.org/hgweb/octave/raw-rev/317fa0e5c8de"
    sha256 "909dc65614d0ef2520c35c5f8d4f78c451b189b2673e837f4f21c18a776273f0"
  end
[....]
-----------------------

Anonymous
Sat 04 May 2024 06:01:00 PM UTC, comment #3: 

Indeed, on my Mac that problem also occurs.

I would like to apply the changes from:

https://hg.savannah.gnu.org/hgweb/octave/rev/317fa0e5c8de

But I am unable to find the file, at least not in

/opt/homebrew/Cellar/octave/9.1.0_2

and I don't have a clue where else to search

masum
Thu 02 May 2024 09:44:54 PM UTC, comment #2: 

I have a feeling this thread is really about to become "How does one get the fix for 65605?"  (In case other MacOS folks end up here.)

And again thanks to the people who chased that one down.

Anonymous
Thu 02 May 2024 09:39:05 PM UTC, comment #1: 

Related to Issue 65605?  It's marked as Closed but the trace looks the same...

Anonymous
Thu 02 May 2024 09:32:13 PM UTC, original submission:  

Installed octave per instructions at https://wiki.octave.org/Octave_for_macOS, viz.


brew install octave


Ran both "octave" and "octave -gui".  Segmentation fault whenever trying to open a figure window:


cosmos@Voyager ~ % octave
GNU Octave, version 9.1.0
Copyright (C) 1993-2024 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 "aarch64-apple-darwin23.4.0".

Home page:            https://octave.org
Support resources:    https://octave.org/support
Improve Octave:       https://octave.org/get-involved

For changes from previous versions, type 'news'.

octave:1> available_graphics_toolkits()
ans =
{
  [1,1] = qt
}

octave:2> graphics_toolkit()
ans = qt
octave:3> figure
fatal: caught signal Segmentation fault: 11 -- stopping myself...
zsh: segmentation fault  octave
cosmos@Voyager ~ %


Full report attached.  Thanks to whoever looks into this!

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56000:  octave_figure_segfault.txt added by None (95KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by masum (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-06 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2024-05-02 None Attached File- Added octave_figure_segfault.txt, #56000

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code