Added a patch libpurple_jabber_parser_error_handler.diff which -may- fix the crash...
commitb84d4c39c10f9106631df99c91023f7e60fcc2d6
authorEvan Schoenberg <evan@adiumx.com>
Fri, 28 Dec 2007 07:00:53 +0000 (28 07:00 +0000)
committerEvan Schoenberg <evan@adiumx.com>
Fri, 28 Dec 2007 07:00:53 +0000 (28 07:00 +0000)
tree457c9d7d475068b6f8d652a6f1fcd2ea90616368
parent3eb838f0d1ca66a4f6e2fe163759cff39719a357
Added a patch libpurple_jabber_parser_error_handler.diff which -may- fix the crash seen by us for quite some time which looks like this:
{{{
Thread 0 Crashed:
0   <<00000000>>  0xfffeff40 objc_msgSend_rtp + 64
1   com.apple.Foundation            0x92cb1d78 _structuredErrorFunc + 48
2   libxml2.2.dylib                 0x91d60cd8 __xmlRaiseError + 1220
3   libxml2.2.dylib                 0x91d6341c xmlSubstituteEntitiesDefault + 1588
4   libxml2.2.dylib                 0x91d56c94 xmlParseChunk + 560
5   libpurple                       0x0b48bc0c jabber_parser_free + 68
}}}
as seen in [http://www.smartcrashreports.com/dev/crash.php?id=18c42ee7244c3effb7527f91b6f55d8aadaf1571 this crash report].

A same-looking crash, with a Foundation-supplied structured error function crashing while attempting to message some unknown ObjC object (or messaging random memory which happens to route through `objc_*`), can be found in [http://www.cocoabuilder.com/archive/message/cocoa/2007/2/27/179496 this cocoadev thread].

Perusing the libxml2 2.6.16 code indicates that supplying our own handler should avoid using the system-supplied one. (How the system is supplying one, I'm not sure, since a call to `xmlSetStructuredErrorFunc()` would be necessary, I think).

git-svn-id: svn://svn.adiumx.com/adium/trunk@22039 1c916fce-81e2-0310-a464-8ca513f45935
Utilities/dep-build-scripts/current_step.sh
Utilities/dep-build-scripts/libpurple_jabber_parser_error_handler.diff [new file with mode: 0644]