Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeatable crash with vague error message #837

Closed
liamwhite opened this issue Feb 3, 2015 · 2 comments
Closed

repeatable crash with vague error message #837

liamwhite opened this issue Feb 3, 2015 · 2 comments
Assignees
Labels

Comments

@liamwhite
Copy link

…not sure what else to call it, the abort message isn't giving much context.
Steps:

  1. $ git clone https://github.com/liamwhite/dgeom.git
  2. $ cd dgeom
  3. $ git reset --hard 44474033
  4. $ dub test --compiler=ldc2

Output:

$ dub test --compiler=ldc2
Generating test runner configuration '__test__library__' for 'library' (library).
Building dgeom ~master configuration "__test__library__", build type unittest.
Running ldc2...
Stored value type does not match pointer operand type!
  store [4 x %geom.point.Point]* %1, [4 x %geom.point.Point]* %5, !dbg !5781
 [4 x %geom.point.Point]LLVM ERROR: Broken function found, compilation aborted!
FAIL .dub/build/__test__library__-unittest-linux.posix-x86_64-ldc_0-A932BA27B3129F8BBAE87769E6F7DCDA/ __test__library__ executable
Error executing command test:
ldc2 failed with exit code 1.

Expected output:

$ dub test --compiler=dmd
Generating test runner configuration '__test__library__' for 'library' (library).
Building dgeom ~master configuration "__test__library__", build type unittest.
Compiling using dmd...
Linking...
Running ./__test__library__ 
All unit tests have been run successfully.

LDC Version:

$ ldc2 --version
LDC - the LLVM D compiler (0.15.1):
  based on DMD v2.066.1 and LLVM 3.5.0
  Default target: x86_64-unknown-linux-gnu
  Host CPU: core-avx2
  http://dlang.org - http://wiki.dlang.org/LDC
$ uname -a
Linux liam-Desktop 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release | grep DESC
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
@redstar
Copy link
Member

redstar commented Feb 7, 2015

Confirmed. The simple way to reproduce it to replace step 4 with

cd source
ldc2 -c geom/bezier_fitting.d

@redstar redstar self-assigned this Feb 28, 2015
@redstar
Copy link
Member

redstar commented Feb 28, 2015

Fixed in master.

@redstar redstar closed this as completed Feb 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants