[Issue 21326] New: Every single executable built with dmd crashes with a segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 18 20:27:32 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21326

          Issue ID: 21326
           Summary: Every single executable built with dmd crashes with a
                    segfault
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: agilbrt at gmail.com

Building and executing even the simplest executable with dmd crashes with a
segfault.

Steps to reproduce

    sh> echo "void main() {}" > dud.d
    sh> dmd dud.d
    sh> ./dud
    zsh: segmentation fault (core dumped)  ./dud

(Note: the core file is never actually dumped.)


This also happens when building with dub.

    sh> dub init dud
    Package recipe format (sdl/json) [json]: sdl
    Name [dud]: 
    Description [A minimal D application.]: 
    Author name [Ant]: 
    License [proprietary]: 
    Copyright string [Copyright © 2020, Ant]: 
    Add dependency (leave empty to skip) []: 
    Successfully created an empty project in '/home/ant/dud'.
    Package successfully created in dud
    sh> cd dud
    sh> dub build
    sh> ./dud
    zsh: segmentation fault (core dumped)  ./dud




% dmd --version
DMD32 D Compiler v2.094.0
Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
written by Walter Bright

% dub --version
DUB version 1.23.0, built on Sep 22 2020

% uname -a
Linux rattle 4.15.0-121-generic #123-Ubuntu SMP Mon Oct 5 16:16:19 UTC 2020
i686 i686 i686 GNU/Linux

--


More information about the Digitalmars-d-bugs mailing list