digitalmars.D.bugs - [Issue 15180] New: [REG2.069.0-b1] Segfault with empty struct used
- via Digitalmars-d-bugs (57/57) Oct 09 2015 https://issues.dlang.org/show_bug.cgi?id=15180
https://issues.dlang.org/show_bug.cgi?id=15180 Issue ID: 15180 Summary: [REG2.069.0-b1] Segfault with empty struct used as UDA Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: doob me.com The following code will result in "Segmentation fault: 11" on OS X: struct foo { } foo bar () { } Backtrace: Process 73487 launched: '/Users/jacob/.dvm/compilers/dmd-2.069.0-b1/osx/bin/dmd' (x86_64) Process 73487 stopped dmd`objc_isUdaSelector(StructDeclaration*) + 9, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8) dmd`objc_isUdaSelector(StructDeclaration*): -> 0x100161921 <+9>: movq 0x8(%rdi), %rax 0x100161925 <+13>: leaq 0x1b1dec(%rip), %rcx ; Id::udaSelector 0x10016192c <+20>: cmpq (%rcx), %rax 0x10016192f <+23>: jne 0x100161938 ; <+32> (lldb) bt dmd`objc_isUdaSelector(StructDeclaration*) + 9, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8) dmd`objc_FuncDeclaration_semantic_setSelector(FuncDeclaration*, Scope*) + 175 dmd`UserAttributeDeclaration::semantic2(Scope*) + 94 29045 dmd`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv + 40 dmd`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 45 dmd`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv + 45 dmd`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 45 --
Oct 09 2015