[
https://issues.apache.org/jira/browse/CASSANDRA-19565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17838148#comment-17838148
]
Thomas De Keulenaer commented on CASSANDRA-19565:
-------------------------------------------------
The
[article|https://davecturner.github.io/2021/08/30/seven-year-old-segfault.html]
gives a very detailed explaination:
{quote}
The usual solution seems to be to write the code into a file and then use
something like mmap() to load it again into read-only-but-executable pages. In
order to do this we need some temporary space that isn’t mounted noexec.
[...]
That tells us that libffi will sometimes create temporary executable files, and
it will always create them when running under SELinux. It’s important to note
that this is completely independent of the fact that JNA creates temporary
executable files: libffi is a language-independent library for calling foreign
functions so it doesn’t know anything about Java and therefore doesn’t have
access to the Java system properties java.io.tmpdir and jna.tmpdir which
control where JNA does its work. Instead, on Linux libffi tries to create its
temporary executable files in various places in the following order of
preference:
* $LIBFFI_TMPDIR
* $TMPDIR
* /tmp
* /var/tmp
* /dev/shm
* $HOME
{quote}
But I admit, it is also unclear to me why this is only an issue in Cassandra
4.1.4 and not on 4.0.12.
> SIGSEGV on Cassandra v4.1.4
> ---------------------------
>
> Key: CASSANDRA-19565
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19565
> Project: Cassandra
> Issue Type: Bug
> Reporter: Thomas De Keulenaer
> Priority: Normal
> Fix For: 4.1.x
>
> Attachments: hs_err_pid1116450.log
>
>
> Hello,
> Since upgrading to v4.1. we cannat run CAssandra any more. Each start
> immediately crashes:
> {{Apr 17 08:58:34 SVALD108 cassandra[1116450]: # A fatal error has been
> detected by the Java Runtime Environment:
> Apr 17 08:58:34 SVALD108 cassandra[1116450]: # SIGSEGV (0xb) at
> pc=0x00007fccaab4d152, pid=1116450, tid=1116451}}
> I have added the log from the coe dump.
> This issue is perhaps related to
> https://davecturner.github.io/2021/08/30/seven-year-old-segfault.html ?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]