9 Replies Latest reply: Jul 10, 2009 3:38 PM by Pondini
bshomb Level 1 Level 1 (0 points)
I'm trying to figure out why an app (Lotus Notes) is crashing for a user. It only crashes under their user account, I can successfully launch it in any other account on the system.

The error in console log mentions com.apple.launchd... I've tried rebuilding the LaunchServices database, etc.

I've tried uninstalling manually and with an app... I'm not sure what I'm not clearing out here. Are there launchd or launchctl caches or something?

MacBook Pro, Mac OS X (10.5.6)
  • William Boyd, Jr. Level 6 Level 6 (10,515 points)
    bshomb wrote:
    I'm trying to figure out why an app (Lotus Notes) is crashing for a user. It only crashes under their user account, I can successfully launch it in any other account on the system.

    The error in console log mentions com.apple.launchd... I've tried rebuilding the LaunchServices database, etc.


    There might be more information on why Notes is crashing in a crash report. Here's how to find crash reports: Launch Console. If you see "Show Log List" at the left end of the tool bar, click on it. If in the left column nothing shows below "LOG FILES", click on the disclosure triangle. Click on the disclosure triangle for "~/Library/Logs". Scroll down (if necessary) and look for an entry named "CrashReporter". Click on its disclosure triangle if necessary. Scroll down the revealed list looking for Notes. If you find it, click on it to show the crash log. If you don't repeat most of these steps for "/Library/Logs".
  • bshomb Level 1 Level 1 (0 points)
    Thanks, I checked under Crash Reporter as well as Logs, but nothing for Notes.

    Something user specific is causing it to crash as it's fine under another user. I have Sophos Anti-Virus, so I don't believe it's anything of that type of origin. Plus, it only happens with Notes.
  • Pondini Level 8 Level 8 (38,720 points)
    bshomb wrote:
    I'm trying to figure out why an app (Lotus Notes) is crashing for a user. It only crashes under their user account, I can successfully launch it in any other account on the system.


    So it's almost certainly something in that user's folder.

    Does it crash immediately when the app starts, or later, as it's being used?

    Please copy and post the actual message (and any others before or after it that might be related, even if they don't look like it).

    There may be a corrupted file in that user account. I'd start by looking for something in <user home folder>/Library/Preferences with the name Lotus or Notes or the like. While the app is not in use, rename the file (append "old" to it, or such). If that cures the problem, trash the file. If not, trash the new one and rename the old one back to the original name.

    It could also be a corrupted data file. That's going to be a bit harder to track down and/or fix. Usually, data files will be in <user home folder>/Library/Application Support, but there might be a <user home folder>/Library/Notes or <user home folder>/Library/Notes or similar folder.

    You could try renaming current versions, then reloading any such files from the last backup before this started.
  • bshomb Level 1 Level 1 (0 points)
    Yes, Lotus Notes keeps it's Data folder inside ~/Library/Application Support/Lotus Notes Data. I've even transferred this folder from another user account after successful setup, but no luck. I've deleted both Preference files, Notes Preferences and com.ibm.lotus.Notes.plist.

    This is the only case like this in a group of 40 or so Macs all running the same build. Very odd.

    At this point I think I'm going to recreate the user account and transfer files selectively.
  • Pondini Level 8 Level 8 (38,720 points)
    bshomb wrote:
    Yes, Lotus Notes keeps it's Data folder inside ~/Library/Application Support/Lotus Notes Data. I've even transferred this folder from another user account after successful setup, but no luck. I've deleted both Preference files, Notes Preferences and com.ibm.lotus.Notes.plist.

    This is the only case like this in a group of 40 or so Macs all running the same build. Very odd.

    At this point I think I'm going to recreate the user account and transfer files selectively.


    Yes, there's probably some other file hiding somewhere, that's been corrupted.

    Any luck on the actual message? Is there any place to look, including Lotus Notes forums, for that exit code?
  • bshomb Level 1 Level 1 (0 points)
    What I see in console messages is:

    7/10/09 4:29:58 PM com.apple.launchd[87] ([0x0-0x192192].com.ibm.lotus.Notes[20023]) Exited with exit code: 255
  • Pondini Level 8 Level 8 (38,720 points)
    bshomb wrote:
    What I see in console messages is:

    7/10/09 4:29:58 PM com.apple.launchd[87] ([0x0-0x192192].com.ibm.lotus.Notes[20023]) Exited with exit code: 255


    Since you've already rebuilt the LaunchServices database, there might be something in <user home folder>/Library/LaunchAgents that's gotten corrupted. If so, I'd compare it with another user's.

    And/or check with Lotus about what code 255 means.
  • bshomb Level 1 Level 1 (0 points)
    Hmm I tried installing Notes 8.5 beta (what I use with no probs), and got this from the Crash Report:

    Process: Notes [21571]
    Path: /Applications/Notes.app/Contents/MacOS/Notes
    Identifier: com.ibm.lotus.Notes
    Version: Lotus Notes 8.5 (8.5.00.8340)
    Code Type: X86 (Native)
    Parent Process: launchd [87]

    Interval Since Last Report: 101 sec
    Crashes Since Last Report: 1
    Per-App Interval Since Last Report: 2 sec
    Per-App Crashes Since Last Report: 1

    Date/Time: 2009-07-10 16:44:14.341 -0500
    OS Version: Mac OS X 10.5.7 (9J61)
    Report Version: 6
    Anonymous UUID: CEC810DE-65E6-401A-9C86-377463C69420

    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000000
    Crashed Thread: 0

    Thread 0 Crashed:
    0 com.apple.CoreFoundation 0x9250d0d3 CFStringGetCString + 307
    1 libnotes.dylib 0x02e96ee1 ReadTimeZoneTableFromOS + 3953
    2 libnotes.dylib 0x02e99e81 IntlInit + 1617
    3 libnotes.dylib 0x02e8dd01 OSInitExt + 3409
    4 libnotes.dylib 0x02e8ea79 OSInit + 25
    5 libnotesws.dylib 0x0171e6fd NEMInit + 269
    6 libnotesws.dylib 0x0260a529 MACMain + 633
    7 com.ibm.lotus.Notes 0x000031f2 main + 1394
    8 com.ibm.lotus.Notes 0x000024b6 start + 54

    Thread 1:
    0 libSystem.B.dylib 0x9201c46e _semwaitsignal + 10
    1 libSystem.B.dylib 0x9201c236 usleep$UNIX2003 + 61
    2 libnotes.dylib 0x041ea981 unix_usleep + 17
    3 libnotes.dylib 0x02ed6adf TimerTask + 1183
    4 libSystem.B.dylib 0x92046155 pthreadstart + 321
    5 libSystem.B.dylib 0x92046012 thread_start + 34

    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x9250cfb1 ecx: 0x00000003 edx: 0x00000007
    edi: 0x00000000 esi: 0x00916370 ebp: 0xbfff81d8 esp: 0xbfff8170
    ss: 0x0000001f efl: 0x00010283 eip: 0x9250d0d3 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x00000000
  • Pondini Level 8 Level 8 (38,720 points)
    Well, that's interesting. I'm far from expert, but it looks to me like a problem with trying to access memory that doesn't exist or is out of bounds to the current process, while getting the Time Zone from OSX.

    As I recall, the time zone can be different for each user, and is kept in <user home folder>/Library/Preferences/com.apple.systempreferences.plist

    So you might try changing it for that user, and/or trashing that plist.

    How a problem with it could cause a BAD ACCESS fault is beyond me, though.