Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when build with DMD 2.085 #589

Closed
ghost opened this issue Mar 5, 2019 · 2 comments
Closed

Crash when build with DMD 2.085 #589

ghost opened this issue Mar 5, 2019 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 5, 2019

For example if you try to get the DDOC for the ASTVisitor symbol of dparse:

Program received signal SIGSEGV, Segmentation fault.
0x000000000073cfb7 in _D7dsymbol6scope_5Scope16getSymbolsByNameMNgFSQBs16string_interning14InternedStringZAPNgSQDj6symbol7DSymbol (this=..., 
    name=-4294967295, __name_8=-4294967295) at ../../../../.dub/packages/emsi_containers-0.8.0-alpha.11/emsi_containers/src/containers/ttree.d:243
243                     return Range!(This)(cast(const(Node)*) root, RangeType.equal, value);
Missing separate debuginfos, use: dnf debuginfo-install libgcc-8.2.1-6.fc28.x86_64
(gdb) 
(gdb) bt
#0  0x000000000073cfb7 in _D7dsymbol6scope_5Scope16getSymbolsByNameMNgFSQBs16string_interning14InternedStringZAPNgSQDj6symbol7DSymbol (this=..., 
    name=-4294967295, __name_8=-4294967295) at ../../../../.dub/packages/emsi_containers-0.8.0-alpha.11/emsi_containers/src/containers/ttree.d:243
#1  0x000000000076de4e in dsymbol.conversion.first.FirstPass.visit(const(dparse.ast.ImportDeclaration)) (this=0x7fffffffcc00, importDeclaration=0xc87068)
    at ../../../../.dub/packages/dsymbol-0.6.2/dsymbol/src/dsymbol/conversion/first.d:463
#2  0x00000000007975ad in _D6dparse3ast11Declaration6acceptMxFCQBjQBf10ASTVisitorZv (this=..., visitor=0x7fffffffcc58)
    at ../../../../.dub/packages/libdparse-0.11.4/libdparse/src/dparse/ast.d:1252
#3  0x000000000076c678 in dsymbol.conversion.first.FirstPass.visit(const(dparse.ast.Declaration)) (this=..., dec=0xc87010)
    at ../../../../.dub/packages/dsymbol-0.6.2/dsymbol/src/dsymbol/conversion/first.d:335
#4  0x000000000076c929 in dsymbol.conversion.first.FirstPass.visit(const(dparse.ast.Module)) (this=0x0, mod=0xc87010)
    at ../../../../.dub/packages/libdparse-0.11.4/libdparse/src/dparse/ast.d-mixin-2204:2206
#5  0x0000000000735ece in _D7dsymbol10conversion25generateAutocompleteTreesFAxS3std12experimental5lexer__T14TokenStructureThVAyaa305_0a20202020737472696e6720636f6d6d656e743b0a20202020737472696e6720747261696c696e67436f6d6d656e743b0a0a20202020696e74206f70436d702873697a655f7420692920636f6e73742070757265206e6f7468726---Type <return> to continue, or q <return> to quit---
f77204073616665207b0a202020202020202069662028696e646578203c2069292072657475726e202d313b0a202020202020202069662028696e646578203e2069292072657475726e20313b0a202020202020202072657475726e20303b0a202020207d0a0a20202020696e74206f70436d702872656620636f6e737420747970656f66287468697329206f746865722920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202072657475726e206f70436d70286f746865722e696e646578293b0a202020207d0aZQYoC4stdx9allocator10IAllocatorPS6dparse18rollback_allocator17RollbackAllocatormKSQBEs11modulecache11ModuleCacheZSQBFyQBFu15ScopeSymbolPair (cache=..., cursorPosition=2621, 
    parseAllocator=0x7fffffffce00, symbolAllocator=0x7fffffffd000, tokens=...)
    at ../../../../.dub/packages/dsymbol-0.6.2/dsymbol/src/dsymbol/conversion/first.d:91
#6  0x00000000006f6e8d in _D3dcd6server12autocomplete3doc6getDocFxSQBn6common8messages19AutocompleteRequestKS7dsymbol11modulecache11ModuleCacheZSQEnQDaQCw20AutocompleteResponse (response=0x7fffffffd130, moduleCache=..., request=...) at src/dcd/server/autocomplete/util.d:144
#7  0x0000000000705e9a in _D3dcd6server4main9runServerFAAyaZ13__dgliteral30MFNaNiNfZSQCf6common8messages20AutocompleteResponse (__capture=0x7fffffffd130, 
    __HID88=0x7fffffffd130) at src/dcd/server/main.d:292
#8  0x0000000000706015 in _D3dcd6server4main15trySendResponseFC3std6socket6SocketLSQCd6common8messages20AutocompleteResponseLAyaZv (
    msg=135846693299373334910196368, response=..., 
    __response_8=0x705e60 <_D3dcd6server4main9runServerFAAyaZ13__dgliteral30MFNaNiNfZSQCf6common8messages20AutocompleteResponse>, 
    socket=0xc08a01 <initializer for TypeInfo_PyS3std8datetime8timezone13PosixTimeZone6TTInfo+1>) at src/dcd/server/main.d:321
#9  0x0000000000705796 in dcd.server.main.runServer(immutable(char)[][]) (args=...) at src/dcd/server/main.d:292
#10 0x00000000007045f8 in D main (args=...) at src/dcd/server/main.d:50
@ghost ghost added the bug label Mar 5, 2019
@ghost
Copy link
Author

ghost commented Mar 5, 2019

That's a DMD regression between 2.084.1 and 2.085

@ghost
Copy link
Author

ghost commented Mar 5, 2019

caused by the recent work on GSROA, this commit from this PR, so closing.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants