praveenvvstgy / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Segmentation fault helloc.crk on Mac OSX #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
$ crack hello.crk   

What is the expected output? What do you see instead?
I get a segmentation fault. Running gdb I get the following stack trace:
➜  example git:(master) ✗ gdb --args crack hello.crk   
GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug  5 03:00:42 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared 
libraries ..... done

(gdb) r
Starting program: /usr/local/bin/crack hello.crk
warning: Tried to remove a non-existent library: 
/Users/christophe/crack/crack-language/build/lib/libCrackDebugTools.1.0.0.dylib
Reading symbols for shared libraries ++++............................. done
Reading symbols for shared libraries .. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000002123be8
0x0000000101202ff9 in ?? ()
(gdb) bt
#0  0x0000000101202ff9 in ?? ()
#1  0x000000010014b06d in builder::mvll::LLVMJitBuilder::doRunOrDump ()
#2  0x000000010014af1f in builder::mvll::LLVMJitBuilder::innerCloseModule ()
#3  0x0000000100150715 in builder::mvll::BJitModuleDef::recursiveClose ()
#4  0x000000010014d793 in builder::mvll::BJitModuleDef::closeOrDefer ()
#5  0x000000010014b133 in builder::mvll::LLVMJitBuilder::closeModule ()
#6  0x0000000100090aa3 in model::ModuleDef::close ()
#7  0x000000010003ba31 in model::Construct::parseModule ()
#8  0x000000010003b6eb in model::Construct::getModule ()
#9  0x00000001000a413e in parser::Parser::parseImportStmt ()
#10 0x00000001000a5f64 in parser::Parser::parseStatement ()
#11 0x00000001000ace28 in parser::Parser::parseBlock ()
#12 0x00000001000bf376 in parser::Parser::parse ()
#13 0x000000010003ba1f in model::Construct::parseModule ()
#14 0x000000010003df38 in model::Construct::runScript ()
#15 0x00000001001c36fd in Crack::runScript ()
#16 0x0000000100003434 in main ()
(gdb) 

What version of the product are you using? On what operating system?
The latests version from master branch: 
https://github.com/weyrick/crack-language.git
On Mac OS X 10.8.2 

I built crack with CMake, where can I go from here to solve this issue?

Original issue reported on code.google.com by christop...@gmail.com on 26 Dec 2012 at 8:43

GoogleCodeExporter commented 9 years ago
The OS/X port is still a work in progress (in fact, I believe it is currently 
blocked on this very issue).

BTW, please let us know if you're interested in helping out, a fresh pair of 
eyes on this would be helpful.

Original comment by mind...@gmail.com on 8 Jan 2013 at 2:34