bugGNU Octave - Bugs: bug #54609, Octave 4.2.2 killed due to...

 
 

bug #54609: Octave 4.2.2 killed due to "execution attempt in: <anonymous mapping>" when plotting

Submitter:  Fedja Beader <specing>
Submitted:  Fri 31 Aug 2018 08:17:28 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Sep 2018 06:28:07 PM UTC, comment #3: 

Closing bug as an upstream issue with grsecurity and OpenGL drivers.

Rik <rik5>
Group administrator
Wed 05 Sep 2018 06:00:51 PM UTC, comment #2: 

I thought it was an error in Octave as Octave itself has no JIT.

Thank you, I can confirm that switching graphics toolkit to gnuplot resolves this problem. However I will still see what can be done about disabling LLVM's JIT and what the consequences of not doing so are.

Fedja Beader <specing>
Fri 31 Aug 2018 08:48:44 PM UTC, comment #1: 

This is not really an error, but your grsecurity kernel killing Octave when it is attempting to use OpenGL.

I don't use grsecurity, but some quick searching shows that pretty much any JIT must be allowed to use mprotect. And many of the modern mesa OpenGL drivers use LLVM JIT. So that is my guess as to what is going on here.

Please look at these forum discussions for example


Do those discussions help? I don't know anything about 'paxctl' or disabling mprotect, but those seem very relevant to your configuration.

Or you can avoid using OpenGL, does using gnuplot for plotting help resolve this for you?


octave --no-gui
graphics_toolkit gnuplot
plot([0,1],[0,1])


Mike Miller <mtmiller>
Group Member
Fri 31 Aug 2018 08:17:28 PM UTC, original submission:  

To reproduce:
octave --no-gui
plot([0,1],[0,1])


[451935.248627] grsec: denied RWX mprotect of <anonymous mapping> by /usr/libexec/octave/4.2.2/exec/x86_64-pc-linux-gnu/octave-gui[octave-gui:26913] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:22849] uid/euid:1000/1000 gid/egid:1000/1000
[451935.256809] grsec: denied RWX mprotect of <anonymous mapping> by /usr/libexec/octave/4.2.2/exec/x86_64-pc-linux-gnu/octave-gui[octave-gui:26913] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:22849] uid/euid:1000/1000 gid/egid:1000/1000
[451935.285722] grsec: denied RWX mprotect of <anonymous mapping> by /usr/libexec/octave/4.2.2/exec/x86_64-pc-linux-gnu/octave-gui[octave-gui:26913] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:22849] uid/euid:1000/1000 gid/egid:1000/1000
[451935.286041] PAX: execution attempt in: <anonymous mapping>, 34e2a54b000-34e2a54e000 34e2a54b000
[451935.286048] PAX: terminating task: /usr/libexec/octave/4.2.2/exec/x86_64-pc-linux-gnu/octave-gui(octave-gui):26913, uid/euid: 1000/1000, PC: 0000034e2a54c000, SP: 0000038734745178
[451935.286053] PAX: bytes at PC: 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec

[451935.286094] PAX: bytes at SP-8: 00000048132e31c8 0000034e0d9561a3 00000048132e5588 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000034e0d9560c6 00000048136cf260 0000034e00000024 0000038734745300

[451935.286190] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/libexec/octave/4.2.2/exec/x86_64-pc-linux-gnu/octave-gui[octave-gui:26913] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:22849] uid/euid:1000/1000 gid/egid:1000/1000

Fedja Beader <specing>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by specing (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-10 mtmiller Open/ClosedOpen Closed
    2018-09-10 rik5 CategoryNone Plotting with OpenGL
        StatusNeed Info Invalid / Not an Octave Bug
    2018-08-31 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code