CTSRD-CHERI / CheriVis

Tool for exploring CHERI and BERI streamtraces.
Other
2 stars 2 forks source link

CheriVia.app should bundle liblzma #4

Open brooksdavis opened 8 years ago

brooksdavis commented 8 years ago
Process:               CheriVis [8306]
Path:                  /Users/USER/Downloads/CheriVis.app/Contents/MacOS/CheriVis
Identifier:            uk.ac.cam.cl.ctsrd.CheriVis
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           CheriVis [8306]
User ID:               501

Date/Time:             2016-02-18 10:08:34.200 -0800
OS Version:            Mac OS X 10.11.3 (15D21)
Report Version:        11
Anonymous UUID:        2F979E74-2771-80FE-D77D-862154EE710A

Sleep/Wake UUID:       0086C77F-AABE-482D-8201-8D566A5225B9

Time Awake Since Boot: 85000 seconds
Time Since Wake:       3100 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/xz/lib/liblzma.5.dylib
  Referenced from: /Users/brooks/Downloads/CheriVis.app/Contents/Resources/libcheritrace.dylib
  Reason: Incompatible library version: libcheritrace.dylib requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0

Binary Images:
    0x7fff6bafb000 -     0x7fff6bb32007  dyld (360.19) <9D05FDF4-65CE-3B53-86D4-ABE1A5BF35F3> /usr/lib/dyld
    0x7fff857d0000 -     0x7fff85b3b657  libobjc.A.dylib (680) <58CB8CFC-7DBD-3A53-BD72-A42FF799B21E> /usr/lib/libobjc.A.dylib
    0x7fff85e76000 -     0x7fff86a99ff7  com.apple.AppKit (6.9 - 1404.34) <467468E2-C551-3408-B351-414B21F57DEB> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff86c6e000 -     0x7fff86c9fff7  libncurses.5.4.dylib (46) <D4C10699-3E8F-3F42-A695-7490EA4B6B32> /usr/lib/libncurses.5.4.dylib
    0x7fff8757e000 -     0x7fff8757fffb  libSystem.B.dylib (1226.10.1) <5A4257EF-3145-3BB3-87A4-0D2404A9462D> /usr/lib/libSystem.B.dylib
    0x7fff8c384000 -     0x7fff8c6d8ff7  com.apple.Foundation (6.9 - 1256.1) <66106CC9-9D97-3846-88D8-4BF6BB508296> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff8e2fa000 -     0x7fff8e34dff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff8f320000 -     0x7fff8f320fff  com.apple.Cocoa (6.11 - 22) <0A634D46-B468-3CBC-B2A0-16C381C11BF2> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff971eb000 -     0x7fff971fcff7  libz.1.dylib (61.20.1) <B3EBB42F-48E3-3287-9F0D-308E04D407AC> /usr/lib/libz.1.dylib
    0x7fff98362000 -     0x7fff987d8fff  com.apple.CoreFoundation (6.9 - 1256.14) <768A7FB7-9143-3148-8591-7C6ED3162D35> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

Model: MacBookAir4,2, BootROM MBA41.0077.B14, 2 processors, Intel Core i7, 1.8 GHz, 4 GB, SMC 1.73f66
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE9), Broadcom BCM43xx 1.0 (5.106.98.100.24)
Bluetooth: Version 4.4.3f4 16616, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: OWC Aura SSD, 480.1 GB
USB Device: USB 2.0 Bus
USB Device: FaceTime Camera (Built-in)
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: Card Reader
Thunderbolt Bus: MacBook Air, Apple Inc., 8.1
davidchisnall commented 8 years ago

brew install xz will fix this. I'd rather not bundle things that can be installed from a package manager, but I'll do it in the next release if it's problematic.

brooksdavis commented 8 years ago

The current situation seems overly fragile. I had xz-5.0.5 installed:

connrefused:~ brooks$ brew install xz
Error: xz-5.0.5 already installed
To install this version, first `brew unlink xz`

I did an upgrade (to 5.2.2) and after that it did work.

davidchisnall commented 8 years ago

Hmm, I hadn't realised that it was that fragile. We're already setting the rpath to point inside the bundle, so it should be easy to bindle the liblzma.dylib from the machine of whoever builds it. This will make xz a build-time dependency, but should make the generated .app work for anyone.