Thread overview
[Issue 20296] Segfault when using variadic D functions with extern(C++) linkage
Oct 11, 2019
Andrej Mitrovic
Oct 11, 2019
RazvanN
Jun 21, 2020
Basile-z
Aug 16, 2020
Dlang Bot
Aug 16, 2020
Boris Carvajal
Aug 18, 2020
Dlang Bot
October 11, 2019
https://issues.dlang.org/show_bug.cgi?id=20296

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
It segfaults in the mangler, it seems it has an issue with pointers of any type.

--
October 11, 2019
https://issues.dlang.org/show_bug.cgi?id=20296

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |razvan.nitu1305@gmail.com
           Severity|normal                      |critical

--
June 21, 2020
https://issues.dlang.org/show_bug.cgi?id=20296

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice
                 CC|                            |b2.temp@gmx.com
                 OS|Mac OS X                    |All

--
August 16, 2020
https://issues.dlang.org/show_bug.cgi?id=20296

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #11582 "Fix Issue 20296 - Segfault when using variadic D functions with exter…" fixing this issue:

- Fix Issue 20296 - Segfault when using variadic D functions with extern(C++)
linkage

https://github.com/dlang/dmd/pull/11582

--
August 16, 2020
https://issues.dlang.org/show_bug.cgi?id=20296

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
           Severity|critical                    |regression

--- Comment #3 from moonlightsentinel@disroot.org ---
This is actually a regression:

Up to      2.060  : Status -6 with output: dmd: cppmangle.c:192: virtual void
Type::toCppMangle(OutBuffer*, CppMangleState*): Assertion `deco' failed.
2.061   to 2.063  : Success and no output
2.064   to 2.066.0: Segfault and no output
2.067.1 to 2.083.1: Success and no output
Since      2.084.1: Segfault and no output

--
August 16, 2020
https://issues.dlang.org/show_bug.cgi?id=20296

--- Comment #4 from moonlightsentinel@disroot.org ---
(In reply to moonlightsentinel from comment #3)
> This is actually a regression:

(Found using a modified test case which defines

==================================
void main()
{
    foo!(char*)(null);
}
==================================

instead of an alias.

--
August 16, 2020
https://issues.dlang.org/show_bug.cgi?id=20296

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9@gmail.com

--- Comment #5 from Boris Carvajal <boris2.9@gmail.com> ---
Yeah, the instance is what's needed.

--
August 18, 2020
https://issues.dlang.org/show_bug.cgi?id=20296

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11582 "Fix Issue 20296 - Segfault when using variadic D functions with exter…" was merged into stable:

- 86703c21125d4e62529ec60255d5081aab40624e by Boris Carvajal:
  Fix Issue 20296 - Segfault when using variadic D functions with extern(C++)
linkage

https://github.com/dlang/dmd/pull/11582

--