- February, 2008 (5)
- March, 2008 (1)
- April, 2008 (7)
- May, 2008 (8)
- June, 2008 (13)
- July, 2008 (10)
- August, 2008 (6)
- September, 2008 (4)
- November, 2008 (15)
- December, 2008 (4)
Today after my amarok bundle crashed (yet again), and I got the DrKonqui dialog which began using up 171% of my cpu making my fans go crazy, I remembered something. It was not always so. I remembered that I used to have to wait for the Apple Crash Reporter (ACR) to generate a backtrace (bt) before I could launch Amarok again. The ACR immediately generates a bt when OS X programs crash. This seems to take longer than DrKonqui because, with DrKonqui you could just quit and not generate a bt, which I would frequently do. And while I know it's not the
See commenting out that setMenu function allows amarok to quit normally, instead of crashing on exit. I seem to remember markey complaining about that once too. Anyway, now I have a piece of code and I can't rightly remember how it got there. I ditched the backtrace that led me here but I decided to see if I couldn't find it again...
But I still need the backtrace right? Yup. Well OS X thankfully takes care of that by saving crash logs in ~/Library/Logs/CrashReporter/. In that directory you can find all the crash logs for that user's programs listed by name, date, pid and more. They never really meant much to me till I happened upon http://developer.apple.com/technotes/tn2004/tn2123.html . Yes, I browse the ADC for fun when I'm bored. Go die in a fire. Through the magic of browser tabs that never close and session recovery (TY Firefox 3!) I used the Amarok_2008-03-22-114749_orvilles-macbook-pro-15.crash file (close enough to May 21) to (finally) find what was causing the problem. This is what it told me
Date/Time: 2008-03-22 11:47:49.708 -0400 Exception Type: EXC_BAD_ACCESS (SIGBUS) Thread 0 Crashed: So this is what I did And lookit that, problem solved. Temporarily. If I had to guess I'd say the dtor is taking a wrong detour somewhere. :-D Anyhoo, save the guy for later. Per'aps dtrace and gdb will help me fix it when I'm not so lazy and actually understand what the code is trying to do. Or maybe I'll just passively inform markey that maybe I've stumbled onto to source of his problem. Yeah, I like that idea. Hope I remember that after my shower... |
|||
