Got compiler crash in Mangler::mangleFuncType

Uranuz via Digitalmars-d digitalmars-d at puremagic.com
Sat Mar 25 00:16:34 PDT 2017


On Saturday, 25 March 2017 at 06:56:40 UTC, Uranuz wrote:
> After changes in my project tried to compile, but compiler 
> failed. Running dmd under GDB gives the following:
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000005807a0 in Mangler::mangleFuncType(TypeFunction*, 
> TypeFunction*, unsigned char, Type*) ()
>
> Could someone give me adivice how to investigate and maybe fix 
> this problem?

Tried to build DMD from source using manual:
https://wiki.dlang.org/Building_under_Posix

Running compiled DMD to build my project gives the following 
error:
core.exception.AssertError at ddmd/func.d(1641): Assertion failure
----------------
??:? _d_assert [0x71c730]
??:? void ddmd.func.__assert(int) [0x5b52de]
??:? _ZN15FuncDeclaration9semantic3EP5Scope [0x5ab904]
??:? _ZN20AggregateDeclaration9semantic3EP5Scope [0x500a1f]
??:? _ZN16TemplateInstance9semantic3EP5Scope [0x5705fd]
??:? _ZN6Module9semantic3EP5Scope [0x552b19]
??:? int ddmd.mars.tryMain(ulong, const(char)**) [0x5da406]
??:? _Dmain [0x5db2c6]
??:? 
_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv 
[0x71e5d7]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) [0x71e503]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).runAll() [0x71e57c]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) [0x71e503]
??:? _d_run_main [0x71e467]
??:? main [0x5dba67]
??:? __libc_start_main [0x2c5a82f]


More information about the Digitalmars-d mailing list