[Issue 18941] New: Memory corruption when using a mixin template
https://issues.dlang.org/show_bug.cgi?id=18941 Issue ID: 18941 Summary: Memory corruption when using a mixin template Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: b2.t...@gmx.com Created attachment 1701 --> https://issues.dlang.org/attachment.cgi?id=1701&action=edit to be run with dub as a single file package The bug happens in libdparse. When a specific version identifier is passed to DMD, a template mixin is used to trace entering and leaving of a function. In a particular function (parseType2()) this causes data corruption, which is known for being responsible of false positives in the dlang CI based on D-Scanner (LHS and RHS identical in phobos typecons.d). Unfortunately, the problem is not reduced at all. The source file provided will just tells if the bug is fixed or not. Run "dub bug.d" to see the assertion failure. Remove the "versions" line from the DUB recipe to see that without the trace code data are not corrupted and the assertion passes. --
[Issue 18940] [std.net.curl]Can't run examples on page. cannot implicitly convert expression ... `char[]` to `string`
https://issues.dlang.org/show_bug.cgi?id=18940 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --- Comment #1 from Seb --- Fix: https://github.com/dlang/phobos/pull/6540 --
[Issue 18940] New: [std.net.curl]Can't run examples on page. cannot implicitly convert expression ... `char[]` to `string`
https://issues.dlang.org/show_bug.cgi?id=18940 Issue ID: 18940 Summary: [std.net.curl]Can't run examples on page. cannot implicitly convert expression ... `char[]` to `string` Product: D Version: D2 Hardware: x86_64 URL: http://dlang.org/phobos/ OS: Linux Status: NEW Severity: minor Priority: P3 Component: phobos Assignee: nob...@puremagic.com Reporter: kyle.siefr...@verizon.net import std.net.curl; // Two requests below will do the same. string content; // Explicit connection provided content = get!HTTP("dlang.org"); // Guess connection type by looking at the URL content = get!AutoProtocol("ftp://foo.com/file";); // and since AutoProtocol is default this is the same as content = get("ftp://foo.com/file";); // and will end up detecting FTP from the url and be the same as content = get!FTP("ftp://foo.com/file";); get's output fails to convert to strings. output from compiler onlineapp.d(8): Error: cannot implicitly convert expression `get("dlang.org", opCall())` of type `char[]` to `string` onlineapp.d(11): Error: cannot implicitly convert expression `get("ftp://foo.com/file";, AutoProtocol())` of type `char[]` to `string` onlineapp.d(13): Error: cannot implicitly convert expression `get("ftp://foo.com/file";, AutoProtocol())` of type `char[]` to `string` onlineapp.d(15): Error: cannot implicitly convert expression `get("ftp://foo.com/file";, opCall())` of type `char[]` to `string` output from programmer loud screeching noises and expletives. --
[Issue 18870] Link failure only with -allinst for code in isExpression
https://issues.dlang.org/show_bug.cgi?id=18870 --- Comment #2 from Simon Arneaud --- Because the isExpression code isn't being used at runtime, I've been working around the problem with hacks like this. (Not pretty, but at least it stops the bug from being a blocker.) pragma(mangle, "_D3std6format__T11hasToStringTSQBd8datetime4date9TimeOfDayTaZ9__lambda2MFZ1S3putMFNaNbNiNfaZv") void bug18870kludge1(char c) { import logger = std.experimental.logger; logger.fatal("https://issues.dlang.org/show_bug.cgi?id=18870";); } --
[Issue 18884] getSymbolsByUDA fails on AliasSeq members
https://issues.dlang.org/show_bug.cgi?id=18884 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18884] getSymbolsByUDA fails on AliasSeq members
https://issues.dlang.org/show_bug.cgi?id=18884 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/8db8debe32576b3e0207e3b7c7ad7fd473d874a9 Fix issue 18884 - getSymbolsByUDA fails on AliasSeq members https://github.com/dlang/phobos/commit/300bb9cd550edb03980fcb46a23b7403c4e85519 Merge pull request #6518 from Biotronic/Issue-18884 Fix issue 18884 - getSymbolsByUDA fails on AliasSeq members --
[Issue 18904] core.internal.string has issues with radix
https://issues.dlang.org/show_bug.cgi?id=18904 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18904] core.internal.string has issues with radix
https://issues.dlang.org/show_bug.cgi?id=18904 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/a10500040709b6a00738ce04fead451ec698a27e Fix issue 18904 - remove possibility of infinite loop or crashes from core.internal.string functions. https://github.com/dlang/druntime/commit/1d72cc43467bf3ceb1aa9cf837313a2d0f83ea2b Merge pull request #2192 from schveiguy/fixnumdigits Fix issue 18904 - remove possibility of infinite loop or crashes from --
[Issue 18822] [REG 2.080.0] Compiling byGrapheme Fails
https://issues.dlang.org/show_bug.cgi?id=18822 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18822] [REG 2.080.0] Compiling byGrapheme Fails
https://issues.dlang.org/show_bug.cgi?id=18822 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/707c50b90c0799aa642bf530c8b35fe237ab5052 Fix Issue 18822 - Compiling byGrapheme Fails https://github.com/dlang/phobos/commit/0b15d73d6b60c71c1f98f38b1db9340564b5 Merge pull request #6493 from JackStouffer/issue18822 Fix Issue 18822 - Compiling byGrapheme Fails --
[Issue 17819] static foreach segfaults on __traits(allMembers)
https://issues.dlang.org/show_bug.cgi?id=17819 --- Comment #9 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ebbd8e92b61bcf05df443b62deeff0786581067c fix Issue 17819 - static foreach segfaults on __traits(allMembers) https://github.com/dlang/dmd/commit/b625e01f4464768d0e7b1b8119d8f6ca3543efa1 Merge pull request #8213 from tgehr/fix17819 fix Issue 17819 - static foreach segfaults on __traits(allMembers) merged-on-behalf-of: Razvan Nitu --
[Issue 17968] [REG 2.073] object initializer omitted when it should be included.
https://issues.dlang.org/show_bug.cgi?id=17968 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18819] DMD compilation crash
https://issues.dlang.org/show_bug.cgi?id=18819 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b8f3b7a9f1e33d3c130a04e1459ca601cad7127a Fix Issue 18871 & 18819 - DMD illegal hardware instruction crash https://github.com/dlang/dmd/commit/d2d7cc1cc847b7fc9e762924f4ab584474b6219f Merge pull request #8260 from JinShil/fix_18871 Fix Issue 18871 & 18819 - DMD illegal hardware instruction crash merged-on-behalf-of: Jacob Carlborg --
[Issue 18902] -lib crashes on static libraries in the command line
https://issues.dlang.org/show_bug.cgi?id=18902 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 17819] static foreach segfaults on __traits(allMembers)
https://issues.dlang.org/show_bug.cgi?id=17819 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18211] Access violation when generating JSON on static foreach
https://issues.dlang.org/show_bug.cgi?id=18211 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18819] DMD compilation crash
https://issues.dlang.org/show_bug.cgi?id=18819 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18902] -lib crashes on static libraries in the command line
https://issues.dlang.org/show_bug.cgi?id=18902 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/cf5256b4eac7fd663aa1a8dd31f1e1b87389e0f0 Fix issue 18902 - -lib crashes on static libraries in the command line https://github.com/dlang/dmd/commit/0a7769b1a964442fb9d4deb1665e26cfe4719e32 Merge pull request #8286 from belka-ew/fix18902 Fix issue 18902 - -lib crashes on static libraries in the command line merged-on-behalf-of: Martin Nowak --
[Issue 18115] [REG2.078-b1] case where && is not shortcut anymore in CTFE
https://issues.dlang.org/show_bug.cgi?id=18115 --- Comment #19 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/30d5c4b3028d827c285a8bec682ed1acc69e1a57 fix Issue 18115 - [REG2.078-b1] case where && is not shortcut anymore in CTFE https://github.com/dlang/dmd/commit/206ac0c195271cda5aa766aee25045874bb94629 Merge pull request #8259 from WalterBright/fix18115 fix Issue 18115 - [REG2.078-b1] case where && is not shortcut anymore… merged-on-behalf-of: Walter Bright --
[Issue 18871] DMD "illegal hardware instruction" crash
https://issues.dlang.org/show_bug.cgi?id=18871 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b8f3b7a9f1e33d3c130a04e1459ca601cad7127a Fix Issue 18871 & 18819 - DMD illegal hardware instruction crash https://github.com/dlang/dmd/commit/d2d7cc1cc847b7fc9e762924f4ab584474b6219f Merge pull request #8260 from JinShil/fix_18871 Fix Issue 18871 & 18819 - DMD illegal hardware instruction crash merged-on-behalf-of: Jacob Carlborg --
[Issue 17968] [REG 2.073] object initializer omitted when it should be included.
https://issues.dlang.org/show_bug.cgi?id=17968 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/6fefecf21994bab869e2f281a4d2815a6884117a Fix issue 17968 - When generating xtoHash function for a struct, use typeid(const(Object)) for class members instead of the derived type to avoid pulling in ungenerated symbols https://github.com/dlang/dmd/commit/c69c5663d0a035ee1aacc1a1201a6de5ae6c25a4 Merge pull request #8222 from schveiguy/fix17968 Fix issue 17968 - Use typeid(Object) instead of typeid(T) to avoid pulling in unused symbols merged-on-behalf-of: unknown --
[Issue 18211] Access violation when generating JSON on static foreach
https://issues.dlang.org/show_bug.cgi?id=18211 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7736eb59fe766d3c59720f070bf86cfe4bf7f584 fix Issue 18211 - Access violation when generating JSON on static foreach https://github.com/dlang/dmd/commit/1108825f71587d036f1c26ece61b0b44968b9f88 Merge pull request #8214 from tgehr/fix18211 fix Issue 18211 - Access violation when generating JSON on static foreach --
[Issue 18939] New: Wrong order slice lengths in array length mismatch error message
https://issues.dlang.org/show_bug.cgi?id=18939 Issue ID: 18939 Summary: Wrong order slice lengths in array length mismatch error message Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: l...@luismarques.eu I was confused by this message: a[x..y] = b[]; object.Error@(0): Array lengths don't match for copy: 3932160 != 1310720 I looked around wondering how the heck x..y had become 3932160, only to realize that the order of "3932160 != 1310720" doesn't match the order of a[] = b[], it's the other way around. It seems to me like printing the lengths in the same order as the source code assignment would make more intuitive sense. --
[Issue 18938] Dmd segfault when compiling this dub package in test release
https://issues.dlang.org/show_bug.cgi?id=18938 Roman changed: What|Removed |Added Severity|critical|regression --
[Issue 18938] Dmd segfault when compiling this dub package in test release
https://issues.dlang.org/show_bug.cgi?id=18938 --- Comment #2 from Roman --- Can't reproduce on 2.079.0. So the issue can be marked as regression. --
[Issue 18938] Dmd segfault when compiling this dub package in test release
https://issues.dlang.org/show_bug.cgi?id=18938 --- Comment #1 from Roman --- Created attachment 1700 --> https://issues.dlang.org/attachment.cgi?id=1700&action=edit Dustmite result I added the reduced result produced by dustmite that can be run without dub: dmd -c icontheme-test-library.o -release -inline -Isource/ -main source/icontheme/cache.d source/icontheme/file.d source/icontheme/lookup.d source/icontheme/package.d --
[Issue 18874] Add thatneedle.com to organizations using D
https://issues.dlang.org/show_bug.cgi?id=18874 --- Comment #4 from m...@thatneedle.com --- Thank you. --
[Issue 18937] [REG 2.080.0] std.experimental.allocator: compiling `make` needs an unreasonable amount of memory for structs that contain static arrays
https://issues.dlang.org/show_bug.cgi?id=18937 --- Comment #1 from ag0aep6g --- (In reply to ag0aep6g from comment #0) > I'm looking into fixing this there. Pull request: https://github.com/dlang/phobos/pull/6537 --
[Issue 18938] New: Dmd segfault when compiling this dub package in test release
https://issues.dlang.org/show_bug.cgi?id=18938 Issue ID: 18938 Summary: Dmd segfault when compiling this dub package in test release Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: freeslav...@gmail.com Running dub test --build=release on this dub package https://github.com/FreeSlave/icontheme/tree/6ad7252f82b1d21c43b29ef6942eeaea0b346ab7 leads to dmd segmentation fault Backtrace: #0 0x00745489 in toObjFile(Dsymbol*, bool) () #1 0x00734b7e in genObjFile(Module*, bool) () #2 0x0069219b in dmd.mars.tryMain(ulong, const(char)**) () #3 0x00692eff in D main () --
[Issue 18937] New: [REG 2.080.0] std.experimental.allocator: compiling `make` needs an unreasonable amount of memory for structs that contain static arrays
https://issues.dlang.org/show_bug.cgi?id=18937 Issue ID: 18937 Summary: [REG 2.080.0] std.experimental.allocator: compiling `make` needs an unreasonable amount of memory for structs that contain static arrays Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: phobos Assignee: nob...@puremagic.com Reporter: ag0ae...@gmail.com test.d: import std.experimental.allocator: make; @safe unittest { static struct S { version (small) ubyte[1024] data; else version (large) ubyte[4 * 1024] data; else version (vlarg) ubyte[16 * 1024] data; else static assert(false); } static struct SomeAllocator { ubyte[] allocate(size_t) { return []; } void deallocate(void[]) {} } auto x = SomeAllocator().make!S(); } With 2.079.1, all three versions compile quickly, and DMD needs about 40 MiB of memory for all of them. With 2.080.0, compilation needs an unreasonable amount of time and memory. The vlarg version exceeds 4 GiB and 1 minute. `for dmd in dmd2.079 dmd2.080; do for v in -version=small -version=large -version=vlarg; do /usr/bin/time -f "$dmd $v: time: %E, memory: %M KiB" $dmd -c -unittest $v test.d; done; done`: dmd2.079 -version=small: time: 0:00.12, memory: 40272 KiB dmd2.079 -version=large: time: 0:00.11, memory: 40368 KiB dmd2.079 -version=vlarg: time: 0:00.12, memory: 40920 KiB dmd2.080 -version=small: time: 0:00.43, memory: 133276 KiB dmd2.080 -version=large: time: 0:04.52, memory: 1342532 KiB Error: out of memory Command exited with non-zero status 1 dmd2.080 -version=vlarg: time: 1:29.09, memory: 3713344 KiB The culprit seems to be std.experimental.allocator.common.isAllZeroBits. I'm looking into fixing this there. --
[Issue 18932] core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer
https://issues.dlang.org/show_bug.cgi?id=18932 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18932] core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer
https://issues.dlang.org/show_bug.cgi?id=18932 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/a66bf90b88dfd5587d6f020d5bf4225f2784190a Fix Issue 18932 - core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer https://github.com/dlang/druntime/commit/52f2367ba84227f9701de2df6b82f9e97257f0c1 Merge pull request #2202 from n8sh/core-hash-18932 Fix Issue 18932 - core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer merged-on-behalf-of: Sebastian Wilzbach --
[Issue 18869] Add Jumia Food to organizations using D
https://issues.dlang.org/show_bug.cgi?id=18869 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/71bb6258fbfd409ae0ef6ce3198c8fcce282b973 Fix Issue 18869 - Add Jumia Food to organizations using D https://github.com/dlang/dlang.org/commit/5bc12fab430a0ec79b3610f99ce5a358c994d4b5 Merge pull request #2373 from wilzbach/jumia Fix Issue 18869 - Add Jumia Food to organizations using D merged-on-behalf-of: Rainer Schuetze --
[Issue 18869] Add Jumia Food to organizations using D
https://issues.dlang.org/show_bug.cgi?id=18869 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18874] Add thatneedle.com to organizations using D
https://issues.dlang.org/show_bug.cgi?id=18874 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/a80fb11e47f26291e49bdd48e5189fafaeee2266 Fix Issue 18874 - Add thatneedle.com to organizations using D https://github.com/dlang/dlang.org/commit/894101e8523a19045b9d21b3eaadaf9168cd7c7b Merge pull request #2374 from wilzbach/thatneddle Fix Issue 18874 - Add thatneedle.com to organizations using D merged-on-behalf-of: Rainer Schuetze --
[Issue 18874] Add thatneedle.com to organizations using D
https://issues.dlang.org/show_bug.cgi?id=18874 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18924] Use addition rather than XOR for order-independent hash combination
https://issues.dlang.org/show_bug.cgi?id=18924 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 18924] Use addition rather than XOR for order-independent hash combination
https://issues.dlang.org/show_bug.cgi?id=18924 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/dd8bbc7aab50a77bbd49db1c4f90aaa72a4c155c Fix Issue 18924 - Use addition rather than XOR for order-independent hash combination https://github.com/dlang/druntime/commit/fa946dbd8a4e69a4cc06ed7b8311e017f8ea17e4 Merge pull request #2199 from n8sh/core-hash-18924 Fix Issue 18924 - Use addition rather than XOR for order-independent hash combination --
[Issue 18874] Add thatneedle.com to organizations using D
https://issues.dlang.org/show_bug.cgi?id=18874 --- Comment #2 from m...@thatneedle.com --- Hey, Looks good. Thanks for looking into this. --