www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19116] New: dmd compiles binary but segfaults immediately


          Issue ID: 19116
           Summary: dmd compiles binary but segfaults immediately when run
                    on Ubuntu / Debian 32Bit architectures
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alex.braunegg gmail.com

As the current maintainer for the Linux OneDrive client
(https://github.com/abraunegg/onedrive) a number of users are unable to run the
compiled binary when it is compiled and run on 32 bit architectures. 

Examples of runtime failures on various operating systems are:


OS: Lubunti 386


i686 i686 i686 GNU/Linux

The process to build the binary is the same:

sudo apt install build-essential
sudo apt install libcurl4-openssl-dev
sudo apt install libsqlite3-dev
curl -fsS https://dlang.org/install.sh | bash -s dmd
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
source ~/dlang/dmd-2.081.1/activate
sudo make install

With no errors being reported at compilation time. A full stack trace has been
provided here:


When using the exact same process on x86_64, there are no runtime issues on
Ubuntu / Debian platforms.

When the DMD reference compiler is swapped out for LDC on Ubuntu / Debian 32bit
platforms the resulting binary runs without issue.

Any suggestions here would be greatly appreciated.

Jul 25 2018