no strace on osx.

i have both gdb & ktrace -- but i haven't figured out how to capture
the trace/output of a not-yet-launched app via finder event.

but, given you're asking about file opens, i'm guessing (?) that
fs_usage /may/ provide what you're looking for ...

{
cref:

http://devworld.apple.com/documentation/Darwin/Reference/ManPages/man1/fs_usage.1.html

http://rentzsch.com/macosx/fs_usageIntro
}

on launch via cmd line, from the qt-console dir,

        cd src/qt-console
        ./bat.app/Contents/MacOS/bat

fs_usage shows,

        fs_usage -w | grep "libqwt"
                11:46:01.825  open            F=3               
libqwt.5.0.2.dylib

 0.000088   bat

which, apparently, works.



on dubl-click in Finder,

        fs_usage -w | grep "qwt"
                11:47:53.040  open                 [  2]        libqwt.5.dylib

 0.000101   bat
                11:47:53.040  open                 [  2]
/Volumes/SystemFiles/local/lib/libqwt.5.dylib
                      0.000058   bat
                11:47:53.040  open                 [  2]
/usr/lib/libqwt.5.dylib
                      0.000028   bat

shows the app attempting to open the symlink:

        libqwt.5.dylib

rather than

        libqwt.5.0.2.dylib

where,

        ls -al /usr/local/qwt-5.0.2/lib/libqwt.5.dylib
                lrwxr-xr-x 1 root wheel 18 2007-08-01 22:10
/usr/local/qwt-5.0.2/lib/libqwt.5.dylib -> libqwt.5.0.2.dylib

in the cmd line example. then also,

        /Volumes/SystemFiles/local/lib/libqwt.5.dylib
        /usr/lib/libqwt.5.dylib

neither of which exists.


finally, again on launch via cmd line, but from a DIFFERENT dir that
the qt-console dir,

        cd /tmp
        /build/bacula/src/qt-console/bat.app/Contents/MacOS/bat

fs_usage shows, as before,

        fs_usage -w | grep "libqwt"
                11:51:01.873  open            F=3               
libqwt.5.0.2.dylib

 0.000091   bat

so, when dubl-clicking the qt-appin finder, something's pointing to
the wrong path, or failing to point to the right one ....

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to