[jira] [Commented] (SVN-4852) libsvnjavahl-1.so.0.0.0 can't be loaded by java with GCC 10

Martin Liška (Jira) <[email protected]>
Newsgroups gmane.comp.version-control.subversion.issues
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/SVN-4852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070346#comment-17070346 ] 

Martin Liška commented on SVN-4852:
-----------------------------------

Well, the gcc10 can cause a miscompilation due to a bug in it. Or it can be caused by an undefined behavior in subversion project. Last option can be also a ABI change among Java and libsvnjavahl-1.so.0.0.0.

> libsvnjavahl-1.so.0.0.0 can't be loaded by java with GCC 10
> -----------------------------------------------------------
>
>                 Key: SVN-4852
>                 URL: https://issues.apache.org/jira/browse/SVN-4852
>             Project: Subversion
>          Issue Type: Bug
>         Environment: I'm building subversion package with GCC 10 and I see the following error:
>  
> {code:java}
> [ 6562s] /usr/lib64/jvm/java/bin/java -Xcheck:jni "-Dtest.rootdir=/home/abuild/rpmbuild/BUILD/subversion-1.13.0/subversion/bindings/javahl/test-work" "-Dtest.srcdir=/home/abuild/rpmbuild/BUILD/subversion-1.13.0/subversion/bindings/javahl" "-Dtest.rooturl=" "-Dtest.fstype=" "-Djava.library.path=subversion/bindings/javahl/native/.libs:/usr/lib64" -classpath "subversion/bindings/javahl/classes:/home/abuild/rpmbuild/BUILD/subversion-1.13.0/subversion/bindings/javahl/src:/usr/share/java/junit.jar" "-Dtest.cleanup=" "-Dtest.tests=" org.apache.subversion.javahl.RunTests [ 6575s] ...................................# [ 6575s] # A fatal error has been detected by the Java Runtime Environment: [ 6575s] # [ 6575s] # SIGSEGV (0xb) at pc=0x00007fbd31db7a58, pid=20246, tid=20247 [ 6575s] # [ 6575s] # JRE version: OpenJDK Runtime Environment (11.0.6+10) (build 11.0.6+10-suse-145.1-x8664) [ 6575s] # Java VM: OpenJDK 64-Bit Server VM (11.0.6+10-suse-145.1-x8664, mixed mode, tiered, compressed oops, g1 gc, linux-amd64) [ 6575s] # Problematic frame: [ 6575s] # C [libsvnjavahl-1.so.0.0.0+0x57a58] SVNClient::copy(CopySources&, char const*, CommitMessage*, bool, bool, bool, bool, bool, _jobject*, PropertyTable&, CommitCallback*)+0x348{code}
> I suspect an ABI change.
>            Reporter: Martin Liška
>            Priority: Major
>         Attachments: hs_err_pid16816.log
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.