Skip to content

Instantly share code, notes, and snippets.

%start PubSubRefresh::Idle
%class PubSubRefresh
%header PubSubRefresh.h
%map PubSubRefreshMap
%%
Idle
{
Start Refreshing { startRefresh(); }
2009-01-13 09:48:31.400 CustomReturnID[9832:10b] Sending event with returnID: 1 (specified as: -1)
2009-01-13 09:48:31.401 CustomReturnID[9832:10b] Reply has returnID: 1
2009-01-13 09:48:31.551 CustomReturnID[9832:10b] Sending event with returnID: 2 (specified as: -1)
2009-01-13 09:48:31.552 CustomReturnID[9832:10b] Reply has returnID: 2
2009-01-13 09:48:32.528 CustomReturnID[9832:10b] Sending event with returnID: 42 (specified as: 42)
2009-01-13 09:48:32.528 CustomReturnID[9832:10b] Reply has returnID: 42
2009-01-13 09:48:32.727 CustomReturnID[9832:10b] Sending event with returnID: 43 (specified as: 43)
2009-01-13 09:48:32.728 CustomReturnID[9832:10b] Reply has returnID: 43
Thread 11 Crashed:
0 ??? 0xa021e010 0 + 2686574608
1 com.apple.PubSub 0x9418bb58 PubSub::FeedParser::ContentContext::end() + 220
2 com.apple.PubSub 0x9417b74c PubSub::FeedParser::Parser::popTopAndHandleIt() + 104
3 com.apple.PubSub 0x9417b924 PubSub::FeedParser::Parser::handleEndElement(_xmlTextReader*) + 196
4 com.apple.PubSub 0x9417bcd0 PubSub::FeedParser::Parser::handleStartElement(_xmlTextReader*) + 580
5 com.apple.PubSub 0x9417bf50 PubSub::FeedParser::Parser::attemptParse() + 484
6 com.apple.PubSub 0x9417c128 PubSub::FeedParser::Parser::startParsing() + 40
7 com.apple.PubSub 0x9417c26c PubSub::FeedParser::Parser::Parser(__CFData const*, __CFURL const*) + 224
8 com.apple.PubSub 0x9419da80 PubSub::PollingFeeder::parseFeed(__CFData const*, Foundation::NetError&) + 296
<!--
Description: entry content xml:base
Expect: bozo and entries[0]['content'][0]['base'] == u'http://example.com/t
est/'
-->
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<entry>
<content type="application/xhtml+xml" xml:base="http://example.com/test/"><div
xmlns="http://www.w3.org/1999/xhtml">Example <a href="test.html">test</a></div>
</content>
(gdb) bt
#0 0x9525727d in XCFBufInitWithUnicode ()
#1 0x95274b95 in _LSIsKnownExtensionUnicode ()
#2 0x95274adb in _LSCanHideExtension ()
#3 0x95259dcf in _LSCanSetExtensionHidden ()
#4 0x952593be in _LSCopyInfoForNode ()
#5 0x95274a60 in LSCopyItemInfoForRef ()
#6 0x952e0744 in IterateFolder ()
#7 0x952e0f45 in HandleGDUT ()
#8 0x9639bc74 in _fixupAppleEventHandler ()
(gdb) bt
#0 0x9525727d in XCFBufInitWithUnicode ()
#1 0x95274b95 in _LSIsKnownExtensionUnicode ()
#2 0x95274adb in _LSCanHideExtension ()
#3 0x95259dcf in _LSCanSetExtensionHidden ()
#4 0x952593be in _LSCopyInfoForNode ()
#5 0x95274a60 in LSCopyItemInfoForRef ()
#6 0x952e0744 in IterateFolder ()
#7 0x952e0f45 in HandleGDUT ()
#8 0x9639bc74 in _fixupAppleEventHandler ()
(gdb) bt
#0 0x9525727d in XCFBufInitWithUnicode ()
#1 0x95274b95 in _LSIsKnownExtensionUnicode ()
#2 0x95274adb in _LSCanHideExtension ()
#3 0x95259dcf in _LSCanSetExtensionHidden ()
#4 0x952593be in _LSCopyInfoForNode ()
#5 0x95274a60 in LSCopyItemInfoForRef ()
#6 0x952e0744 in IterateFolder ()
#7 0x952e0f45 in HandleGDUT ()
#8 0x9639bc74 in _fixupAppleEventHandler ()
/*
* To recreate:
% gcc -o applescript-crash applescript-crash.m -framework Foundation
% DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib gdb ./applescript-crash
(gdb) run
*/
#import <Foundation/Foundation.h>
Watchpoint 3 Triggered in Thread 1
Expression: “*(int *) 375667156”
New Value: -1073741821
Old Value: -1825099910
(gdb) bt
#0 0x93b60b83 in tiny_free_list_add_ptr ()
#1 0x93b5dbda in szone_free ()
#2 0x93b5d2cd in free ()
#3 0x93373a6a in xmlCleanupCharEncodingHandlers ()
#4 0x93377438 in xmlCleanupParser ()
/* NOTE: The recommended location for flat-file helper binaries is in .../Contents/MacOS. We cannot put the helper there because there is a bug in LaunchServices which can result in the wrong main executable being recorded in the LS database. Subsequent attempts to open the bundled application with LS result in the wrong binary being executed. This happens when
- the helper is in .../Contents/MacOS/
- the helper is executed before the application bundle has been registered with LS
- the helper opens the main application bundle using LS
rdar://problem/5562575
*/