Skip to content

Commit

Permalink
Update nim.cfg (nim-lang#21204)
Browse files Browse the repository at this point in the history
tlsEmulation:on under NetBSD-10Beta and NetBSD-current produces an executable which crashes immediately as follows:

Core was generated by `koch'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000047b4c2 in nimZeroMem ()
(gdb) bt
#0  0x000000000047b4c2 in nimZeroMem ()
nim-lang#1  0x00000000004897b2 in threadVarAlloc__system_2162 ()
nim-lang#2  0x000000000048980e in initThreadVarsEmulation ()
nim-lang#3  0x0000000000489848 in PreMain ()
nim-lang#4  0x000000000048986a in NimMain ()
nim-lang#5  0x00000000004898a9 in main ()

I can't speak about the other BSDs.
  • Loading branch information
ci4ic4 authored and capocasa committed Mar 31, 2023
1 parent 98570f8 commit 3f52b93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,9 @@ nimblepath="$home/.nimble/pkgs/"

gcc.maxerrorsimpl = "-fmax-errors=3"

@if freebsd:
@if freebsd or netbsd:
tlsEmulation:off
@elif bsd:
# at least NetBSD has problems with thread local storage:
tlsEmulation:on
@end

Expand Down

0 comments on commit 3f52b93

Please sign in to comment.