Thread overview
[Issue 16631] Program crash when a version activates a method defined in a static library
Oct 21, 2016
b2.temp@gmx.com
Oct 24, 2016
anonymous4
Oct 24, 2016
anonymous4
Oct 25, 2016
b2.temp@gmx.com
Jan 24, 2017
b2.temp@gmx.com
October 21, 2016
https://issues.dlang.org/show_bug.cgi?id=16631

--- Comment #1 from b2.temp@gmx.com ---
Created attachment 1621
  --> https://issues.dlang.org/attachment.cgi?id=1621&action=edit
reproduce the bug (posix)

--
October 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16631

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from anonymous4 <dfj1esp02@sneakemail.com> ---
Works by design. The compiler doesn't know you compiled lib.d with incompatible flags. How would it?

--
October 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16631

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
             Status|RESOLVED                    |REOPENED
           Hardware|x86_64                      |All
         Resolution|INVALID                     |---
                 OS|Linux                       |All
           Severity|critical                    |enhancement

--- Comment #3 from anonymous4 <dfj1esp02@sneakemail.com> ---
Hmm, well, can be considered an accidental breach of safety. There's probably no easy way to fix this. One option can be augmentation of compiled code with metadata that would be checked if linking is done via the compiler.

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16631

b2.temp@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |major

--
January 24, 2017
https://issues.dlang.org/show_bug.cgi?id=16631

b2.temp@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from b2.temp@gmx.com ---
Yes you were right anonymous4. A build system must be used to ensure that the deps are build with right version ident. This report was biased because I've used much some package in another languages that handle this cases. however static libraries are much more simple, a collection of object, directly linkable (i.e not an intermediate format that would keep trace of the version ident). It cant work if the collection is not compiled with the version ident.

--