[R-SIG-Mac] R.app crash report

ap_llywelyn at mac.com ap_llywelyn at mac.com
Sun Dec 5 03:50:08 CET 2004


I was doing some stress tests and came across a handful of issues.

Version: R 2.0.1 downloaded from CRAN, standard install.  Using 3  
December 2004 version of R.app from (  
http://www.rosuda.org/R/nightly/other/R-GUI.dmg ).

All tests done on a 12" PowerBook G4 (original) with 640 MB of RAM.

------------------

Source code leading to crash:

library(cluster)
data(xclara)
plot(hclust(dist(xclara)))

This leads to a long wait where the application is frozen (spinning  
status bar going the entire time), a quartz window displays without any  
content, and then the following application crash occurs:

Date/Time:      2004-12-04 20:15:00 -0600
OS Version:     10.3.6 (Build 7R28)
Report Version: 2

Command: R
Path:    /Applications/R.app/Contents/MacOS/R
Version: 1.02-pre build 795 (1.02-pre build 795)
PID:     1654
Thread:  0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x049b2940

Thread 0 Crashed:
0   libR.dylib               	0x010bd2ec drawdend + 0x168 (plot.c:3358)
1   libR.dylib               	0x010bd1e8 drawdend + 0x64 (plot.c:3346)
2   libR.dylib               	0x010bd2bc drawdend + 0x138 (plot.c:3356)
3   libR.dylib               	0x010bd2bc drawdend + 0x138 (plot.c:3356)
4   libR.dylib               	0x010bd1e8 drawdend + 0x64 (plot.c:3346)
5   libR.dylib               	0x010bd2bc drawdend + 0x138 (plot.c:3356)
6   libR.dylib               	0x010bd2bc drawdend + 0x138 (plot.c:3356)
7   libR.dylib               	0x010bd1e8 drawdend + 0x64 (plot.c:3346)
8   libR.dylib               	0x010bd660 do_dend + 0x278 (plot.c:3438)
9   libR.dylib               	0x0109f670 do_internal + 0x170  
(names.c:1067)
10  libR.dylib               	0x0106bf9c Rf_eval + 0x428 (eval.c:376)
11  libR.dylib               	0x0106d894 do_begin + 0x88 (eval.c:1051)
12  libR.dylib               	0x0106bf9c Rf_eval + 0x428 (eval.c:376)
13  libR.dylib               	0x0106c5e0 Rf_applyClosure + 0x3b8  
(eval.c:570)
14  libR.dylib               	0x0109fb04 applyMethod + 0x1d8  
(objects.c:119)
15  libR.dylib               	0x010a020c Rf_usemethod + 0x420  
(objects.c:300)
16  libR.dylib               	0x010a05e0 do_usemethod + 0x1f4  
(objects.c:389)
17  libR.dylib               	0x0106bf9c Rf_eval + 0x428 (eval.c:376)
18  libR.dylib               	0x0106bf9c Rf_eval + 0x428 (eval.c:376)
19  libR.dylib               	0x0106d894 do_begin + 0x88 (eval.c:1051)
20  libR.dylib               	0x0106bf9c Rf_eval + 0x428 (eval.c:376)
21  libR.dylib               	0x0106c5e0 Rf_applyClosure + 0x3b8  
(eval.c:570)
22  libR.dylib               	0x0106c1c8 Rf_eval + 0x654 (eval.c:411)
23  libR.dylib               	0x010918ec Rf_ReplIteration + 0x1d0  
(main.c:253)
24  libR.dylib               	0x01091a48 R_ReplConsole + 0x88  
(main.c:302)
25  libR.dylib               	0x010923bc run_Rmainloop + 0x6c  
(main.c:656)
26  com.apple.Foundation     	0x909f30e4 __NSFireTimer + 0x68
27  com.apple.CoreFoundation 	0x90194620 __CFRunLoopDoTimer + 0xf4
28  com.apple.CoreFoundation 	0x90191980 __CFRunLoopRun + 0x5c8
29  com.apple.CoreFoundation 	0x90195e94 CFRunLoopRunSpecific + 0x148
30  com.apple.HIToolbox      	0x927d5f88 RunCurrentEventLoopInMode +  
0xac
31  com.apple.HIToolbox      	0x927dc6f0 ReceiveNextEventCommon + 0x17c
32  com.apple.HIToolbox      	0x927fe6c8  
BlockUntilNextEventMatchingListInMode + 0x60
33  com.apple.AppKit         	0x92dd227c _DPSNextEvent + 0x180
34  com.apple.AppKit         	0x92de8c24 -[NSApplication  
nextEventMatchingMask:untilDate:inMode:dequeue:] + 0x74
35  com.apple.AppKit         	0x92dfcf8c -[NSApplication run] + 0x21c
36  com.apple.AppKit         	0x92eb948c NSApplicationMain + 0x1d0
37  org.R-project.R          	0x000029c8 _start + 0x188 (crt.c:267)
38  dyld                     	0x8fe1a558 _dyld_start + 0x64

Thread 1:
0   libSystem.B.dylib        	0x9000b20c select + 0xc
1   org.R-project.R          	0x00003b30 -[RController readThread:] +  
0x1b4
2   com.apple.Foundation     	0x90a39b74 forkThreadForFunction + 0x6c
3   libSystem.B.dylib        	0x900246e8 _pthread_body + 0x28

Thread 2:
0   libSystem.B.dylib        	0x90012568 syscall_thread_switch + 0x8
1   com.apple.Foundation     	0x90a029c8 +[NSThread sleepUntilDate:] +  
0x98
2   com.apple.AppKit         	0x92dca420 -[NSUIHeartBeat  
_heartBeatThread:] + 0x494
3   com.apple.Foundation     	0x90a39b74 forkThreadForFunction + 0x6c
4   libSystem.B.dylib        	0x900246e8 _pthread_body + 0x28

PPC Thread State:
   srr0: 0x010bd2ec srr1: 0x0200f030                vrsave: 0x00000000
     cr: 0x24022286  xer: 0x20000004   lr: 0x010bd294  ctr: 0x900f5f70
     r0: 0x010bd294   r1: 0xbfffb7c0   r2: 0x049b2948   r3: 0x00000b26
     r4: 0x00000000   r5: 0xa09faf40   r6: 0xbfffb234   r7: 0x05175200
     r8: 0x00000464   r9: 0x049ad018  r10: 0x00000118  r11: 0x24022282
    r12: 0x900f5f70  r13: 0x011cc51c  r14: 0x0118fdf4  r15: 0x05428acc
    r16: 0x01e09588  r17: 0x05188f10  r18: 0x0189a4e8  r19: 0x01e095f8
    r20: 0x05428a94  r21: 0x00000017  r22: 0x00000bb8  r23: 0x011bcb38
    r24: 0x00000bb7  r25: 0x0189761c  r26: 0x05427748  r27: 0xbfffb940
    r28: 0xbfffb948  r29: 0x0035d450  r30: 0x000023f8  r31: 0x010bd18c

Binary Images Description:
     0x1000 -    0x27fff org.R-project.R 1.02-pre build  
795	/Applications/R.app/Contents/MacOS/R
   0x205000 -   0x22ffff libreadline.4.3.dylib  
	/Library/Frameworks/R.framework/Resources/lib/libreadline.4.3.dylib
  0x1008000 -  0x1188fff libR.dylib  
	/Library/Frameworks/R.framework/Resources/lib/libR.dylib
  0x17f7000 -  0x17f8fff tools.so  
	/Library/Frameworks/R.framework/Resources/library/tools/libs/tools.so
  0x490b000 -  0x490efff methods.so  
	/Library/Frameworks/R.framework/Resources/library/methods/libs/ 
methods.so
  0x49b5000 -  0x49e0fff stats.so  
	/Library/Frameworks/R.framework/Resources/library/stats/libs/stats.so
  0x4a4e000 -  0x4a56fff cluster.so  
	/Library/Frameworks/R.framework/Resources/library/cluster/libs/ 
cluster.so
0x8fe00000 - 0x8fe4ffff dyld 	/usr/lib/dyld
0x90000000 - 0x90122fff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x90190000 - 0x9023dfff com.apple.CoreFoundation 6.3.5  
(299.32)	/System/Library/Frameworks/CoreFoundation.framework/Versions/ 
A/CoreFoundation
0x90280000 - 0x904f9fff com.apple.CoreServices.CarbonCore 10.3.6  
(10.3.5)	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90570000 - 0x905dffff com.apple.framework.IOKit 1.3.6  
(???)	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90610000 - 0x9069afff com.apple.CoreServices.OSServices  
3.0.1	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
Frameworks/OSServices.framework/Versions/A/OSServices
0x90700000 - 0x90700fff com.apple.CoreServices 10.3  
(???)	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
CoreServices
0x90720000 - 0x90787fff com.apple.audio.CoreAudio  
2.1.2	/System/Library/Frameworks/CoreAudio.framework/Versions/A/ 
CoreAudio
0x907f0000 - 0x907f9fff com.apple.DiskArbitration  
2.0.4	/System/Library/PrivateFrameworks/DiskArbitration.framework/ 
Versions/A/DiskArbitration
0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0  
(???)	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/ApplicationServices
0x90830000 - 0x9089ffff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
0x90910000 - 0x90983fff com.apple.DesktopServices  
1.2.2	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/ 
Versions/A/DesktopServicesPriv
0x909f0000 - 0x90b4bfff com.apple.Foundation 6.3.5  
(500.56)	/System/Library/Frameworks/Foundation.framework/Versions/C/ 
Foundation
0x90d00000 - 0x90d1bfff com.apple.SystemConfiguration 1.7.1  
(???)	/System/Library/Frameworks/SystemConfiguration.framework/ 
Versions/A/SystemConfiguration
0x90d40000 - 0x90d40fff com.apple.Carbon 10.3  
(???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x90df0000 - 0x90df4fff com.apple.JavaVM 1.4.2 (1.4.2 Release  
2)	/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x90ec0000 - 0x90ec0fff com.apple.Cocoa 6.3  
(???)	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x910b0000 - 0x91101fff com.apple.bom 1.2.5  
(63.2)	/System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x912a0000 - 0x912bdfff com.apple.audio.SoundManager  
3.8	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
CarbonSound.framework/Versions/A/CarbonSound
0x912e0000 - 0x912f7fff com.apple.LangAnalysis  
1.5.4	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91320000 - 0x913defff ColorSync  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91460000 - 0x91473fff com.apple.speech.synthesis.framework  
3.2	/System/Library/Frameworks/ApplicationServices.framework/Versions/ 
A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x914a0000 - 0x91509fff com.apple.htmlrendering  
1.1.2	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x91560000 - 0x91619fff com.apple.QD 3.4.65  
(???)	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91670000 - 0x916a8fff com.apple.AE  
1.4	/System/Library/Frameworks/ApplicationServices.framework/Versions/ 
A/Frameworks/AE.framework/Versions/A/AE
0x916e0000 - 0x91773fff com.apple.print.framework.PrintCore  
3.3	/System/Library/Frameworks/ApplicationServices.framework/Versions/ 
A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917e0000 - 0x917f0fff com.apple.speech.recognition.framework  
3.3	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
SpeechRecognition.framework/Versions/A/SpeechRecognition
0x91810000 - 0x9182afff com.apple.openscripting 1.2.1  
(???)	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x91850000 - 0x91860fff com.apple.ImageCapture  
2.1.5	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x91890000 - 0x9189cfff com.apple.help  
1.0.1	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/Help.framework/Versions/A/Help
0x918c0000 - 0x918cdfff com.apple.CommonPanels 1.2.1  
(1.0)	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x918f0000 - 0x9193efff com.apple.print.framework.Print  
3.3	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
Print.framework/Versions/A/Print
0x91990000 - 0x9199bfff com.apple.securityhi 1.2  
(90)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
SecurityHI.framework/Versions/A/SecurityHI
0x919c0000 - 0x91a33fff com.apple.NavigationServices  
3.3.2	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x91a90000 - 0x91a90fff com.apple.audio.units.AudioUnit  
1.3.2	/System/Library/Frameworks/AudioUnit.framework/Versions/A/ 
AudioUnit
0x91ab0000 - 0x91ac4fff libCGATS.A.dylib  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x91ae0000 - 0x91aebfff libCSync.A.dylib  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x91b10000 - 0x91b2afff libPDFRIP.A.dylib  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/CoreGraphics.framework/Versions/A/Resources/ 
libPDFRIP.A.dylib
0x91b50000 - 0x91b5ffff libPSRIP.A.dylib  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
0x91b80000 - 0x91b93fff libRIP.A.dylib  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x92070000 - 0x92096fff com.apple.FindByContent 1.4  
(1.2)	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x920c0000 - 0x922a7fff com.apple.security 2.4  
(177)	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x92430000 - 0x92468fff com.apple.LaunchServices 10.3.5  
(98.4)	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/Frameworks/LaunchServices.framework/Versions/A/ 
LaunchServices
0x92740000 - 0x92777fff com.apple.CFNetwork 1.2.1  
(7)	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x927d0000 - 0x92b54fff com.apple.HIToolbox 1.3.4  
(???)	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92d30000 - 0x92d80fff com.apple.HIServices 1.4.1  
(0.0.1d1)	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x92dc0000 - 0x932befff com.apple.AppKit 6.3.4  
(743.24)	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x935d0000 - 0x938a8fff com.apple.CoreGraphics 1.203.26  
(???)	/System/Library/Frameworks/ApplicationServices.framework/ 
Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x939a0000 - 0x939b4fff libcups.2.dylib 	/usr/lib/libcups.2.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib  
	/usr/lib/system/libmathCommon.A.dylib
0x93b50000 - 0x93bf3fff com.apple.audio.toolbox.AudioToolbox  
1.3.2	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/ 
AudioToolbox
0x94060000 - 0x94078fff com.apple.WebServices 1.1.1  
(1.1.0)	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x94120000 - 0x9414bfff libncurses.5.dylib 	/usr/lib/libncurses.5.dylib
0x945b0000 - 0x945b9fff libz.1.dylib 	/usr/lib/libz.1.dylib
0x94610000 - 0x9462afff libresolv.9.dylib 	/usr/lib/libresolv.9.dylib
0x94650000 - 0x946affff com.apple.SearchKit  
1.0.2	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
Frameworks/SearchKit.framework/Versions/A/SearchKit
0x94a30000 - 0x94af5fff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
0x94b20000 - 0x94badfff com.apple.ink.framework 101.1.3  
(55.10)	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
Frameworks/Ink.framework/Versions/A/Ink
0x95300000 - 0x95374fff com.apple.WebKit  
125.5.5	/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x954c0000 - 0x95ac6fff libBLAS.dylib  
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
vecLib.framework/Versions/A/libBLAS.dylib
0x95b20000 - 0x95df0fff libLAPACK.dylib  
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
vecLib.framework/Versions/A/libLAPACK.dylib
0x95e40000 - 0x95eadfff libvDSP.dylib  
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
vecLib.framework/Versions/A/libvDSP.dylib
0x95f00000 - 0x95f20fff libvMisc.dylib  
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
vecLib.framework/Versions/A/libvMisc.dylib
0x968d0000 - 0x969b2fff libicucore.A.dylib 	/usr/lib/libicucore.A.dylib
0x96a20000 - 0x96ae2fff libcrypto.0.9.7.dylib  
	/usr/lib/libcrypto.0.9.7.dylib
0x96b40000 - 0x96b6efff libssl.0.9.7.dylib 	/usr/lib/libssl.0.9.7.dylib
0x96bf0000 - 0x96c7ffff ATS  
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
Frameworks/ATS.framework/Versions/A/ATS
0x96cb0000 - 0x96d9efff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
0x96e80000 - 0x96e90fff com.apple.vecLib 3.0.2 (vecLib  
3.0.2)	/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x96f20000 - 0x96f96fff com.apple.JavaScriptCore 1.1  
(125.6)	/System/Library/Frameworks/WebKit.framework/Versions/A/ 
Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x96ff0000 - 0x97214fff com.apple.WebCore  
125.8.10	/System/Library/Frameworks/WebKit.framework/Versions/A/ 
Frameworks/WebCore.framework/Versions/A/WebCore
0x97490000 - 0x97490fff com.apple.securitynssasn1 1.2  
(12)	/System/Library/PrivateFrameworks/SecurityNssAsn1.framework/ 
Versions/A/SecurityNssAsn1
0x97510000 - 0x97518fff libbsm.dylib 	/usr/lib/libbsm.dylib

dist(xclara)->xclara.dist

Works okay, though when attempting to display those results it freezes  
up the entire system, probably as  the result of memory  
threshing/starvation if the top results are any indicator:

  1661 R            8.5%  9:36.12   3    92   567   368M+ 3.88M   350M-   
828M

Sincerely,
David



More information about the R-SIG-Mac mailing list