#48 call graph crashes on mac

open
nobody
5
2012-03-05
2012-03-05
Anonymous
No

when I try to use the call graph, the system crashes with the following error message:

hosna@hosna-mac ~/work/HFold-2011 $ kcachegrind &
[1] 11813
hosna@hosna-mac ~/work/HFold-2011 $ trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/tmp-hosna-mac.local: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/startkdeinitlockXXXXXX.tmp: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/startkdeinitlockXXXXXX.tmp: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/startkdeinitlockXXXXXX.tmp: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/startkdeinitlockXXXXXX.tmp: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/startkdeinitlockXXXXXX.tmp: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/startkdeinitlockXXXXXX.tmp: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/share: Permission denied
trying to create local folder /Users/hosna/.kde/socket-hosna-mac.local: Permission denied
trying to create local folder /Users/hosna/.kde/socket-hosna-mac.local: Permission denied
kdeinit: Aborting. bind() failed: : Permission denied
Could not bind to socket '/Users/hosna/.kde/socket-hosna-mac.local/kdeinit_/tmp/launch-jT6n8b/_0'
kcachegrind: Loading ./callgrind.out.11559 ...
kcachegrind: Selected main
trying to create local folder /Users/hosna/.kde/tmp-hosna-mac.local: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/kcachegrindXXXXXX.dot: Permission denied
kcachegrind: CallGraphView::refresh
trying to create local folder /Users/hosna/.kde/tmp-hosna-mac.local: Permission denied
kcachegrind: WARNING: KTempFile: Error trying to create /Users/hosna/.kde/tmp-hosna-mac.local/kcachegrindXXXXXX.dot: Permission denied

[1]+ Bus error kcachegrind
hosna@hosna-mac ~/work/HFold-2011 $

Discussion

  • Why can a program run by you not create any directories/files in your own home directory?
    This seems to be a missconfiguration on your side?

    You can argue that KCachegrind should not crash in that case, but give a nice error.
    But as it needs to create a dot file for the callgraph view to work, you would not
    be able to see anything anyway.

    Hmm... did you compile this on your own? Perhaps there is a problem with the KDE
    library? You can try to compile qcachegrind instead (in subdirectory qcachegrind),
    using Qt only (compile with "qmake;make").

     
  • fracarz
    fracarz
    2012-05-05

    I compiled qcachegrind on my mac without problems (qmake -spec 'macx-g++' ; make).
    However, the generated app "qcachegrind" crashes on running with the following error:

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Thread 0 Crashed: Dispatch queue: com.apple.main-thread
    0 QtCore 0x00000001004af4cb QObject::moveToThread(QThread*) + 17
    1 QtDBus 0x00000001002a298b QDBusDefaultConnection::QDBusDefaultConnection(QDBusConnection::BusType, char const*) + 171
    2 QtDBus 0x00000001002a1bdf QDBusConnection::sessionBus() + 71
    3 com.yourcompany.qcachegrind 0x00000001000e1a88 QCGTopLevel::QCGTopLevel() + 296 (qcgtoplevel.cpp:66)
    4 com.yourcompany.qcachegrind 0x00000001000d1137 main + 800 (qcgmain.cpp:56)
    5 com.yourcompany.qcachegrind 0x0000000100002b18 start + 52

    etc.etc.

    It could be a problem with the Qt 4.8 library?