Bug 15357 - segfault
Summary: segfault
Status: ASSIGNED
Alias: None
Product: R
Classification: Unclassified
Component: Mac GUI / Mac specific (show other bugs)
Version: R 3.0.0
Hardware: x86_64/x64/amd64 (64-bit) Mac OS X v10.7
: P5 normal
Assignee: Simon Urbanek
URL:
Depends on:
Blocks:
 
Reported: 2013-06-25 10:50 UTC by sam.mason
Modified: 2013-07-15 19:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sam.mason 2013-06-25 10:50:41 UTC
Hi,
R just crashed and I attached a gdb process and have the following stacktrace.  sessionInfo() from a recently restarted session (doing similar things) is:

> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

Loaded some 60MB csv files, plotting, and running some simple linear regressions.  Editor crashed when editing an R file that's approx 40 lines long. Running on OSX 10.7.5.

Hope that helps, let me know if you need any more details!

  Sam

0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000100067963 in -[RScriptEditorTypeSetter actionForControlCharacterAtIndex:] ()
#2  0x00007fff97556a87 in -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] ()
#3  0x00007fff9708facd in -[NSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#4  0x00007fff9708f9e4 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#5  0x00007fff9708f8d5 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#6  0x00007fff96f8ba1b in -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] ()
#7  0x00007fff96f99eb8 in -[NSLayoutManager(NSPrivate) _validatedStoredUsageForTextContainerAtIndex:] ()
#8  0x00007fff96f99e2c in -[NSLayoutManager usedRectForTextContainer:] ()
#9  0x00007fff97095b15 in -[NSTextView textContainerOrigin] ()
#10 0x00007fff9750dc72 in -[NSTextView(NSPrivate) _hasVisisbleGlyphsInCharRange:] ()
#11 0x00007fff97516673 in -[NSTextView(NSSharing) showFindIndicatorForRange:] ()
#12 0x00007fff93f09186 in __NSFireDelayedPerform ()
#13 0x00007fff95d3a934 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#14 0x00007fff95d3a486 in __CFRunLoopDoTimer ()
#15 0x00007fff95d1ae11 in __CFRunLoopRun ()
#16 0x00007fff95d1a486 in CFRunLoopRunSpecific ()
#17 0x00007fff980e22bf in RunCurrentEventLoopInMode ()
#18 0x00007fff980e956d in ReceiveNextEventCommon ()
#19 0x00007fff980e93fa in BlockUntilNextEventMatchingListInMode ()
#20 0x00007fff96ee6779 in _DPSNextEvent ()
#21 0x00007fff96ee607d in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#22 0x0000000100005f1c in -[RController doProcessEvents:] ()
#23 0x000000010000bc28 in -[RController handleReadConsole:] ()
#24 0x0000000100012bde in Re_ReadConsole ()
#25 0x00000001001d753d in sigactionSegv (signum=156139840, ip=0x100319988, context=0xffffffffffffffff) at main.c:585
#26 <signal handler called>
#27 0x0000000000000000 in ?? ()
#28 0x0000000100067963 in -[RScriptEditorTypeSetter actionForControlCharacterAtIndex:] ()
#29 0x00007fff97556a87 in -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] ()
#30 0x00007fff9708facd in -[NSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#31 0x00007fff9708f9e4 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#32 0x00007fff9708f8d5 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#33 0x00007fff96f8ba1b in -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] ()
#34 0x00007fff96f99eb8 in -[NSLayoutManager(NSPrivate) _validatedStoredUsageForTextContainerAtIndex:] ()
#35 0x00007fff96f99e2c in -[NSLayoutManager usedRectForTextContainer:] ()
#36 0x00007fff97095b15 in -[NSTextView textContainerOrigin] ()
#37 0x00007fff96f98db1 in -[NSLayoutManager _primitiveInvalidateDisplayForGlyphRange:] ()
#38 0x00007fff96f98832 in -[NSLayoutManager invalidateDisplayForCharacterRange:] ()
#39 0x00007fff96f98951 in -[NSLayoutManager(NSPrivate) _invalidateDisplayIfNeeded] ()
#40 0x00007fff96f8d7b8 in -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] ()
#41 0x00007fff97556748 in -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] ()
#42 0x00007fff9708facd in -[NSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#43 0x00007fff9708f9e4 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#44 0x00007fff96f90999 in -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] ()
#45 0x00007fff96f9ddba in _NSFastFillAllLayoutHolesForGlyphRange ()
#46 0x00007fff97096f4c in -[NSLayoutManager(NSPrivate) _firstPassGlyphRangeForBoundingRect:inTextContainer:okToFillHoles:] ()
#47 0x00007fff970960ee in -[NSLayoutManager(NSPrivate) _glyphRangeForBoundingRect:inTextContainer:fast:okToFillHoles:] ()
#48 0x00007fff97095e0f in -[NSLayoutManager glyphRangeForBoundingRect:inTextContainer:] ()
#49 0x00007fff970abf92 in -[NSTextView drawRect:] ()
#50 0x0000000100044b23 in -[RTextView drawRect:] ()
#51 0x00000001000532af in -[RScriptEditorTextView drawRect:] ()
#52 0x00007fff970ab852 in -[NSTextView _drawRect:clip:] ()
#53 0x00007fff96f5f49b in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#54 0x00007fff96f5f8c7 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#55 0x00007fff96f2f8a9 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#56 0x00007fff96f30b5e in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#57 0x00007fff96f30b5e in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#58 0x00007fff96f30b5e in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#59 0x00007fff96f2eda3 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#60 0x00007fff96f2a1bb in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
#61 0x00007fff96f22c35 in -[NSView displayIfNeeded] ()
#62 0x00007fff96f22375 in _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints ()
#63 0x00007fff95d458e7 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()
#64 0x00007fff95d45846 in __CFRunLoopDoObservers ()
#65 0x00007fff95d1aaf9 in __CFRunLoopRun ()
#66 0x00007fff95d1a486 in CFRunLoopRunSpecific ()
#67 0x00007fff980e22bf in RunCurrentEventLoopInMode ()
#68 0x00007fff980e94bf in ReceiveNextEventCommon ()
#69 0x00007fff980e93fa in BlockUntilNextEventMatchingListInMode ()
#70 0x00007fff96ee6779 in _DPSNextEvent ()
#71 0x00007fff96ee607d in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#72 0x0000000100005f1c in -[RController doProcessEvents:] ()
#73 0x000000010000bc28 in -[RController handleReadConsole:] ()
#74 0x0000000100012bde in Re_ReadConsole ()
#75 0x00000001001d833d in R_ReplDLLdo1 () at main.c:338
#76 0x000000010001f1f3 in run_REngineRmainloop ()
#77 0x00000001000138fc in -[REngine runREPL] ()
#78 0x0000000100001cde in main ()
Comment 1 sam.mason 2013-06-27 10:55:16 UTC
And another similar crash, on a 10.8.4 laptop.  Same version of R and doing similar things.

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000100067963 in -[RScriptEditorTypeSetter actionForControlCharacterAtIndex:] ()
#2  0x00007fff8b7cf5fe in -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] ()
#3  0x00007fff8b2a6afd in -[NSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] ()
#4  0x00007fff8b2a69ec in -[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] ()
#5  0x00007fff8b2a68d3 in -[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] ()
#6  0x00007fff8b2a4f83 in -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] ()
#7  0x00007fff8b2da31d in _NSFastFillAllLayoutHolesForGlyphRange ()
#8  0x00007fff8b2a2eea in -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] ()
#9  0x00007fff8b0eae53 in -[NSTextView drawsVerticallyForCharacterAtIndex:] ()
#10 0x00007fff8b0ead7c in -[NSTextInputContext drawsVerticallyForCharacterAtIndex:] ()
#11 0x00007fff8b19f0de in -[NSTextInputContext remapsArrowKeysForVerticalOrientation] ()
#12 0x00007fff8b19e69c in -[NSKeyBindingManager(NSKeyBindingManager_MultiClients) interpretEventAsCommand:forClient:] ()
#13 0x00007fff8b19e190 in -[NSTextInputContext handleEvent:] ()
#14 0x00007fff8b19dea7 in -[NSView interpretKeyEvents:] ()
#15 0x00007fff8b0eac57 in -[NSTextView keyDown:] ()
#16 0x00000001000444be in -[RTextView keyDown:] ()
#17 0x00007fff8b306020 in -[NSWindow sendEvent:] ()
#18 0x00007fff8b301644 in -[NSApplication sendEvent:] ()
#19 0x0000000100005f35 in -[RController doProcessEvents:] ()
#20 0x000000010000bc28 in -[RController handleReadConsole:] ()
#21 0x0000000100012bde in Re_ReadConsole ()
#22 0x00000001001d753d in sigactionSegv (signum=25018688, ip=0x100319988, context=0x107cc8a20) at main.c:585
#23 <signal handler called>
#24 0x0000000000000000 in ?? ()
#25 0x0000000100067963 in -[RScriptEditorTypeSetter actionForControlCharacterAtIndex:] ()
#26 0x00007fff8b7cf5fe in -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] ()
#27 0x00007fff8b295a10 in -[NSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#28 0x00007fff8b2958d7 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#29 0x00007fff8b2957c3 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#30 0x00007fff8b2a158d in -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] ()
#31 0x00007fff8b2ae511 in -[NSLayoutManager(NSPrivate) _validatedStoredUsageForTextContainerAtIndex:] ()
#32 0x00007fff8b2ae495 in -[NSLayoutManager usedRectForTextContainer:] ()
#33 0x00007fff8b2c8382 in -[NSTextView textContainerOrigin] ()
#34 0x00007fff8b2988ff in -[NSLayoutManager _primitiveInvalidateDisplayForGlyphRange:] ()
#35 0x00007fff8b297e50 in -[NSLayoutManager invalidateDisplayForCharacterRange:] ()
#36 0x00007fff8b2ae3d5 in -[NSLayoutManager(NSPrivate) _invalidateDisplayIfNeeded] ()
#37 0x00007fff8b2a3015 in -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] ()
#38 0x00007fff8b7cf14a in -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] ()
#39 0x00007fff8b295a10 in -[NSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#40 0x00007fff8b2958d7 in -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
#41 0x00007fff8b2a5dbc in -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] ()
#42 0x00007fff8b2da31d in _NSFastFillAllLayoutHolesForGlyphRange ()
#43 0x00007fff8b30b876 in -[NSLayoutManager(NSPrivate) _firstPassGlyphRangeForBoundingRect:inTextContainer:okToFillHoles:] ()
#44 0x00007fff8b30a902 in -[NSLayoutManager(NSPrivate) _glyphRangeForBoundingRect:inTextContainer:fast:okToFillHoles:] ()
#45 0x00007fff8b2efe64 in -[NSTextView drawRect:] ()
#46 0x0000000100044b23 in -[RTextView drawRect:] ()
#47 0x00000001000532af in -[RScriptEditorTextView drawRect:] ()
#48 0x00007fff8b2ef46c in -[NSTextView _drawRect:clip:] ()
#49 0x00007fff8b2606c1 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#50 0x00007fff8b260ad9 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#51 0x00007fff8b25e6f2 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#52 0x00007fff8b25fa44 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#53 0x00007fff8b25fa44 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#54 0x00007fff8b25fa44 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#55 0x00007fff8b25e143 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#56 0x00007fff8b259d6d in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
#57 0x00007fff8b223c93 in -[NSView displayIfNeeded] ()
#58 0x00007fff8b2231cc in _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints ()
#59 0x00007fff8b7ee901 in __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke_01208 ()
#60 0x00007fff88b02417 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()
#61 0x00007fff88b02381 in __CFRunLoopDoObservers ()
#62 0x00007fff88add7b8 in __CFRunLoopRun ()
#63 0x00007fff88add0e2 in CFRunLoopRunSpecific ()
#64 0x00007fff8fab2eb4 in RunCurrentEventLoopInMode ()
#65 0x00007fff8fab2b94 in ReceiveNextEventCommon ()
#66 0x00007fff8fab2ae3 in BlockUntilNextEventMatchingListInMode ()
#67 0x00007fff8b220533 in _DPSNextEvent ()
#68 0x00007fff8b21fdf2 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#69 0x0000000100005f1c in -[RController doProcessEvents:] ()
#70 0x000000010000bc28 in -[RController handleReadConsole:] ()
#71 0x0000000100012bde in Re_ReadConsole ()
#72 0x00000001001d833d in R_ReplDLLdo1 () at main.c:338
#73 0x000000010001f1f3 in run_REngineRmainloop ()
#74 0x00000001000138fc in -[REngine runREPL] ()
#75 0x0000000100001cde in main ()