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

mono: symbol lookup error: /usr/lib/libmono-llvm.so: undefined symbol: mono_class_get_generic_class #13974

Closed
brianrob opened this issue Apr 10, 2019 · 9 comments

Comments

@brianrob
Copy link

@brianrob brianrob commented Apr 10, 2019

Steps to Reproduce

  1. Build an image from this dockerfile: https://gist.github.com/brianrob/8f3110afcac6d66f00013e9077ccdf1b.
  2. Run a container based on the image created in step 1.

Current Behavior

Running the container, which runs the TechEmpower PlatformPlaintext benchmark against mono produces this error:

mono: symbol lookup error: /usr/lib/libmono-llvm.so: undefined symbol: mono_class_get_generic_class

Expected Behavior

The app starts successfully.

On which platforms did you notice this

[ ] macOS
[ X ] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 6.3.0.107 (tarball Tue Apr 9 10:42:04 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)

@brianrob

This comment has been minimized.

Copy link
Author

@brianrob brianrob commented Apr 10, 2019

@directhex

This comment has been minimized.

Copy link
Contributor

@directhex directhex commented Apr 10, 2019

Where do I find PlatformBenchmarks to repro the build?

Step 3/12 : COPY PlatformBenchmarks .
COPY failed: stat /var/lib/docker/tmp/docker-builder267172719/PlatformBenchmarks: no such file or directory
@brianrob

This comment has been minimized.

@directhex

This comment has been minimized.

Copy link
Contributor

@directhex directhex commented Apr 10, 2019

It looks like this might be another case where the symbol isn't needed for a basic sanity check, but is for a more advanced app

root@breakfast:/tmp/FrameworkBenchmarks/frameworks/CSharp/aspnetcore-mono/PlatformBenchmarks# mono --llvm bin/Debug/net471/PlatformBenchmarks.exe
mono: symbol lookup error: /usr/lib/libmono-llvm.so: undefined symbol: mono_class_get_generic_class
root@breakfast:/tmp/FrameworkBenchmarks/frameworks/CSharp/aspnetcore-mono/PlatformBenchmarks# mono --llvm /tmp/hello.exe 
Hello World!
@brianrob

This comment has been minimized.

Copy link
Author

@brianrob brianrob commented Apr 10, 2019

That sounds right. Not all of the apps I've run have hit this as well.

@directhex

This comment has been minimized.

Copy link
Contributor

@directhex directhex commented Apr 10, 2019

It might be a 1-line fix. Giving it a shot.

@directhex

This comment has been minimized.

Copy link
Contributor

@directhex directhex commented Apr 10, 2019

Fine then, stay closed. Bloody github.

This is gonna need 6.3.0.134, by my maths. Maybe by tomorrow morning if we're lucky? 🤷‍♂

@brianrob

This comment has been minimized.

Copy link
Author

@brianrob brianrob commented Apr 10, 2019

Thanks @directhex. Let me know and I'll give it a whirl.

filipnavara added a commit to filipnavara/mono that referenced this issue Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.