[rt.cpan.org #21181] Tcl Segfaults on SuSE 10.1 x86_64

[email protected] ("Vadim Konovalov via RT") Tue, 29 May 2018 12:26:58 -0400
Newsgroups perl.tcltk
Message-ID <[email protected]>
<URL: https://rt.cpan.org/Ticket/Display.html?id=21181 >

Le Dim 27 Mai 2018 13:20:20, [email protected] a écrit :
> Hi,
> 
> A patch is attached to fix this issue by declaring static variable
> initstub (https://metacpan.org/source/VKON/Tcl-1.05/Tcl.xs#L374) as
> volatile, which prevents compiler from optimizing out this variable.
> Therefore, a correct Tcl_InitStubs() func could be preserved before
> Tcl (libtcl.so) dynamically loaded. I think this solution would be
> more legitimate.
> 
> Result of compiler explorer shows the effect of volatile variable.
> 
> https://godbolt.org/g/RHc7Uu

TYVM!
added the fix to repositury https://github.com/gisle/tcl.pm, hopefully soon to be released