smoke testing Beta 1

Lubomir I. Ivanov neolit123 at gmail.com
Thu Sep 3 11:22:43 PDT 2015


On 3 September 2015 at 20:52, Dirk Hohndel <dirk at hohndel.org> wrote:
> On Thu, Sep 03, 2015 at 10:47:42AM -0700, Dirk Hohndel wrote:
>> On Thu, Sep 03, 2015 at 06:31:44PM +0200, Robert C. Helling wrote:
>> >
>> > sudo dtruss -f -t open sudo -u helling \ /Applications/Subsurface.app/Contents/MacOS/Subsurface ssrf.log 2> ssrf.log
>> >
>> > You can find the (at least for me not very illuminating) result attached.
>>
>>
>> Sorry, I should have told you what's missing. Before opening a .so file
>> Qt calls stat64 on it. So you'll need to dtruss for that...
>>
>> What's crazy is that when I try this locally it seems to successfully open
>> it:
>>
>> 21058/0xc04d6: open("/Volumes/Subsurface-4.4.96/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_defaulttags.so\0", 0x1000000, 0x1B6)             = 31 0
>>
>> but then later it does another stat64 and then issues an error
>>
>> 21058/0xc04d6: stat64("/Volumes/Subsurface-4.4.96/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_defaulttags.so\0", 0x7FFF59C08F48, 0x7FFF59C086AE)             = 0 0
>> 21058/0xc04d6:  write_nocancel(0x2, "\"Plugin library 'grantlee_defaulttags' not found.\"\n\0", 0x33)          = 51 0
>>
>> I'm seriously confused.
>
> And while looking at this and being confused, I noticed this...
>
> (this is grepping for libGrantlee_Templates.5.dylib in the dtruss output)
>
> 21058/0xc04d6:  stat64("/Volumes/Subsurface-4.4.96/Subsurface.app/Contents/MacOS/../Frameworks/libGrantlee_Templates.5.dylib\0", 0x7FFF59C0DF68, 0x7FFF59C0DC40)                 = 0 0
> 21058/0xc04d6:  open("/Volumes/Subsurface-4.4.96/Subsurface.app/Contents/MacOS/../Frameworks/libGrantlee_Templates.5.dylib\0", 0x0, 0x0)                 = 3 0
> 21058/0xc04d6:  stat64("/Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08398, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/dhohndel/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B68, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/local/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B68, 0x1)            = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B78, 0x1)          = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08398, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/dhohndel/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B68, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/local/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B68, 0x1)            = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B78, 0x1)          = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08398, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/dhohndel/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B68, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/local/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B68, 0x1)            = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B78, 0x1)          = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C083A8, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/Users/dhohndel/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B78, 0x1)               = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/local/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B78, 0x1)            = -1 Err#2
> 21058/0xc04d6:  stat64("/usr/lib/libGrantlee_Templates.5.dylib\0", 0x7FFF59C08B88, 0x1)          = -1 Err#2
>
> So it finds and opens the shared lib successfully - and then looks for it all
> over the place in the filesystem without finding it anywhere else. WHAT?
>
> So my summary so far - it finds the shared library and the plugins, but it
> doesn't feel like using them for some reason?
>

oh, wow...
i have zero idea what's causing that. perhaps Thiago can help...

lubomir
--


More information about the subsurface mailing list