[MGNLPER-118] dl4j version 1.0.0-beta4 running on OS X Catalina 10.15 with AdoptOpenJDK causes SIGSEGV Created: 29/Oct/19  Updated: 16/Mar/20  Resolved: 21/Jan/20

Status: Closed
Project: Periscope
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Šimon Demočko Assignee: Unassigned
Resolution: Obsolete Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X Catalina 10.15
Java: AdoptOpenJDK (tried 8, 11, 13)
Tomcat 9.0.27 (tried 9.0.10, 9.0.26)


Attachments: Text File tomcat.log    
Issue Links:
Relates
causality
supersession
is superseded by MLEARN-21 Upgrade to DL4J beta6 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

This is more of a FYI, there is probably nothing we can do on our end other than wait for release of fixed version.

Deploy of dx-core demo webapp: After logging with superuser credentials tomcat crashes.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff6b10d0b4, pid=19723, tid=0x0000000000038e07
#
# JRE version: OpenJDK Runtime Environment (8.0_232-b09) (build 1.8.0_232-b09)
# Java VM: OpenJDK 64-Bit Server VM (25.232-b09 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libc++abi.dylib+0x30b4]  __cxxabiv1::__si_class_type_info::has_unambiguous_public_base(__cxxabiv1::__dynamic_cast_info*, void*, int) const+0x4

Log files contained references to deeplearning library in stacktrace.

Others running in the same environment (Catalina 10.15, maven project with DeepLearning 1.0.0-beta4) encounter the same error, as can be seen in following links:

Deeplearning4j GitHub: https://github.com/eclipse/deeplearning4j/issues/8156

AdoptOpenJDK GitHub: https://github.com/AdoptOpenJDK/openjdk-build/issues/1315

https://gitmemory.com/issue/eclipse/deeplearning4j/8156/539763233



 Comments   
Comment by Mercedes Iruela [ 29/Oct/19 ]

It seems that it is working with with JDK12.

Comment by Federico Grilli [ 30/Oct/19 ]

FWIW, I haven't encountered this error so far.

  • openjdk version "1.8.0_222"
    OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
    OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
  • Mac OS X 10.14.6
Comment by Thomas Duffey [ 01/Nov/19 ]

We're hitting this as well. Seems fine on Mac OS X 10.14 but not 10.15

Comment by Thomas Duffey [ 04/Nov/19 ]

Seems to work (As in Magnolia doesn't crash, not sure if Deeplearning4j is working) with Oracle JDK 13 but not OpenJDK 13 FYI

Comment by Christopher Zimmermann [ 05/Nov/19 ]

Hi Folks, our support team has looked into this issue. Unfortunately it's not something we can fix, but we have added a note in the certified stack about this issue and how to work around it:

If you are using AdoptOpenJDK on macOS, be aware that this build of OpenJDK is currently facing a segmentation fault problem issued as https://github.com/AdoptOpenJDK/openjdk-build/issues/1315, which also affects our Periscope module. Until the issue is fixed in the AdoptOpenJDK project, you can bypass it by excluding the magnolia-periscope-result-ranker artifact from your instances and temporarily losing the functionality the result ranker provides

Hope this helps.

Comment by Mercedes Iruela [ 21/Jan/20 ]

It seems that the issue has been fixed on version 1.0.0-beta6: https://github.com/eclipse/deeplearning4j/issues/8156

Comment by Will Scheidegger [ 16/Mar/20 ]

Guys, I upgraded the dependency to 1.0.0-beta6 and it's still not working. Are you sure you have it fixed for Magnolia 6.2? And if so: Is there a fix for 6.1 as well? Or could you at least post some quick instructions on how to fix this for 6.1? This unfortunately is quite blocking... Thanks!

Generated at Mon Feb 12 10:28:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.