Bug 7377 – Compiler segfault in: TemplateMixin::hasPointers()

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-27T03:41:00Z
Last change time
2015-06-09T05:13:46Z
Assigned to
nobody
Creator
dlang

Attachments

IDFilenameSummaryContent-TypeSize
10700001-test-members-actually-exist.patchFixes this bug entirely... dereference of null.text/plain691

Comments

Comment #0 by dlang — 2012-01-27T03:41:27Z
Using the latest built dmd/phobos/druntime code from git I get a compiler core dump: Core was generated by `dmd -I../.. -g -debug -od../.obj -of../.obj/variant common.d variant.d ../teg/s'. Program terminated with signal 11, Segmentation fault. #0 0x00000000004f7a2f in TemplateMixin::hasPointers() () (gdb) bt #0 0x00000000004f7a2f in TemplateMixin::hasPointers() () #1 0x000000000050cc0e in ClassDeclaration::toObjFile(int) () #2 0x00000000004a024f in Module::genobjfile(int) () #3 0x0000000000403c4f in main () I'm trying to build a minimal test case. dmd 2.047 has other compilation segfaults affecting my code, I'm a little worried I'll never be able to build my code with any D compiler above 2.046 again ;)
Comment #1 by dlang — 2012-01-28T10:41:17Z
Sorry meant 2.056. I fixed it... have a patch.
Comment #2 by dlang — 2012-01-28T10:42:42Z
Created attachment 1070 Fixes this bug entirely... dereference of null.
Comment #3 by github-bugzilla — 2012-01-28T12:49:33Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1faafe155a3b80c4dfcee923f6312dc4f29cc9e7 Merge pull request #649 from nuisanceofcats/master Fix issue 7377, compiler segfault via null pointer dereference
Comment #4 by github-bugzilla — 2012-01-28T12:54:07Z
Comment #5 by hoganmeier — 2012-01-28T14:27:29Z
I really wonder why members is NULL.