dlang-community / SDLang-D

An SDLang (Simple Declarative Language) library for D
http://sdlang.org
Other
120 stars 21 forks source link

Application crash on release build #69

Open LunaTheFoxgirl opened 4 years ago

LunaTheFoxgirl commented 4 years ago

An application I'm writing that is using SDLang-D crashes on release builds even though it works in debug builds.

Backtrace from release-debug

#0  0x00005555557efbc0 in _D6object8opEqualsFC6ObjectQiZb ()
#1  0x00005555557d3e08 in _D3std7variant__T8VariantNVmi32TbTAyaTwTiTlTfTdTeTSQBx8datetime4date4DateTS6sdlang5token12DateTimeFracTSQDyQCb7systime7SysTimeTSQCbQBx23DateTimeFracUnknownZoneTS4core4time8DurationTAhTnZQGn__T7handlerTQrZQmFEQHyQHx__TQHsVmi32TbTQHmTwTiTlTfTdTeTQHmTQGsTQFtTQEzTQDwTQDfTQDgZQJv4OpIDPG32hPvZ10tryPuttingFPQEoC8TypeInfoQBeZb (target=0x7ffff43273f0, 
    targetType=0x555555c89c50 <initializer for TypeInfo_n>, src=0x7fffd3c5b160) at /usr/include/dlang/dmd/std/variant.d:320
#2  0x00005555557d39b0 in _D3std7variant__T8VariantNVmi32TbTAyaTwTiTlTfTdTeTSQBx8datetime4date4DateTS6sdlang5token12DateTimeFracTSQDyQCb7systime7SysTimeTSQCbQBx23DateTimeFracUnknownZoneTS4core4time8DurationTAhTnZQGn__T7handlerTQrZQmFEQHyQHx__TQHsVmi32TbTQHmTwTiTlTfTdTeTQHmTQGsTQFtTQEzTQDwTQDfTQDgZQJv4OpIDPG32hPvZl (parm=0x7ffff43273f0, pStore=0x7fffd3c5b130, 
    selector=<incomplete type>) at /usr/include/dlang/dmd/std/variant.d:372
#3  0x00005555557d37c9 in _D3std7variant__T8VariantNVmi32TbTAyaTwTiTlTfTdTeTSQBx8datetime4date4DateTS6sdlang5token12DateTimeFracTSQDyQCb7systime7SysTimeTSQCbQBx23DateTimeFracUnknownZoneTS4core4time8DurationTAhTnZQGn__T8opAssignTSQHtQHs__TQHnVmi32TbTQHhTwTiTlTfTdTeTQHhTQGnTQFoTQEuTQDrTQDaTQDbZQJqZQDbMFQCwZQDa (this=..., __HID66=0x7fffd3c5b1a0, rhs=...)
    at /usr/include/dlang/dmd/std/variant.d:648
#4  0x00005555557d3666 in _D6sdlang5token5Token8opAssignMFNcNjSQBjQBfQBcZQl (this=..., p=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/token.d:466
#5  0x00005555557c6ead in sdlang.lexer.Lexer.lexIdentKeyword() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/lexer.d:184
#6  0x00005555557c6179 in sdlang.lexer.Lexer.popFront() (this=0x7fffd3c5be08) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/lexer.d:426
#7  0x00005555557e5362 in sdlang.parser.PullParser.parseTag() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:533
#8  0x00005555557e4a1c in sdlang.parser.PullParser.parseTags() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:307
#9  0x00005555557e518c in sdlang.parser.PullParser.parseTag() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:510
#10 0x00005555557e4a1c in sdlang.parser.PullParser.parseTags() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:307
#11 0x00005555557e518c in sdlang.parser.PullParser.parseTag() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:510
#12 0x00005555557e4a1c in sdlang.parser.PullParser.parseTags() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:307
#13 0x00005555557e4543 in sdlang.parser.PullParser.parseRoot() (this=...) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:273
#14 0x00005555557d1199 in sdlang.parser.DOMParser.parseRoot().__lambda1() (__capture=0x7ffff4320660) at /home/clipsey/.dub/packages/sdlang-d-0.10.5/sdlang-d/src/sdlang/parser.d:555
#15 0x00005555558407d6 in core.thread.fiber.Fiber.run() ()
#16 0x00005555558405ff in fiber_entryPoint ()
#17 0x0000000000000000 in ?? ()
Abscissa commented 4 years ago

Crashes on debug-only or release-only almost always indicate a bug in the compiler. But regardless of where the bug is, a reduced test case (including how the compiler is invoked) will be needed to track this down further.

LunaTheFoxgirl commented 4 years ago

Will do asap