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

SEGFAULT in druntime-test-thread/external_threads on aarch64-musl #3403

Closed
Cogitri opened this issue Apr 14, 2020 · 5 comments
Closed

SEGFAULT in druntime-test-thread/external_threads on aarch64-musl #3403

Cogitri opened this issue Apr 14, 2020 · 5 comments

Comments

@Cogitri
Copy link

Cogitri commented Apr 14, 2020

Tested with ldc 1.20.1.

With the patch you've mentioned most tests (other than math things, as expected) work now. One notable exception is the external_threads test, see the backtrace:

#0  0x0000aaaaaaac5da8 in _D2rt4util9container5array__T5ArrayTAvZQk6lengthMFNbNdNimZv ()
#1  0x0000aaaaaaac53e8 in rt.tlsgc.destroy(void*) ()
#2  0x0000aaaaaaaba7ec in core.thread.osthread.Thread.~this() ()
#3  0x0000aaaaaaac0ec0 in rt_finalize2 ()
#4  0x0000aaaaaaad315c in _D2gc4impl12conservativeQw3Gcx5sweepMFNbZm ()
#5  0x0000aaaaaaad0218 in _D2gc4impl12conservativeQw3Gcx11fullcollectMFNbbZm ()
#6  0x0000aaaaaaad049c in _D2gc4impl12conservativeQw14ConservativeGC__T9runLockedS_DQCeQCeQCcQCnQBs18fullCollectNoStackMFNbZ2goFNbPSQEaQEaQDyQEj3GcxZmTQvZQDfMFNbKQBgZm ()
#7  0x0000aaaaaaabbfe0 in gc_term ()
#8  0x0000aaaaaaabef64 in rt_term ()
#9  0x0000aaaaaaabf344 in _D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv ()
#10 0x0000aaaaaaabf21c in _d_run_main2 ()
#11 0x0000aaaaaaabf0b8 in _d_run_main ()
#12 0x0000fffff7f70778 in libc_start_main_stage2 (main=0xaaaaaaaba500 <main>, argc=1, argv=0xfffffffffb88) at src/env/__libc_start_main.c:94
#13 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
@Geod24
Copy link
Contributor

Geod24 commented Jan 15, 2021

I think this was fixed by dlang/druntime#3308
I'll confirm once the Alpine package has been upgraded to v1.25.0.

@tom-tan
Copy link

tom-tan commented Feb 24, 2024

FYI: It still remains in v1.36.0.
See: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/61217

@kassane kassane mentioned this issue Apr 10, 2024
@JohanEngelen
Copy link
Member

Possibly fixed by #4648

@JohanEngelen
Copy link
Member

or #3332

@tom-tan
Copy link

tom-tan commented Jul 7, 2024

I confirmed this was fixed in ldc 1.39.0.

@kinke kinke closed this as completed Jul 8, 2024
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

5 participants