I'll see if I can get the mingw-w64 developers to shed some light on what's going awry.
Liu Hao (lh_mouse) has provided the following explanation:
It's because `__emutls_get_address()` returns two distinct values in c
+onsecutive calls with the same
descriptor in the same thread, so the second reference to the thread l
+ocal
`__gmpfr_default_fp_bit_precision` (defined in 'set_dfl_prec.c') gets
+a fresh object with its
default value.
The "second reference" is the
mpfr_get_default() call made in foo().
He then followed that up with:
Looks like emutls could not set the thread-specific value for 'foreign
+ threads' (those not created
by mcfgthread). Although this is by design, I do think the MPFR expect
+ation should be reasonably
supported. I will fix this in a couple of days.
Entire thread is at:
https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/3a656408-a99f-e9c1-e4f0-c4ff8374bb30%40126.com/#msg37802424
Here endeth this soliloquy ;-)
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.