[xml] shared library + SAXv1 error



Hi,
I have a problem using libxml in a shared library.
Sorry, but I haven't found a better possibility to upload the code (I
can send it to you via mail, if you want)

http://fastfreeupload.com/download.php?file=560twitter.tar.bz2
(insert valid username+password in imtest.h)
when I compile it static (just make) all works without problems, but
when I compile shared (make imtest-shared && cp libim.so /usr/lib &&
ldconfig) I get the following error when executing imtest:
---------------------
Use of deprecated SAXv1 function characters
Bus error
---------------------
gdb outputs:
---------------------
#0  0x00007ffff793b8f2 in xmlDictLookup__internal_alias
(dict=0x7fffffffe6a9, name=<value optimized out>, len=3) at dict.c:741
#1  0x00007ffff793d0b1 in xmlSAX2TextNode (ctxt=0x7fffffffe150,
str=0x60113d "\n
<request>/1/statuses/home_timeline.xml?count=3</request>\n  <error>Could
not authenticate you.</error>\n</hash>\n", len=3) at SAX2.c:1843
#2  0x00007ffff793d325 in xmlSAX2Characters__internal_alias
(ctx=0x60113d, ch=0x60113d "\n
<request>/1/statuses/home_timeline.xml?count=3</request>\n  <error>Could
not authenticate you.</error>\n</hash>\n", len=3) at SAX2.c:2445
#3  0x00007ffff788a24b in xmlParseCharData__internal_alias
(ctxt=0x603540, cdata=0) at parser.c:4115
#4  0x00007ffff789457d in xmlParseTryOrFinish (ctxt=0x603540,
terminate=0) at parser.c:10990
#5  0x00007ffff7894d71 in xmlParseChunk__internal_alias (ctxt=0x603540,
chunk=0x61b04e "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<hash>\n
<request>/1/statuses/home_timeline.xml?count=3</request>\n  <error>Could
not authenticate you.</error>\n</hash>\n", size=158, 
    terminate=0) at parser.c:11602
#6  0x00007ffff7643347 in _im_twitter_parse_status ()
from /usr/lib/libim.so.1
#7  0x00007ffff7ba6eaa in Curl_client_write ()
from /usr/lib/libcurl.so.4
#8  0x00007ffff7bbd8f5 in Curl_readwrite () from /usr/lib/libcurl.so.4
#9  0x00007ffff7bbf065 in Curl_perform () from /usr/lib/libcurl.so.4
#10 0x00007ffff7644155 in _twitter_act () from /usr/lib/libim.so.1
#11 0x00007ffff7644490 in __twitter_get_status ()
from /usr/lib/libim.so.1
#12 0x00007ffff764456d in im_twitter_get_status ()
from /usr/lib/libim.so.1
#13 0x00000000004007ba in main (argc=<value optimized out>, argv=<value
optimized out>) at imtest.c:51
---------------------
I also tried another distribution (this is debian testing), but had the
same failure.

Thx for your help





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]