-
Notifications
You must be signed in to change notification settings - Fork 5k
ILCompiler in .NET9 for FreeBSD does not produce usable binaries #105358
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
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
NVM, I'll let GHA upload the debug artifacts am11/CrossRepoCITesting@0e515ed 🤞 |
Ran into #105417, will rebuild with that change. |
After a few asserts suppression (am11@37940bf and am11@3b700e4), I get runtime's debug build to publish the aot app. It is failing at the very start: backtrace: (lldb) bt
* thread #1, name = 'foo', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
* frame #0: 0x000003fa95530f10 libc.so.7`__guard_setup at stack_protector.c:70:27
frame #1: 0x000011de40623bfd ld-elf.so.1`objlist_call_init(list=0x000003fa91c825c8, lockstate=0x000003fa91c823d8) at rtld.c:3089:7
frame #2: 0x000011de406228c9 ld-elf.so.1`_rtld(sp=<unavailable>, exit_proc=0x000003fa91c82640, objp=0x000003fa91c82648) at rtld.c:979:5
frame #3: 0x000011de4061fb89 ld-elf.so.1`.rtld_start at rtld_start.S:40 Tried commenting out @janvorli, do you have any ideas? This is the (constructor) function in question: https://github.com/freebsd/freebsd-src/blob/56ecc8a93221c16b6ea15d3dbea706a2c8bb33b4/lib/libc/secure/stack_protector.c#L40-L62 |
PublishAot clang command is:
also tried
as-in:
to no avail. 😕 |
I installed binutils and used runtime/src/native/corehost/apphost/static/singlefilehost_freebsdexports.src Lines 16 to 18 in 7e429c2
|
#105587 hello world is working. 👍 |
@am11 I think EDIT: If you want a debug build. I can build/run that too |
I don’t seem to have the access. |
ah! Even as a public repo, non-members can't access test results by default. The build itself should have the tests and this works without being logged in: https://dev.azure.com/IFailAt/freebsd-dotnet-runtime-nightly/_build/results?buildId=1603&view=results |
Thanks. Not sure if |
Uh oh!
There was an error while loading. Please reload this page.
Description
Under FreeBSD, .NET9 the ILCompiler (/p:PublishAOT=true) does not generate usable binaries. Even a simple "Hello, World!"
Discovered #104497 (comment) as a part of #104497
Reproduction Steps
Copied in part from above issue:
Expected behavior
Hello, World!
Actual behavior
Segmentation fault (core dumped)
Regression?
Yes. This works in .NET8
Known Workarounds
No known workarounds
Configuration
Versions used: .NET8 (8.0.100) and .NET9 (9.0.100-preview.5.24307.3)
OS: FreeBSD 13.3 & 14.1
Arch: (x64)
Other information
No response
The text was updated successfully, but these errors were encountered: