Recent

Author Topic: FPC 2.6.4 installer crash (on El Capitan)  (Read 4037 times)

robsoft

  • New member
  • *
  • Posts: 9
FPC 2.6.4 installer crash (on El Capitan)
« on: November 26, 2015, 10:15:51 am »
Hi, I'll try to be brief :-)  Successfully installed FPC 2.6.4 and Lazarus, sorted out GDB etc, got everything ticking over just fine on a laptop that has a clean install of El Capitan, and only the Xcode command line tools.

I've come to put it on my Mac Mini desktop, which is running El Capitan but does also already have Xamarin, Mono and a full set of bang-up-to-date Xcode tools installed.

Installing Lazarus is fine, as is the source. But installing the FPC module always generates a crash (partial log below, naturally more available on request). It's perfectly reproducible, I've rebooted, I've disk-checked and permissions-checked etc, run it without the anti-virus on, I've re-downloaded the installer (even tried copying the successful installer DMG over from the laptop)....

Weirdly, I can install 2.6.2 just fine, but the installer crashes for 2.6.4 before you even see the first dialog.

Any suggestions? Is there a relatively easy way to upgrade from a 2.6.2 installation to a 2.6.4 one, without using the installer? I'm really loathe to have to rebuild the machine for this, it's my main development box, I have code signing and everything working just fine... :-)

Thanks in advance!

Process:               Installer [4410]
Path:                  /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
Identifier:            com.apple.installer
Version:               6.2.0 (853)
Build Info:            Installer-853000000000000~68
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Installer [4410]
User ID:               502

Date/Time:             2015-11-26 09:02:56.247 +0000
OS Version:            Mac OS X 10.11.1 (15B42)
Report Version:        11
Anonymous UUID:        66820727-8175-36F4-EA5B-797E712B17F4


Time Awake Since Boot: 140000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0:
-->
    __TEXT                 0000000102aeb000-0000000102b15000 [  168K] r-x/rwx SM=COW  /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer

Global Trace Buffer (reverse chronological seconds):
1.820798     libsystem_trace.dylib        0x00007fff8ec2f102 dyld_image_header_containing_address(0x7fa69041a741) failed

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation         0x00007fff8c064f55 CFStringGetCharacterAtIndex + 21
1   com.apple.UIFoundation           0x00007fff8e5e2a7e -[NSParagraphArbitrator lineBreakContextBeforeIndex:lineFragmentWidth:range:] + 251
2   com.apple.UIFoundation           0x00007fff8e64b839 -[NSATSLineFragment _charIndexToBreakLineByWordWrappingAtIndex:lineFragmentWidth:hyphenate:] + 393
3   com.apple.UIFoundation           0x00007fff8e64c7f7 -[NSATSLineFragment layoutForStartingGlyphAtIndex:characterIndex:minPosition:maxPosition:lineFragmentRect:] + 2410
4   com.apple.UIFoundation           0x00007fff8e641ae8 -[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:] + 3418
5   com.apple.UIFoundation           0x00007fff8e643c1e -[NSATSTypesetter layoutParagraphAtPoint:] + 167
6   com.apple.UIFoundation           0x00007fff8e59040c -[NSTypesetter _layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:] + 4189
7   com.apple.UIFoundation           0x00007fff8e591ad1 -[NSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 245
8   com.apple.UIFoundation           0x00007fff8e644a73 -[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:] + 983
9   com.apple.UIFoundation           0x00007fff8e60cf90 -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 1158
10  com.apple.UIFoundation           0x00007fff8e61694e _NSFastFillAllLayoutHolesForGlyphRange + 1479
11  com.apple.UIFoundation           0x00007fff8e618683 -[NSLayoutManager(NSPrivate) _firstPassGlyphRangeForBoundingRect:inTextContainer:hintGlyphRange:okToFillHoles:] + 1329
12  com.apple.UIFoundation           0x00007fff8e61a71f -[NSLayoutManager(NSPrivate) _glyphRangeForBoundingRect:inTextContainer:fast:okToFillHoles:] + 4560
13  com.apple.UIFoundation           0x00007fff8e5330ce -[NSLayoutManager glyphRangeForBoundingRect:inTextContainer:] + 79
14  com.apple.AppKit                 0x00007fff96101141 -[NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:] + 1337
15  com.apple.AppKit                 0x00007fff96121f09 -[NSTextView setNeedsDisplayInRect:] + 58
16  com.apple.AppKit                 0x00007fff96016261 -[NSView setNeedsDisplay:] + 81
17  com.apple.AppKit                 0x00007fff960460d8 -[NSView(NSInternal) _updateLayerGeometryFromView] + 1221
18  com.apple.AppKit                 0x00007fff96060fb9 -[NSView setFrameSize:] + 1245
19  com.apple.AppKit                 0x00007fff96102ea4 -[NSTextView(NSPrivate) _setFrameSize:forceScroll:] + 724
20  com.apple.AppKit                 0x00007fff96102b7c -[NSTextView setFrameSize:] + 104
21  com.apple.AppKit                 0x00007fff961021af -[NSTextView setConstrainedFrameSize:] + 639
22  com.apple.UIFoundation           0x00007fff8e611eaa -[NSLayoutManager(NSPrivate) _resizeTextViewForTextContainer:] + 1073
23  com.apple.UIFoundation           0x00007fff8e616b3a _NSFastFillAllLayoutHolesForGlyphRange + 1971
24  com.apple.UIFoundation           0x00007fff8e618cee -[NSLayoutManager(NSPrivate) _firstPassGlyphRangeForBoundingRect:inTextContainer:okToFillHoles:] + 452
25  com.apple.UIFoundation           0x00007fff8e6198a1 -[NSLayoutManager(NSPrivate) _glyphRangeForBoundingRect:inTextContainer:fast:okToFillHoles:] + 850
26  com.apple.UIFoundation           0x00007fff8e5330ce -[NSLayoutManager glyphRangeForBoundingRect:inTextContainer:] + 79
27  com.apple.AppKit                 0x00007fff961acfe9 -[NSTextView drawRect:] + 2210
28  com.apple.AppKit                 0x00007fff961ac3a3 __67-[NSTextView(NSTextView_LayerBacking) drawLayer:inGraphicsContext:]_block_invoke + 503
29  com.apple.AppKit                 0x00007fff961ac18c -[NSFocusStack performWithFocusView:inWindow:usingBlock:] + 75
30  com.apple.AppKit                 0x00007fff961ac132 -[NSTextView(NSTextView_LayerBacking) drawLayer:inGraphicsContext:] + 158
31  com.apple.AppKit                 0x00007fff961abec2 +[NSGraphicsContext configureGraphicsContextForCALayer:withCGContext:andRenderWithHandler:] + 97
32  com.apple.QuartzCore             0x00007fff8d7ba2dd CABackingStoreUpdate_ + 3494
33  com.apple.QuartzCore             0x00007fff8d7b9531 ___ZN2CA5Layer8display_Ev_block_invoke + 59
34  com.apple.QuartzCore             0x00007fff8d7b8f1d CA::Layer::display_() + 1565
35  com.apple.AppKit                 0x00007fff961a1220 _NSBackingLayerDisplay + 641
36  com.apple.QuartzCore             0x00007fff8d7aad05 CA::Layer::display_if_needed(CA::Transaction*) + 603
37  com.apple.QuartzCore             0x00007fff8d7aa82d CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 35
38  com.apple.QuartzCore             0x00007fff8d7a9d01 CA::Context::commit_transaction(CA::Transaction*) + 277
39  com.apple.QuartzCore             0x00007fff8d7a994c CA::Transaction::commit() + 508
40  com.apple.QuartzCore             0x00007fff8d7b513b CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 71
41  com.apple.CoreFoundation         0x00007fff8c0fe097 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
42  com.apple.CoreFoundation         0x00007fff8c0fe007 __CFRunLoopDoObservers + 391
43  com.apple.CoreFoundation         0x00007fff8c0dcfe8 CFRunLoopRunSpecific + 328
44  com.apple.HIToolbox              0x00007fff8c64ed55 RunCurrentEventLoopInMode + 235
45  com.apple.HIToolbox              0x00007fff8c64eb8f ReceiveNextEventCommon + 432
46  com.apple.HIToolbox              0x00007fff8c64e9cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
47  com.apple.AppKit                 0x00007fff9603ad96 _DPSNextEvent + 1067
48  com.apple.AppKit                 0x00007fff9603a1c5 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
49  com.apple.AppKit                 0x00007fff9602ed28 -[NSApplication run] + 682
50  com.apple.AppKit                 0x00007fff95ff7fbe NSApplicationMain + 1176
51  com.apple.installer              0x0000000102aec570 0x102aeb000 + 5488
52  libdyld.dylib                    0x00007fff923a75ad start + 1

Thread 1:
0   libsystem_kernel.dylib           0x00007fff8c04c162 __recvfrom + 10
1   com.apple.installframework       0x0000000102b7b8ad do_log_udp_listen + 269
2   libsystem_pthread.dylib          0x00007fff96c459b1 _pthread_body + 131
3   libsystem_pthread.dylib          0x00007fff96c4592e _pthread_start + 168
4   libsystem_pthread.dylib          0x00007fff96c43385 thread_start + 13

Thread 2:
0   libsystem_kernel.dylib           0x00007fff8c04c78a __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff96c4558c _pthread_wqthread + 1283
2   libsystem_pthread.dylib          0x00007fff96c43375 start_wqthread + 13

Thread 3:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib           0x00007fff8c04d0a2 kevent_qos + 10
1   libdispatch.dylib                0x00007fff993e311d _dispatch_mgr_invoke + 216
2   libdispatch.dylib                0x00007fff993e2d85 _dispatch_mgr_thread + 52

Thread 4:
0   libsystem_kernel.dylib           0x00007fff8c04c78a __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff96c4558c _pthread_wqthread + 1283
2   libsystem_pthread.dylib          0x00007fff96c43375 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib           0x00007fff8c04c78a __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff96c4558c _pthread_wqthread + 1283
2   libsystem_pthread.dylib          0x00007fff96c43375 start_wqthread + 13

Thread 6:

Thread 7:
0   libsystem_kernel.dylib           0x00007fff8c046c96 mach_msg_trap + 10
1   libsystem_kernel.dylib           0x00007fff8c0460d7 mach_msg + 55
2   com.apple.DiskManagement         0x00007fff91f80b1f tx_BOOTSTRAP_twoway_SessionBegin + 300
3   com.apple.DiskManagement         0x00007fff91f80877 -[DMManager init] + 1108
4   com.apple.installframework       0x0000000102bf1293 -[IFDMManager setupDM] + 123
5   com.apple.installframework       0x0000000102bf13aa -[IFDMManager init] + 117
6   com.apple.installframework       0x0000000102bf0fe1 +[IFDMManager sharedManager] + 125
7   com.apple.installframework       0x0000000102b7e496 -[IFDiskObject diskRep] + 82
8   com.apple.installframework       0x0000000102b7ea67 -[IFDiskObject filesystemIsLocked] + 26
9   com.apple.installframework       0x0000000102b7e795 -[IFDTargetController(DiskProcessing) _processVolumeTarget:] + 184
10  com.apple.installframework       0x0000000102b7a826 +[IFDTargetController(WorkerThread) _handleTargetRequests] + 318
11  com.apple.Foundation             0x00007fff90631ee4 __NSThread__start__ + 1351
12  libsystem_pthread.dylib          0x00007fff96c459b1 _pthread_body + 131
13  libsystem_pthread.dylib          0x00007fff96c4592e _pthread_start + 168
14  libsystem_pthread.dylib          0x00007fff96c43385 thread_start + 13

Thread 8:: com.apple.NSEventThread
0   libsystem_kernel.dylib           0x00007fff8c046c96 mach_msg_trap + 10
1   libsystem_kernel.dylib           0x00007fff8c0460d7 mach_msg + 55
2   com.apple.CoreFoundation         0x00007fff8c0de2b4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation         0x00007fff8c0dd77c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation         0x00007fff8c0dcfc8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit                 0x00007fff96190d49 _NSEventThread + 149
6   libsystem_pthread.dylib          0x00007fff96c459b1 _pthread_body + 131
7   libsystem_pthread.dylib          0x00007fff96c4592e _pthread_start + 168
8   libsystem_pthread.dylib          0x00007fff96c43385 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x7fffffffffffffff  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x000000000000045a  rbp: 0x00007fff5d10fc70  rsp: 0x00007fff5d10fc50
   r8: 0x0000000000000000   r9: 0x0000000000000010  r10: 0x00007fa69065e270  r11: 0x00007fff75b77d48
  r12: 0x000000000000045a  r13: 0x0000000000000413  r14: 0x000000000000045a  r15: 0x0000000000000000
  rip: 0x00007fff8c064f55  rfl: 0x0000000000010246  cr2: 0x0000000000000000
 
Logical CPU:     6
Error Code:      0x00000004
Trap Number:     14


Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: FPC 2.6.4 installer crash (on El Capitan)
« Reply #1 on: November 26, 2015, 11:12:47 am »
I have no idea what could cause that, but obviously even if there is a problem with the installer package, it shouldn't crash the installer. It definitely looks like a bug Apple's "install" application or in one of the frameworks that it uses.

If you don't specifically need FPC 2.6.4, you can try installing the just release FPC 3.0.0 instead. In the worst case, you could also install FPC 2.6.4 via Fink (http://www.finkproject.org/ ). I don't think there are alternate installer packages available.
« Last Edit: November 26, 2015, 01:10:16 pm by Jonas Maebe »

robsoft

  • New member
  • *
  • Posts: 9
Re: FPC 2.6.4 installer crash (on El Capitan)
« Reply #2 on: November 26, 2015, 11:30:38 am »
Ah, thanks. Like you, I did feel it was an installer issue, possibly due to one of the other development tools I've got on this machine.

I don't actually need 2.6.4, I just want something I can use with Lazarus to do forms/desktop stuff with (strong Delphi background here). The key thing is to have it the same on both my laptop and my desktop, and ultimately to produce (hopefully standalone) executables I can give to other Mac users, putting stuff in GitHub that they could tweak and play with themselves later if so inclined.

I'll try and get 3 working, and if that's good on the desktop I'll update the laptop too. Thanks for the quick reply, and the suggestion itself.

robsoft

  • New member
  • *
  • Posts: 9
Re: FPC 2.6.4 installer crash (on El Capitan)
« Reply #3 on: November 26, 2015, 12:47:34 pm »
I have no idea what could cause that, but obviously even if there is a problem with the installer package, it shouldn't crash the installer. It definitely looks like a bug Apple's "install" application or in one of the frameworks that it uses.

If you don't specifically need FPC 2.6.4, you can try installomg the just release FPC 3.0.0 instead.

Just to confirm, this works fine. Whatever the 2.6.4 installer doesn't like on my system, the 3.0.0 Mac DMG package runs just fine, Lazarus happily compiling and running a demo program here now.

Thanks :-)

 

TinyPortal © 2005-2018