Bug Reproducible SIGSEGV on OS X with particular volume mounted
#1
Hi all,

I have a 100% reproducible sigsegv in Kodi on OS X, whenever a particular volume is mounted.

kodi.log: http://pastebin.com/Any81dvN
Crash reporter log: http://pastebin.com/wtKXt68c
OSX Version: 10.10.4
Platform: Macbook Pro 15"
Install Method: dmg
Version of Kodi/XBMC: 15.0. (Git-20150721-2f34a0c)

To reproduce:
1) Plug in USB device (HDD dock)
2) Mount encrypted FAT32 volume using TrueCrypt
3) Open Kodi
4) Go to 'files'
5) Kodi segfaults immediately, per above Crash reporter log

It seems to be to do with the inner volume (the FAT32 encrypted), as if I use Disk Utility to unmount the volume (but leave USB drive plugged in, with no volumes mounted thereon) the segfault doesn't occur.

This worked fine in Helix.
Reply
#2
Aha! An update: I noticed the crashed thread (23) had Cocoa_GetVolumeNameFromMountPoint in the stack trace. Coincidentally, this volume has no volume label (and so mounts as /Volume/Untitled). If I give it a label, the crash goes away. So I'm guessing that the call to fetch the volume label can return NULL, which later leads to a segfault?

Should be an easy fix then (and an easy workaround!)
Reply
#3
This was merged today (will be in affect in the next nightly):

https://github.com/xbmc/xbmc/pull/7642

Also here is a testbuild which has this fix (its based on isengard):

http://mirrors.kodi.tv/test-builds/osx/x...x86_64.dmg

Please try it and report back how it behaves for you
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Reproducible SIGSEGV on OS X with particular volume mounted0