Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV (0xb) in C [libc++abi.dylib+0x30b4] for osX 10.15 Catalina #1315

Closed
petrychenko opened this issue Oct 9, 2019 · 15 comments
Closed
Assignees
Labels
bug Issues that are problems in the code as reported by the community
Milestone

Comments

@petrychenko
Copy link

Platform:
OS:uname:Darwin 19.0.0 Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64 x86_64
Architecture:
x86_64

hs_err_pid30602.log

After upgrade to os X 10.15 Catalina, previously working program failed with SIGSEGV.
How to reproduce:
create a basic maven project with 2 dependencies:

    <dependency>
      <groupId>org.deeplearning4j</groupId>
      <artifactId>deeplearning4j-core</artifactId>
      <version>1.0.0-beta4</version>
    </dependency>
    <dependency>
      <groupId>org.nd4j</groupId>
      <artifactId>nd4j-native-platform</artifactId>
      <version>1.0.0-beta4</version>
    </dependency>

and one class:

public class Main{

  public static void main( String[] args ){
    INDArray s = Nd4j.zeros(1, 1);
    System.out.println( s.isMatrix() );
  }

}

.
Under Os X 10.15 Catalina, expected result:

false

Process finished with exit code 0

Actual result:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff666980b4, pid=31244, tid=10243
#
# JRE version: OpenJDK Runtime Environment (11.0.4+11) (build 11.0.4+11)
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libc++abi.dylib+0x30b4]  __cxxabiv1::__si_class_type_info::has_unambiguous_public_base(__cxxabiv1::__dynamic_cast_info*, void*, int) const+0x4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/ivanpetrychenko/src/testAdotOpenJdk/hs_err_pid31244.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/AdoptOpenJDK/openjdk-build/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

@perunosx
Copy link

perunosx commented Oct 9, 2019

you have two libstdc++ loaded into memory, are you sure it's ok to do so ?
0x00007fff6860a000 /usr/lib/libstdc++.6.dylib
0x00000001351d8000 /Users/ivanpetrychenko/.javacpp/cache/mkl-dnn-0.18.1-1.5-macosx-x86_64.jar/org/bytedeco/mkldnn/macosx-x86_64/libstdc++.6.dylib

@petrychenko
Copy link
Author

I'm not sure if it is normal or not, I'm not the author of this library.
But as this code works for Oracle JDK, and for AdoptOpenJDK before update to Catalina, it seems it is acceptable.
The same bug is reported to deeplearning4j: deeplearning4j/deeplearning4j#8156 .

@ticofab
Copy link

ticofab commented Oct 11, 2019

I am having exactly the same issue since upgrading to Catalina yesterday, adding my specs in case it can be useful. Haven't tried with Oracle JDK.

08:59:16.436 INFO  o.n.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff6e8160b4, pid=8675, tid=35587
#
# JRE version: OpenJDK Runtime Environment (11.0.4+11) (build 11.0.4+11)
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libc++abi.dylib+0x30b4]  __cxxabiv1::__si_class_type_info::has_unambiguous_public_base(__cxxabiv1::__dynamic_cast_info*, void*, int) const+0x4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/fabiotiriticco/Development/programming/ticofab-rep/experiments/deeplearning/planes/hs_err_pid8675.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/AdoptOpenJDK/openjdk-build/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

hs_err_pid8675.log

MBP 15 in ch 2019, processor 2,3 GHz 8-Core Intel Core i9

@lararosekelley
Copy link

lararosekelley commented Oct 14, 2019

Same error for me, using Oracle JDK (also happened with OpenJDK); macOS 10.15 on a 2018 MBP 15", 2.6 GHz 6-core i7:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff6b0d40b4, pid=56262, tid=28679
#
# JRE version: Java(TM) SE Runtime Environment (10.0.2+13) (build 10.0.2+13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (10.0.2+13, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libc++abi.dylib+0x30b4]  __cxxabiv1::__si_class_type_info::has_unambiguous_public_base(__cxxabiv1::__dynamic_cast_info*, void*, int) const+0x4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/tylucaskelley/Code/topos/GeoGulp/bin/hs_err_pid56262.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

hs_err_pid56262.log

@drbitzer
Copy link

drbitzer commented Oct 15, 2019

Same error for me for macOS 10.15 on a 2015 MBP 13" i5

Adding log:
hs_err_pid1656.log

@kyndi-barryevans
Copy link

kyndi-barryevans commented Oct 17, 2019

Still an issue: macOS 10.15 (19A602) Darwin 19.0.0

14:33:15.855 [main] INFO  o.n.l.f.Nd4jBackend - Loaded [CpuBackend] backend
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff686400b4, pid=14351, tid=0x0000000000000e03
#
# JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libc++abi.dylib+0x30b4]  _ZNK10__cxxabiv120__si_class_type_info27has_unambiguous_public_baseEPNS_19__dynamic_cast_infoEPvi+0x4
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#

hs_err_pid14351.log

@ff-will
Copy link

ff-will commented Oct 22, 2019

Same error here. I tried

  • Oracle JDK 8
  • AdoptOpenJDK 8
  • AdoptOpenJDK 11
    Worked fine before upgrading to Mac OS 10.15. So I don't think it's an AdoptOpenJDK problem...

@fjauer
Copy link

fjauer commented Oct 23, 2019

Same here

@karianna karianna added this to TODO in temurin-build via automation Oct 23, 2019
@karianna karianna added this to the October 2019 milestone Oct 23, 2019
@karianna karianna added the bug Issues that are problems in the code as reported by the community label Oct 23, 2019
@karianna
Copy link
Contributor

@karianna karianna self-assigned this Oct 23, 2019
@karianna karianna added the Waiting on OP Issues that are awaiting a response from the original author of the ticket label Oct 23, 2019
@karianna karianna moved this from TODO to In Progress in temurin-build Oct 23, 2019
@ff-will
Copy link

ff-will commented Oct 23, 2019

@karianna Just tried it with OpenJDK11: Still the same. Not surprised though as this really seems to be a problem in the deeplearning4j library.

@petrychenko
Copy link
Author

petrychenko commented Oct 24, 2019

Still the same, and still works under Orcale JDK
393 [main] INFO o.n.l.f.Nd4jBackend - Loaded [CpuBackend] backend

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007fff686c10b4, pid=95582, tid=9987

JRE version: OpenJDK Runtime Environment (11.0.5+10) (build 11.0.5+10)
Java VM: OpenJDK 64-Bit Server VM (11.0.5+10, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
Problematic frame:
C [libc++abi.dylib+0x30b4] __cxxabiv1::__si_class_type_info::has_unambiguous_public_base(__cxxabiv1::__dynamic_cast_info*, void*, int) const+0x4

@PMacho
Copy link

PMacho commented Oct 26, 2019

Just tried the quickstart with the latest version of AdoptOperJDK 11:
hs_err_pid15516.log

@karianna karianna removed the Waiting on OP Issues that are awaiting a response from the original author of the ticket label Oct 26, 2019
@mimkorn
Copy link

mimkorn commented Oct 29, 2019

Same here.
I tried AdoptOpenJDK 8, 11, 13
Catalina 10.15

@karianna karianna modified the milestones: October 2019, November 2019 Nov 3, 2019
@ticofab
Copy link

ticofab commented Nov 18, 2019

might be solved as mentioned here: deeplearning4j/deeplearning4j#8156

@ticofab
Copy link

ticofab commented Aug 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are problems in the code as reported by the community
Projects
No open projects
temurin-build
  
Done
Development

No branches or pull requests