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

run in rails occur crash, core dump #26

Open
qiusugang opened this issue Jan 17, 2019 · 3 comments
Open

run in rails occur crash, core dump #26

qiusugang opened this issue Jan 17, 2019 · 3 comments

Comments

@qiusugang
Copy link

include rails Gemfile, start rails, it's crash and core dump

1497 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/lapack.so

  • Process memory map:

56331ff11000-563320235000 r-xp 00000000 fd:01 271503 /usr/local/bin/ruby
563320435000-56332043a000 r--p 00324000 fd:01 271503 /usr/local/bin/ruby
56332043a000-56332043b000 rw-p 00329000 fd:01 271503 /usr/local/bin/ruby
56332043b000-56332044d000 rw-p 00000000 00:00 0
5633209b0000-5633240af000 rw-p 00000000 00:00 0 [heap]
7f3e656d7000-7f3e6671f000 r--s 00000000 fd:01 271503 /usr/local/bin/ruby
7f3e6671f000-7f3e66758000 r-xp 00000000 fd:01 1838621 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/lapack.so
7f3e66758000-7f3e66957000 ---p 00039000 fd:01 1838621 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/lapack.so
7f3e66957000-7f3e66958000 r--p 00038000 fd:01 1838621 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/lapack.so
7f3e66958000-7f3e66959000 rw-p 00039000 fd:01 1838621 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/lapack.so
7f3e66959000-7f3e6695a000 rw-p 00000000 00:00 0
7f3e6695a000-7f3e6697c000 r-xp 00000000 fd:01 1838602 /usr/local/lib/ruby/gems/2.5.0/gems/numo-linalg-0.1.4/lib/numo/linalg/blas.so

@masa16
Copy link
Member

masa16 commented Jan 18, 2019

I would appreciate if you could show me a sample code to reproduce this crash.

@qiusugang
Copy link
Author

Environment is: ruby 2.5.3, rails 5.2, ubuntu 18.0.4
In a new rails project, just add below statement in Gemfile:
gem "numo-narray"
gem "numo-linalg"

Than run: rails s
It will crash and occur core dump like above
(* Windows environment is no problem, CentOS 7 also has same problem)

@masa16
Copy link
Member

masa16 commented Jan 22, 2019

I got same crash, but this is due to a problem in ruby 2.5.x.: https://bugs.ruby-lang.org/issues/15200
Possible solutions:

  1. Use ruby 2.6.
  2. Apply patch to numo-linalg: 87732ca
  3. Unuse 'bootsnap' option which is set in config/boot.rb in your rails project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants