[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: JNI segfault while running Java tests

From: Daniel Sahlberg <daniel.l.sahlberg_at_gmail.com>
Date: Sun, 9 Aug 2020 15:28:39 +0200

Den sön 9 aug. 2020 15:14Nathan Hartman <hartman.nathan_at_gmail.com> skrev:

> On Sat, Aug 8, 2020 at 1:23 PM James McCoy <jamessan_at_jamessan.com> wrote:
>
>> On Sat, Aug 08, 2020 at 10:35:14AM -0400, James McCoy wrote:
>> > The Debian builds for 1.14.0 recently started crashing while running the
>> > Java tests. This is pretty far out of my expertise, so hopefully
>> > someone can help out.
>
>
> I don't know if it's related, but a few days ago we received a patch from
> Alexandr Miloslavskiy to fix a crash which is caused by a garbage collected
> object not being pinned before use by native code [1]. Perhaps Alexandr
> found the issue because of a similar crash to the one you're experiencing.
> Could you try the patch?
>

I thought about the same. However the patch didn't seem to make a
difference.

I can confirm James' statement that it crashes when compiled using GCC 10
but it seems to work with GCC 9. In my case I'm using Fedora 32 versus
Fedora 30 so I can't rule out that there are other differences but it seems
reasonable that GCC is doing something strange.

I have some done some preliminary investigations but I'm done yet, it seems
that the code is using an object that has already been destructed.

Kind regards
Daniel

> [1]
>
> https://lists.apache.org/x/thread.html/r1eaa02dd97d7b1c2376a76ed213ac03d1956f49f209b57ec4d84fe25@%3Cdev.subversion.apache.org%3E
>
> Nathan
>
>
Received on 2020-08-09 15:29:02 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.