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
Compiling DCD with -singleobj causes segmentation fault #1275
Comments
The stack looks cool. Dieing while trying to print an error message? |
Confirmed. Looks like #1272 fixes it but I am still investigating why. |
Please, could you check if the problem is still present in master? Thanks. |
Built LDC from master, still get the same error when attempting to compile DCD with it. |
Ok, let's see if I can still reproduce it. |
The error message which the code tries to print is: "Error: cannot write object file: bin/dcd-server.o" |
error(Loc(), "cannot write object file: %s",
#if LDC_LLVM_VER >= 306
errinfo
#else but It should be error(Loc(), "cannot write object file: %s",
#if LDC_LLVM_VER >= 306
errinfo.message()
#else
errinfo
#endif
.c_str()); and not just here, but in other places (in the same function, maybe in others too) as well. |
Woops, sorry for the wild goose chase. Looks like I just messed up the command line now that I get an error message due to #1277 Works fine now, thanks for the quick turn-around. |
Glad you did. These bugs aren't easy to come by. :) |
Hi,
When trying to compile DCD with the -singleobj flag turned on the compiler crashes with a segfault. I've tried my OS's LDC installation(0.16.1) and the latest beta release(0.17.0-beta2)
Backtrace:
DCD makefile diff
diff.txt
full output text with -v -vv, warning it's 7.5MiB
log.txt
OS:
Linux x86_64, Arch Linux
The text was updated successfully, but these errors were encountered: