[M3devel] cm3ide crash

Jay K jay.krell at cornell.edu
Sat Jul 18 01:40:41 CEST 2009


I admit I might have increased the problems. I'll try again with my config file fixes.

 

 

Truncated stuff:

 


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.


 

And maybe still CodeWarrior, I can maybe get some paths for it if you want.

And maybe BBEdit, I can try a trial version.

Komodo.

In general of course, many.

 

 - Jay

 


Date: Fri, 17 Jul 2009 13:41:57 -0400
From: rcoleburn at scires.com
To: m3devel at elegosoft.com
Subject: Re: [M3devel] cm3ide crash


Jay:
 
I've not seen the whole of your message yet; I've received multiple truncated copies.
 
Recall that CM3IDE is the open-source version of "Reactor".  Reactor was tightly woven into the CM3 4.1 commercial release.  During the install process, cm3install actually adjusted the cm3.cfg file to reflect the installation location, location of your preferred browser, preferred editor, etc.  I know you don't use cm3install, and you've made changes to the cm3.cfg files, so if some of this stuff isn't going to be there going forward, I need to make adjustments to CM3IDE.
 
When CM3IDE runs, if it doesn't find these variables in the cm3.cfg file, it tries to locate the appropriate stuff, hence the "CAUTION" messages you saw on stdout.  In some cases, it asks the same type question that cm3install would have asked about the editor et al, then saves this information in its configuration file located in the user's home folder.  Once the info is saved, it won't prompt you for it again.
 
The error you are getting about the examples folder is probably due to you not copying this folder into your CM3 tree.  There are README files explaining all this.  If you don't have the examples folder, CM3IDE will still function, except you won't be able to build any of the examples.  The examples are all pretty neat IMO, and CM3IDE actually builds them in your private workspace, so you can edit the sources and play around with them without affecting anyone else who wants to try out the examples.  Each user gets a fresh copy from the examples folder.
 
Not sure about the crash you are reporting, whether it is due to some problem with your cm3.cfg or your installation or just a bug.  I don't experience this crash on Windows, but I have not rebuilt CM3IDE against the latest source tree yet.  Perhaps a recent change to the source tree has impacted CM3IDE.
 
I'm supposed to go rafting and camping this weekend with my son's Boy Scout troop, so I don't think I'll have much time to work on this problem.  If I get back early, I'll try to look at the problem Sunday evening.
 
Regards,
Randy Coleburn

>>> Jay K <jay.krell at cornell.edu> 7/17/2009 8:28 AM >>>

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090717/ca485ec4/attachment-0002.html>


More information about the M3devel mailing list