[Rd] beginner finds a bug - crash induced. (PR#8035)

sholland@napervillegi.com sholland at napervillegi.com
Tue Jul 26 04:29:23 CEST 2005


Full_Name: Stephen Holland M.D.
Version: 2.1.1
OS: Mac OS X
Submission from: (NULL) (67.184.33.112)


I did a bunch of stuff, then did in sequence:

> state <- c("tas", "sa",  "qld", "nsw", "nsw", "nt",  "wa",  "wa",
+                   "qld", "vic", "nsw", "vic", "qld", "qld", "sa",  "tas",
+                   "sa",  "nt",  "wa",  "vic", "qld", "nsw", "nsw", "wa",
+                   "sa",  "act", "nsw", "vic", "vic", "act")
> factor(state)
 [1] tas sa  qld nsw nsw nt  wa  wa  qld vic nsw vic qld qld sa  tas sa  nt  wa

[20] vic qld nsw nsw wa  sa  act nsw vic vic act
Levels: act nsw nt qld sa tas vic wa
> table(state)
state
act nsw  nt qld  sa tas vic  wa 
  2   6   2   5   4   2   5   4 
> barplot(table(state))

And then boom goes the dynamite.

Doing these steps again did not reproduce the error.

Steve Holland  sholland at napervillegi.com

Crash report follows:

Date/Time:      2005-07-25 21:19:23 -0500
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: R
Path:    /Applications/R.app/Contents/MacOS/R
Version: 1.12 (1622)
PID:     639
Thread:  0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   libR.dylib               	0x010665c8 Rf_eval + 0xa4 (eval.c:300)
1   libR.dylib               	0x0103b218 R_run_onexits + 0xd4 (context.c:142)
2   libR.dylib               	0x01063eb4 jump_to_top_ex + 0x260 (errors.c:682)
3   com.apple.AppKit         	0x92fda908 -[NSToolbarButton sendAction:to:] +
0x4c
4   com.apple.AppKit         	0x92fda8a8 -[NSToolbarButton sendAction] + 0x50
5   com.apple.AppKit         	0x92f5a70c -[NSToolbarItemViewer mouseDown:] +
0x674
6   com.apple.AppKit         	0x92eb2a24 -[NSWindow sendEvent:] + 0x10e4
7   com.apple.AppKit         	0x92ea50d0 -[NSApplication sendEvent:] + 0xebc
8   com.apple.AppKit         	0x92ead500 -[NSApplication run] + 0x240
9   com.apple.AppKit         	0x92f69bec NSApplicationMain + 0x1d0
10  org.R-project.R          	0x00002dd0 _start + 0x188 (crt.c:267)
11  dyld                     	0x8fe1a278 _dyld_start + 0x64

Thread 1:
0   libSystem.B.dylib        	0x9000b42c select + 0xc
1   org.R-project.R          	0x0000435c -[RController readThread:] + 0x20c
2   com.apple.Foundation     	0x90a6a510 forkThreadForFunction + 0x6c
3   libSystem.B.dylib        	0x90024910 _pthread_body + 0x28

Thread 2:
0   libSystem.B.dylib        	0x900127b8 syscall_thread_switch + 0x8
1   com.apple.Foundation     	0x90a33330 +[NSThread sleepUntilDate:] + 0x98
2   com.apple.AppKit         	0x92e7a880 -[NSUIHeartBeat _heartBeatThread:] +
0x494
3   com.apple.Foundation     	0x90a6a510 forkThreadForFunction + 0x6c
4   libSystem.B.dylib        	0x90024910 _pthread_body + 0x28

Thread 3:
0   libSystem.B.dylib        	0x90007878 mach_msg_trap + 0x8
1   libSystem.B.dylib        	0x900073f8 mach_msg + 0x38
2   com.apple.CoreFoundation 	0x901c16e0 __CFRunLoopRun + 0x350
3   com.apple.CoreFoundation 	0x901c5e6c CFRunLoopRunSpecific + 0x148
4   com.apple.Foundation     	0x90a2d1b8 -[NSRunLoop runMode:beforeDate:] +
0xac
5   com.apple.Foundation     	0x90a45dbc -[NSRunLoop run] + 0x4c
6   com.apple.Foundation     	0x90a98054
+[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 0x20c
7   com.apple.Foundation     	0x90a6a510 forkThreadForFunction + 0x6c
8   libSystem.B.dylib        	0x90024910 _pthread_body + 0x28

Thread 4:
0   libSystem.B.dylib        	0x90007878 mach_msg_trap + 0x8
1   libSystem.B.dylib        	0x900073f8 mach_msg + 0x38
2   com.apple.CoreFoundation 	0x901c16e0 __CFRunLoopRun + 0x350
3   com.apple.CoreFoundation 	0x901c5e6c CFRunLoopRunSpecific + 0x148
4   com.apple.Foundation     	0x90a2d1b8 -[NSRunLoop runMode:beforeDate:] +
0xac
5   com.apple.Foundation     	0x90a45dbc -[NSRunLoop run] + 0x4c
6   com.apple.Foundation     	0x90a98594 +[NSURLCache _diskCacheSyncLoop:] +
0xa8
7   com.apple.Foundation     	0x90a6a510 forkThreadForFunction + 0x6c
8   libSystem.B.dylib        	0x90024910 _pthread_body + 0x28

Thread 5:
0   libSystem.B.dylib        	0x90007878 mach_msg_trap + 0x8
1   libSystem.B.dylib        	0x900073f8 mach_msg + 0x38
2   com.apple.CoreFoundation 	0x901c16e0 __CFRunLoopRun + 0x350
3   com.apple.CoreFoundation 	0x901c5e6c CFRunLoopRunSpecific + 0x148
4   com.apple.Foundation     	0x90a2d1b8 -[NSRunLoop runMode:beforeDate:] +
0xac
5   com.apple.Foundation     	0x90a45dbc -[NSRunLoop run] + 0x4c
6   com.apple.WebKit         	0x916eb584 +[WebFileDatabase _syncLoop:] + 0xa8
7   com.apple.Foundation     	0x90a6a510 forkThreadForFunction + 0x6c
8   libSystem.B.dylib        	0x90024910 _pthread_body + 0x28

PPC Thread State:
  srr0: 0x010665c8 srr1: 0x0200f030                vrsave: 0x00000000
    cr: 0x44044248  xer: 0x00000004   lr: 0x0106652c  ctr: 0x01066524
    r0: 0x00000001   r1: 0xbfffe790   r2: 0x011eb350   r3: 0x00000000
    r4: 0x0445f718   r5: 0x01847fb0   r6: 0x00000000   r7: 0x636b00ac
    r8: 0x011eafec   r9: 0x00001388  r10: 0x00419000  r11: 0x011993a4
   r12: 0x01066524  r13: 0x00000000  r14: 0x00000100  r15: 0x00000000
   r16: 0xa2ea1940  r17: 0xa2ea1940  r18: 0xa2e91940  r19: 0x00000000
   r20: 0xa2e71940  r21: 0xa2e9a098  r22: 0x011a652c  r23: 0x00000008
   r24: 0x00000000  r25: 0x0445f718  r26: 0x011a652c  r27: 0x011a652c
   r28: 0x00000000  r29: 0x011a6e70  r30: 0xbfffbf10  r31: 0x0106652c

Binary Images Description:
    0x1000 -    0x38fff org.R-project.R 1.12 (1622)
/Applications/R.app/Contents/MacOS/R
   0x97000 -    0xc9fff libreadline.5.0.dylib 
/Library/Frameworks/R.framework/Resources/lib/libreadline.5.0.dylib
  0x7ce000 -   0x7d1fff methods.so 
/Library/Frameworks/R.framework/Resources/library/methods/libs/methods.so
 0x1008000 -  0x1195fff libR.dylib 
/Library/Frameworks/R.framework/Resources/lib/libR.dylib
 0x173f000 -  0x1740fff tools.so 
/Library/Frameworks/R.framework/Resources/library/tools/libs/tools.so
 0x457e000 -  0x4593fff grDevices.so 
/Library/Frameworks/R.framework/Resources/library/grDevices/libs/grDevices.so
 0x46c1000 -  0x46ecfff stats.so 
/Library/Frameworks/R.framework/Resources/library/stats/libs/stats.so
 0x47be000 -  0x47c2fff lapack.so 
/Library/Frameworks/R.framework/Resources/modules/lapack.so
 0x5429000 -  0x5442fff com.epson.print.pde.PrintSetting.SC740 1.29
/Library/Printers/EPSON/SC740.plugin/Contents/PDEs/PrintSetting.plugin/Contents/MacOS/PrintSetting_W
 0x54c3000 -  0x54d8fff com.epson.print.pde.ColorManagement.SC740 1.29
/Library/Printers/EPSON/SC740.plugin/Contents/PDEs/ColorManagement.plugin/Contents/MacOS/ColorManagement_W
 0x555b000 -  0x5595fff vfonts.so 
/Library/Frameworks/R.framework/Resources/modules/vfonts.so
 0x5650000 -  0x5658fff com.apple.print.converter.plugin 3.0
/System/Library/Printers/CVs/Converter.plugin/Contents/MacOS/Converter
0x76c02000 - 0x76c12fff com.apple.Accelerate.vecLib 3.0.3 (vecLib 3.0.3)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x806c0000 - 0x806e9fff libxslt.1.dylib 	/usr/lib/libxslt.1.dylib
0x80830000 - 0x8090efff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
0x86e30000 - 0x86e52fff libCFilter.A.dylib 
/System/Library//Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Resources/libCFilter.A.dylib
0x880a0000 - 0x880a7fff libLW8Utils.dylib 
/System/Library/Printers/Libraries/libLW8Utils.dylib
0x882a0000 - 0x882c6fff libConverter.dylib 
/System/Library/Printers/Libraries/libConverter.dylib
0x882df000 - 0x8831efff libLW8Converter.dylib 
/System/Library/Printers/Libraries/libLW8Converter.dylib
0x89370000 - 0x8938afff com.epson.print.UIInterpreter 1.41
/Library/Printers/EPSON/Libraries/UI Interpreter.framework/Versions/D/UI
Interpreter
0x89bb0000 - 0x89bb1fff com.epson.print.EPTools 1.41
/Library/Printers/EPSON/Libraries/EPTools.framework/Versions/D/EPTools
0x8c3e4000 - 0x8c51afff com.apple.vImage 1.0.0 (1.2.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x8dcb0000 - 0x8dcb2fff com.apple.ExceptionHandling 1.2 (???)
/System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling
0x8fc90000 - 0x8fc90fff com.apple.Accelerate 1.0.3 (Accelerate 1.0.3)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x8fe00000 - 0x8fe4ffff dyld 	/usr/lib/dyld
0x90000000 - 0x9014ffff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x901c0000 - 0x9026dfff com.apple.CoreFoundation 6.3.7 (299.35)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x902b0000 - 0x90529fff com.apple.CoreServices.CarbonCore 10.3.7
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90584000 - 0x905d4fff com.apple.HIServices 1.4.1 (0.0.1d1)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
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
0x90702000 - 0x90769fff com.apple.audio.CoreAudio 2.1.3
/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x907c7000 - 0x907dafff com.apple.speech.synthesis.framework 3.2
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x907f0000 - 0x907f9fff com.apple.DiskArbitration 2.0.5
/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
0x908c5000 - 0x908fdfff com.apple.AE 1.4
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x90940000 - 0x909b3fff com.apple.DesktopServices 1.2.5
/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x909f0000 - 0x90a04fff libCGATS.A.dylib 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x90a20000 - 0x90b7bfff com.apple.Foundation 6.3.7 (500.59)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x90c32000 - 0x90c3afff libbsm.dylib 	/usr/lib/libbsm.dylib
0x90c4d000 - 0x90c58fff libCSync.A.dylib 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
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
0x912e0000 - 0x912f7fff com.apple.LangAnalysis 1.5.4
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91303000 - 0x91372fff com.apple.framework.IOKit 1.3.6 (???)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x913a0000 - 0x9145ffff ColorSync 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x915e0000 - 0x91699fff com.apple.QD 3.4.67 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x916d9000 - 0x9176ffff com.apple.WebKit 312.1
/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
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
0x91a40000 - 0x91ab3fff com.apple.NavigationServices 3.3.3
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
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
0x91ebd000 - 0x91ebdfff com.apple.Carbon 10.3 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
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.3 (176)
/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
0x927b2000 - 0x927e0fff libssl.0.9.7.dylib 	/usr/lib/libssl.0.9.7.dylib
0x927f0000 - 0x92827fff com.apple.CFNetwork 1.2.1 (7)
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x92880000 - 0x92c05fff com.apple.HIToolbox 1.3.6 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92e70000 - 0x9336ffff com.apple.AppKit 6.3.8 (743.39)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x939a0000 - 0x939b4fff libcups.2.dylib 	/usr/lib/libcups.2.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib 
/usr/lib/system/libmathCommon.A.dylib
0x94120000 - 0x9414bfff libncurses.5.dylib 	/usr/lib/libncurses.5.dylib
0x9419b000 - 0x94253fff com.apple.audio.toolbox.AudioToolbox 1.3.3
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9450a000 - 0x9450afff com.apple.audio.units.AudioUnit 1.3.3
/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
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
0x946ed000 - 0x94708fff com.apple.SystemConfiguration 1.7.1 (???)
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x94c57000 - 0x94ceafff com.apple.print.framework.PrintCore 3.3
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x952a8000 - 0x952c0fff com.apple.WebServices 1.1.1 (1.1.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
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
0x96165000 - 0x96182fff com.apple.audio.SoundManager 3.9
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x961b0000 - 0x96292fff com.apple.JavaScriptCore 1.2 (312)
/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x968d0000 - 0x969b2fff libicucore.A.dylib 	/usr/lib/libicucore.A.dylib
0x96a20000 - 0x96ae2fff libcrypto.0.9.7.dylib 	/usr/lib/libcrypto.0.9.7.dylib
0x96b50000 - 0x96bdffff ATS 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x96c00000 - 0x96c8cfff com.apple.ink.framework 101.1.4 (55.12)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x96cb0000 - 0x96d9efff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
0x96e80000 - 0x96e90fff com.apple.vecLib 3.0.3 (vecLib 3.0.3)
/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x96eca000 - 0x971b0fff com.apple.WebCore 315
/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
0x97335000 - 0x9739efff com.apple.htmlrendering 1.1.2
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x973cf000 - 0x976a7fff com.apple.CoreGraphics 1.203.30 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics



More information about the R-devel mailing list