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

debug+release failed #4570

Closed
funny-falcon opened this issue Jun 14, 2017 · 1 comment
Closed

debug+release failed #4570

funny-falcon opened this issue Jun 14, 2017 · 1 comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler

Comments

@funny-falcon
Copy link
Contributor

Ubuntu 17.04
Using /usr/bin/llvm-config-3.8 [version=3.8.1]

~/Project/crystal$ echo 'puts 1' >> one.cr
~/Project/crystal$ bin/crystal build --debug --release one.cr
Using compiled compiler at `.build/crystal'
Invalid memory access (signal 11) at address 0x1c
[0x564f929ce105] *CallStack::print_backtrace:Int32 +117
[0x564f929a9c0d] __crystal_sigfault_handler +61
[0x564f94817147] sigfault_handler +40
[0x7f448438a670] ???
[0x564f93d441b7] _ZNK4llvm3DIE13getUnitOrNullEv +23
[0x564f93d48310] _ZN4llvm10DwarfDebug25finishVariableDefinitionsEv +96
[0x564f93d4a06d] _ZN4llvm10DwarfDebug18finalizeModuleInfoEv +77
[0x564f93d57670] _ZN4llvm10DwarfDebug9endModuleEv +32
[0x564f93d40569] _ZN4llvm10AsmPrinter14doFinalizationERNS_6ModuleE +505
[0x564f94712449] _ZN4llvm13FPPassManager14doFinalizationERNS_6ModuleE +73
[0x564f9471e655] _ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE +869
[0x564f943a42d7] ???
[0x564f943a4564] LLVMTargetMachineEmitToFile +228
[0x564f9360962b] *LLVM::TargetMachine#emit_to_file<LLVM::Module, String, LLVM::CodeGenFileType>:Bool +91
[0x564f936095be] *LLVM::TargetMachine#emit_obj_to_file<LLVM::Module, String>:Bool +46
[0x564f9373bf4e] *Crystal::Compiler::CompilationUnit#compile:(LLVM::Module | Nil) +878
[0x564f93638aaf] *Crystal::Compiler#codegen<Crystal::Program, Array(Crystal::Compiler::CompilationUnit), String, String>:Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) +591
[0x564f93637e2c] *Crystal::Compiler#codegen<Crystal::Program, Crystal::ASTNode+, Array(Crystal::Compiler::Source), String>:(Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) | Nil) +1164
[0x564f9363a303] *Crystal::Compiler#compile<Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result +179
[0x564f9376d939] *Crystal::Command::CompilerConfig#compile<String>:Crystal::Compiler::Result +57
[0x564f9376d8e2] *Crystal::Command::CompilerConfig#compile:Crystal::Compiler::Result +34
[0x564f92af6862] *Crystal::Command#build:Crystal::Compiler::Result +290
[0x564f92af5b64] *Crystal::Command#run:(Bool | Crystal::Compiler::Result | IO::FileDescriptor | Nil) +548
[0x564f92af587b] *Crystal::Command::run<Array(String)>:(Bool | Crystal::Compiler::Result | IO::FileDescriptor | Nil) +27
[0x564f92af5839] *Crystal::Command::run:(Bool | Crystal::Compiler::Result | IO::FileDescriptor | Nil) +25
[0x564f929912a0] ???
[0x564f929a9a99] main +41
[0x7f448350e3f1] __libc_start_main +241
[0x564f9299038a] _start +42
[0x0] ???

Using /usr/bin/llvm-config-3.9 [version=3.9.1]

~/Project/crystal$ bin/crystal -v
Using compiled compiler at `.build/crystal'
Crystal 0.22.0+132 [526837e80] (2017-06-15) LLVM 3.9.1
~/Project/crystal$ bin/crystal build --debug --release one.cr                                                                                                                                        
Using compiled compiler at `.build/crystal'
Invalid memory access (signal 11) at address 0x1c
[0x55e3f7793055] *CallStack::print_backtrace:Int32 +117
[0x55e3f776e04d] __crystal_sigfault_handler +61
[0x55e3f861f8f7] sigfault_handler +40
[0x7fb6c323c670] ???
[0x7fb6c43e4857] _ZNK4llvm3DIE13getUnitOrNullEv +23
[0x7fb6c43f90d0] _ZN4llvm10DwarfDebug25finishVariableDefinitionsEv +96
[0x7fb6c43f91c8] _ZN4llvm10DwarfDebug18finalizeModuleInfoEv +72
[0x7fb6c4405776] _ZN4llvm10DwarfDebug9endModuleEv +38
[0x7fb6c43dafd0] _ZN4llvm10AsmPrinter14doFinalizationERNS_6ModuleE +512
[0x7fb6c3f68da9] _ZN4llvm13FPPassManager14doFinalizationERNS_6ModuleE +73
[0x7fb6c3f74f95] _ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE +869
[0x7fb6c4c22d47] ???
[0x7fb6c4c22fd4] LLVMTargetMachineEmitToFile +228
[0x55e3f83d27ab] *LLVM::TargetMachine#emit_to_file<LLVM::Module, String, LLVM::CodeGenFileType>:Bool +91
[0x55e3f83d273e] *LLVM::TargetMachine#emit_obj_to_file<LLVM::Module, String>:Bool +46
[0x55e3f850b39e] *Crystal::Compiler::CompilationUnit#compile:(LLVM::Module | Nil) +878
[0x55e3f8401c2f] *Crystal::Compiler#codegen<Crystal::Program, Array(Crystal::Compiler::CompilationUnit), String, String>:Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) +591
[0x55e3f8400fac] *Crystal::Compiler#codegen<Crystal::Program, Crystal::ASTNode+, Array(Crystal::Compiler::Source), String>:(Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) | Nil) +1164
[0x55e3f8403483] *Crystal::Compiler#compile<Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result +179
[0x55e3f853cd89] *Crystal::Command::CompilerConfig#compile<String>:Crystal::Compiler::Result +57
[0x55e3f853cd32] *Crystal::Command::CompilerConfig#compile:Crystal::Compiler::Result +34
[0x55e3f78bf9e2] *Crystal::Command#build:Crystal::Compiler::Result +290
[0x55e3f78bece4] *Crystal::Command#run:(Bool | Crystal::Compiler::Result | IO::FileDescriptor | Nil) +548
[0x55e3f78be9fb] *Crystal::Command::run<Array(String)>:(Bool | Crystal::Compiler::Result | IO::FileDescriptor | Nil) +27
[0x55e3f78be9b9] *Crystal::Command::run:(Bool | Crystal::Compiler::Result | IO::FileDescriptor | Nil) +25
[0x55e3f775568f] ???
[0x55e3f776ded9] main +41
[0x7fb6c25dc3f1] __libc_start_main +241
[0x55e3f775475a] _start +42
[0x0] ???

System has other installed version

$ crystal -v
Crystal 0.22.0 [3c71228] (2017-04-20) LLVM 3.5.0
@mverzilli mverzilli added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler labels Jun 15, 2017
@asterite
Copy link
Member

This seems to be fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler
Projects
None yet
Development

No branches or pull requests

3 participants