[Debian-med-packaging] Bug#929530: libsis-base-java: unaligned access on armhf

tony mancill tmancill at debian.org
Sat Dec 5 01:22:35 GMT 2020


On Wed, Dec 02, 2020 at 08:59:16PM +0100, Andreas Tille wrote:
> Control: tags -1 help
> 
> I wonder whether some Java expert might be able to clarify the
> situation in bug #929530.

Hi Andreas,

There is good news and bad news... :)  The good news is that the
unaligned access error is no longer an issue on armhf.  I am able
to compile without JVM crashing on the amdahl porter box:

Java VM: OpenJDK 64-Bit Server VM (v11.0.9.1+1-post-Debian-1)
CPU Architecture: aarch64
OS: Linux (v4.19.0-12-arm64)

I've run the build at least 6 times by now and not observed any issues
with the JVM.

The bad news is that tests are consistently failing.  Specifically, the
code [1] that runs after this test [2] fails consistently while trying
to clean up after the test with the error below:

[1] https://salsa.debian.org/med-team/libsis-base-java/-/blob/master/source/java/ch/systemsx/cisd/base/tests/AbstractFileSystemTestCase.java#L139
[2] https://salsa.debian.org/med-team/libsis-base-java/-/blob/master/sourceTest/java/ch/systemsx/cisd/base/unix/UnixTests.java#L121


Running testTouchSymLinkAndFileRealtimeTimer
Could not delete the directory targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests because: 1 exceptions: [java.io.IOException: Unable to delete file: targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests/someLink]
Could not delete the directory targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests in second try because: 1 exceptions: [java.io.IOException: Unable to delete file: targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests/someLink]
Exception in thread "main" org.apache.commons.io.IOExceptionList: 1 exceptions: [java.io.IOException: Unable to delete file: targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests/someLink]
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:345)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1206)
	at ch.systemsx.cisd.base.tests.AbstractFileSystemTestCase.afterClass(AbstractFileSystemTestCase.java:139)
	at ch.systemsx.cisd.base.unix.UnixTests.main(UnixTests.java:495)
	at ch.systemsx.cisd.base.AllTests.main(AllTests.java:56)
Caused by: java.io.IOException: Unable to delete file: targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests/someLink
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1425)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:338)
	... 4 more
Caused by: java.nio.file.NoSuchFileException: targets/unit-test-wd/ch.systemsx.cisd.base.unix.UnixTests/someLink
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
	at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:149)
	at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
	at java.base/java.nio.file.Files.size(Files.java:2380)
	at org.apache.commons.io.file.PathUtils.deleteFile(PathUtils.java:361)
	at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:304)
	at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:280)
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1423)
	... 5 more

However the symlink *is* present after the build (I have to remove it from
the build tree manually), so I don't know yet whether this is an issue
with the code on this architecture or something about how I'm using the
schroot on the porterbox.

In any event, my inclination is to close the unaligned access bug and
open a new bug for the test failure on this architecture.  I can't
reproduce it on amd64.

Cheers,
tony



More information about the Debian-med-packaging mailing list