Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
October 10, 2012 [Issue 8795] New: mixing in "switch" or "interface;" makes dmd segfault | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8795 Summary: mixing in "switch" or "interface;" makes dmd segfault Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: ice Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: nilsbossung@googlemail.com --- Comment #0 from Nils <nilsbossung@googlemail.com> 2012-10-10 12:46:49 PDT --- A) mixing in "switch" --- cat > test.d <<code void s() {mixin("switch");} code dmd -c -o- test.d --- test.d(1): Error: found 'EOF' when expecting '(' test.d(1): Error: expression expected, not 'EOF' test.d(1): Error: found 'EOF' when expecting ')' test.d(1): Error: found 'EOF' instead of statement Segmentation fault (core dumped) --- B) mixing in "interface;" --- cat > test.d <<code mixin("interface;"); code dmd -c -o- test.d --- test.d(1): Error: anonymous classes not allowed Segmentation fault (core dumped) --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 29, 2013 [Issue 8795] mixing in "switch" or "interface;" makes dmd segfault | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nils | http://d.puremagic.com/issues/show_bug.cgi?id=8795 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx --- Comment #1 from hsteoh@quickfur.ath.cx 2013-08-28 22:32:53 PDT --- In (A), the segfault is happening in SwitchStatement::semantic(Scope*) [statement.c:3101], from attempting to dereference a null pointer (body = body->semantic(sc); where body==NULL). Looks like the body is null because it was an invalid switch mixin, but for some reason the compiler didn't catch the syntax error and proceeded to create a SwitchStatement with a NULL body. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 29, 2013 [Issue 8795] mixing in "switch" or "interface;" makes dmd segfault | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nils | http://d.puremagic.com/issues/show_bug.cgi?id=8795 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from hsteoh@quickfur.ath.cx 2013-08-29 08:02:05 PDT --- https://github.com/D-Programming-Language/dmd/pull/2504 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 30, 2013 [Issue 8795] mixing in "switch" or "interface;" makes dmd segfault | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nils | http://d.puremagic.com/issues/show_bug.cgi?id=8795 --- Comment #3 from github-bugzilla@puremagic.com 2013-08-30 02:42:22 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2d0de85d28e1d953f7590ea6888bc6a12c25bd35 Merge pull request #2504 from quickfur/issue8795 Fix issue 8795: segfault on mixin("switch") and mixin("interface;") -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 30, 2013 [Issue 8795] mixing in "switch" or "interface;" makes dmd segfault | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nils | http://d.puremagic.com/issues/show_bug.cgi?id=8795 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation