JR
JR
Better backtrace with line numbers. ``` $ dub run dscanner -- -S --skipTests source Building package dscanner in /home/zorael/.dub/packages/dscanner-0.11.0/dscanner/ Running pre-generate commands for dscanner... Performing "debug" build using /usr/bin/dmd for...
Example task manager screenshot: http://i.imgur.com/15r4u.png ([kernel memory deduplication](http://kerneldedup.org/projects/uksm/download) is awesome.)
Disclaimer: I did not look at the source. Is `--annotate` fully implemented? In many cases it seems ignored outright. Trying with the various dub verbs: * `run`: silently exits, outputs...
Reduced: ```d void foo() { with (bar) mixin Baz; } ``` ``` $ dub run dscanner -- -S foo.d [...] Running ../home/zorael/.dub/packages/dscanner/0.15.2/dscanner/bin/dscanner -S foo.d core.exception.AssertError@/home/zorael/.dub/packages/dcd/0.16.0-beta.2/dcd/dsymbol/src/dsymbol/conversion/second.d(515): How did this happen? ```
That works for me!
If you don't want to change the header too much, then maybe just for `postContent`? (assuming argument `isSomeString`) Then it'd just work (with services returning 411) for people who don't...
There seems to have been some compiler change in dmd 2.101, released Nov 2022. Tests successfully complete with 2.100.2 but fail with 2.101.2. ```sh $ mkdir -p ~/dlang && wget...
It can technically break things that take the address of the function. I'm honestly not sure what the use-case for that would be though. ```d struct Foo { static string...
It seems to give the same error. ``` $ ASAN_OPTIONS=detect_stack_use_after_return=0 ldc -fsanitize=address -run test.d AddressSanitizer:DEADLYSIGNAL ================================================================= ==370888==ERROR: AddressSanitizer: stack-overflow on address 0x7e80f2996d48 (pc 0x7e80f3048cd3 bp 0x7e80f2997590 sp 0x7e80f2996d50 T0) #0...
Sure: ``` $ ldc -fsanitize=address test.d $ ASAN_OPTIONS=detect_stack_use_after_return=0 ./test AddressSanitizer:DEADLYSIGNAL ================================================================= ==395979==ERROR: AddressSanitizer: stack-overflow on address 0x77a708855d48 (pc 0x77a70810bcd3 bp 0x77a708856590 sp 0x77a708855d50 T0) #0 0x77a70810bcd3 in __libc_ns_samename /usr/src/debug/glibc/glibc/resolv/ns_samename.c:30:7 #1...