Thread overview
[Issue 18456] crt_constructor/crt_destructor segfaults if -lib
Oct 01, 2018
ponce
Oct 01, 2018
ponce
Dec 24, 2018
Rainer Schuetze
February 18, 2018
https://issues.dlang.org/show_bug.cgi?id=18456

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |betterC

--
February 18, 2018
https://issues.dlang.org/show_bug.cgi?id=18456

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |blocker

--
February 20, 2018
https://issues.dlang.org/show_bug.cgi?id=18456

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--
October 01, 2018
https://issues.dlang.org/show_bug.cgi?id=18456

ponce <aliloko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aliloko@gmail.com

--- Comment #1 from ponce <aliloko@gmail.com> ---
Same here, we also hit this:


-------- main.d ----------

extern(C) pragma(crt_destructor) void deactivateDRuntime()
{
}

--------------------------

dmd -lib main.d

--
October 01, 2018
https://issues.dlang.org/show_bug.cgi?id=18456

--- Comment #2 from ponce <aliloko@gmail.com> ---
Can be workarounded by using LDC.
Can be workarounded by compiling in one bunch with --combined of course.

--
December 24, 2018
https://issues.dlang.org/show_bug.cgi?id=18456

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |r.sagitario@gmx.de

--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> ---
https://github.com/dlang/dmd/pull/9132

--
January 02, 2019
https://issues.dlang.org/show_bug.cgi?id=18456

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/20afb4363b236fdd006b43282973749c25049aae fix issue 18456 - crt_constructor/crt_destructor segfaults if -lib

delay objmod.setModuleCtorDtor until the function is actually generated don't make them extra object files in a library, they will never be linked

https://github.com/dlang/dmd/commit/2842e8bfe231775bda1683bf3fb82d4ffe47e87f Merge pull request #9132 from rainers/issue18456

fix issue 18456 - crt_constructor/crt_destructor segfaults if -lib merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>

--