refu-lang / refu

Refu language
21 stars 4 forks source link

Crashes if not passing input file #42

Closed axic closed 7 years ago

axic commented 7 years ago
$ ./refu 
Segmentation fault: 11
$ lldb ./refu
(lldb) target create "./refu"
runCurrent executable set to './refu' (x86_64).
(lldb) run
Process 95178 launched: './refu' (x86_64)
Process 95178 stopped
* thread #1: tid = 0x157bdf9, 0x00000001000d23fc refu`llvm::LLVMContext::removeModule(llvm::Module*) + 4, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000001000d23fc refu`llvm::LLVMContext::removeModule(llvm::Module*) + 4
refu`llvm::LLVMContext::removeModule:
->  0x1000d23fc <+4>:  movq   (%rdi), %rdi
    0x1000d23ff <+7>:  popq   %rbp
    0x1000d2400 <+8>:  jmp    0x1006e1d76               ; llvm::SmallPtrSetImplBase::erase_imp(void const*)
    0x1000d2405 <+13>: nop    
LefterisJP commented 7 years ago

Thank you, will take a look.