[M3devel] cm3ide crash

Jay K jay.krell at cornell.edu
Fri Jul 17 14:28:58 CEST 2009


I used cm3ide for a few minutes.
I had to add BUILD_DIR explicitly to cm3.cfg. "Normally" (when compiling) it is constructed in a roundabout fashion by running the code.
 See m3-sys/cminstall/src/config-no-install/cm3.cfg for the config file I usually use.

Clicking on the examples link:

(gdb) r
Starting program: /cm3/bin/cm3ide 
warning: posix_spawn failed, trying execvp, error: 86
CAUTION:  PKG_USE not defined in cm3.cfg, constructed it from cm3.cfg path as:  /cm3/pkg
CAUTION:  DOC_INSTALL not defined in cm3.cfg, constructed it from package root as:  /cm3/doc
NOTICE:  Unable to locate 'examples' folder.
Recovering user state from /Users/jay/proj/CM3_IDE.cfg0
calling start_browser(http://localhost:3800/)
/Applications/Firefox.app/Contents/MacOS/firefox http://localhost:3800/
starting TCP service
Scanning Packages: Jul 17 05:15...
?? b32e8e57 == cfe61f3f        [Jay] Is this a problem?
scan done: Jul 17 06:27

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
[Switching to process 23997 thread 0x2703]
0x000000010012d3d9 in Text__Length (M3_Bd56fi_t=0x0) at ../src/text/Text.m3:16
16        t.get_info (i);
(gdb) bt
#0  0x000000010012d3d9 in Text__Length (M3_Bd56fi_t=0x0) at ../src/text/Text.m3:16
#1  0x00000001000c4d22 in Pathname__Absolute (M3_Bd56fi_pn=0x0) at ../src/os/POSIX/PathnamePosix.m3:65
#2  0x00000001000c3c8d in FS__Iterate (M3_Bd56fi_pn=0x0) at ../src/os/POSIX/FSPosix.m3:243
#3  0x0000000100042713 in Roots__ScanExamples (M3_AnO5JK_self=0x100c72a78) at ../src/nodes/Roots.m3:1018
#4  0x0000000100042338 in Roots__ExamplesRootPage (M3_AnO5JK_self=0x100c72a78, M3_Ah9VqA_wx=0x101800018, M3_DLS2Hj_action=1, M3_AJUDqH_data=0x0) at ../src/nodes/Roots.m3:996
#5  0x000000010005abc0 in WebServer__ProcessRequest (M3_Bd56fi_cmd=0x100ce4c38, M3_Ah9VqA_wx=0x101800018) at ../src/misc/WebServer.m3:325
#6  0x000000010001e688 in TCPServer (M3_D2z1aq_self=0x100c541e8) at ../src/server/TCPServer.m3:116
#7  0x000000010011b52a in ThreadPThread__RunThread (M3_CgoaiZ_me=0x100d02270) at ../src/thread/PTHREAD/ThreadPThread.m3:547
#8  0x000000010011b1b6 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x100d02270) at ../src/thread/PTHREAD/ThreadPThread.m3:523
#9  0x00007fff82a66deb in _pthread_start ()
#10 0x00007fff82a66cad in thread_start ()

There are other problems.
It prompted me for my browser.

On a Mac, it could offer choices like:

jaypro:cm3ide jay$ find /Applications | grep -i fox$
/Applications/Firefox.app/Contents/MacOS/firefox

jaypro:cm3ide jay$ find /Applications | grep -i fari$
/Applications/Safari.app/Contents/MacOS/Safari

if they exist.
Of course I should try Opera and whatever else and report their paths.

I had to close any existing Firefox, else I got an error that only one Firefox can run at a time.
The error came from Firefox, not cm3ide.

For the prompt for editor, I grant there may be too many options to offer.
I use TextWrangler, which provides /usr/bin/edit.
It's not very good, but it is the best I have found on the Mac.
  (Visual C++ 5.0 is the best editor I have ever used by far; I use it every day; I'll try it in VMware.)
A popular one might be:
/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
or arch -i386 /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
It crashed the first time I ran it but seemed ok after that.

 - Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090717/5b130c93/attachment-0001.html>


More information about the M3devel mailing list