Turns out to be an Selinux issue.

My main system is Fedora 38 and it runs compiler without issue.
 Strace'd and found a permission issue with function mprotect().  

$ strace ./compiler
execve("./compiler", ["./compiler"], 0x7ffd7373a9f0 /* 33 vars */) = 0
open("/proc/self/exe", O_RDONLY) = 3
mmap(NULL, 69379414, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0x7f5124fd5000
mmap(0x7f5124fd5000, 69378989, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7f5124fd5000
mprotect(0x7f51291fe000, 5462, PROT_READ|PROT_EXEC) = -1 EACCES
(Permission denied)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR,
si_addr=0x7f51291fed47} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)


Google leads me to a Redhat bug:

https://bugzilla.redhat.com/show_bug.cgi?id=2132528


FYI on Maven 3.6.3, not that this is important now...

$ mvn -version
Apache Maven 3.6.3 (Red Hat 3.6.3-15)
Maven home: /usr/share/maven
Java version: 20.0.2, vendor: Red Hat, Inc., runtime:
/usr/lib/jvm/java-20-openjdk-20.0.2.0.9-1.rolling.el9.x86_64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.14.0-362.8.1.el9_3.x86_64", arch:
"amd64", family: "unix"
Press any key to continue...


On Wed, 2023-11-22 at 13:22 -0500, Nick Couchman wrote:
> On Wed, Nov 22, 2023 at 12:32 PM Leslie Mann
> <[email protected]> wrote:
> > As I am!  I was using a 'minimal' install and have now setup a full
> > graphical VM with the same results.  I can build 1.5.0, failures
> > start with version 1.5.1...
> > 
> > What system are you running?  I'd like to keep drilling in on this
> > so I'll setup a new VM with what you are using and see if I can
> > figure out what's causing the issue.
> > 
> > 
> 
> 
> EL8 - Rocky8 and CentOS Stream 8, mostly.
> 
> What versions of Maven and JDK are you using?
> 
> $ /opt/maven/bin/mvn --version
> Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
> Maven home: /opt/maven
> Java version: 11.0.18-ea, vendor: Red Hat, Inc., runtime:
> /usr/lib/jvm/java-11-openjdk-11.0.18.0.9-0.3.ea.el8.x86_64
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.18.0-521.el8.x86_64", arch: "amd64",
> family: "unix"
> 
> -Nick
> 

Reply via email to