[Pidgin] #6972: crash in jabber_presence_parse

Pidgin trac at pidgin.im
Thu Sep 4 19:02:31 EDT 2008


#6972: crash in jabber_presence_parse
---------------------+------------------------------------------------------
 Reporter:  pterjan  |     Owner:  deryni
     Type:  defect   |    Status:  new   
Component:  XMPP     |   Version:  2.5.1 
 Keywords:           |  
---------------------+------------------------------------------------------
 I now get a crash of pidgin on startup

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 0xb6b8e60f in jabber_presence_parse (js=0x8fb1ff8, packet=0x9011a00) at
 presence.c:516
 516                     } else if(!strcmp(y->name, "c") && !strcmp(xmlns,
 "http://jabber.org/protocol/caps")) {
 (gdb) bt full
 #0  0xb6b8e60f in jabber_presence_parse (js=0x8fb1ff8, packet=0x9011a00)
 at presence.c:516
         xmlns = 0x0
         from = 0x8fca4f8 "presence.jabberfr.org"
         type = 0x0
         real_jid = 0x0
         affiliation = 0x0
         role = 0x0
         status = 0x0
         priority = 0
         jid = (JabberID *) 0x883ce70
         chat = (JabberChat *) 0x85e69f0
         jb = (JabberBuddy *) 0x9002348
         found_jbr = <value optimized out>
         flags = PURPLE_CBFLAGS_NONE
         delayed = 0
         b = <value optimized out>
         buddy_name = <value optimized out>
         state = JABBER_BUDDY_STATE_ONLINE
         y = (xmlnode *) 0x8ebd938
         muc = 0
         avatar_hash = 0x0
         caps = (xmlnode *) 0x0
         i = 1
 #1  0xb6b8a678 in jabber_process_packet (js=0x8fb1ff8, packet=0xbf94e320)
 at jabber.c:208
         xmlns = 0x8fd64e8 "jabber:client"
 #2  0xb6b8d803 in jabber_parser_element_end_libxml (user_data=0x8fb1ff8,
 element_name=0x8ff6ea6 "presence", prefix=0x0,
     namespace=0x8ff6c7b "jabber:client") at parser.c:116
         packet = (xmlnode *) 0x9011a00
 #3  0xb72e8f5a in xmlParseEndTag2 (ctxt=0x8ff6600, prefix=0x0,
 URI=0x8ff6c7b "jabber:client", line=0, nsNr=0, tlen=0) at parser.c:9104
         name = (const xmlChar *) 0x1 <Address 0x1 out of bounds>
 #4  0xb72f695d in xmlParseChunk__internal_alias (ctxt=0x8ff6600,
     chunk=0xb6ba3ea0 "<presence from=\"presence.jabberfr.org\"
 to=\"pterjan at gmail.com/GaimBA2D6DF1\"><c
 node=\"http://home.gna.org/xmpp4r/#0.3.2\" hash=\"sha-1\"
 ver=\"hBsB5psIWRk7QwpHjvgcafgpI2Q=\" xmlns=\"\"/></presence>", size=188,
 terminate=0) at parser.c:10895
         end_in_lf = 0
 #5  0xb6b8d6ad in jabber_parser_process (js=0x8fb1ff8,
     buf=0xb6ba3ea0 "<presence from=\"presence.jabberfr.org\"
 to=\"pterjan at gmail.com/GaimBA2D6DF1\"><c
 node=\"http://home.gna.org/xmpp4r/#0.3.2\" hash=\"sha-1\"
 ver=\"hBsB5psIWRk7QwpHjvgcafgpI2Q=\" xmlns=\"\"/></presence>", len=188) at
 parser.c:209
         ret = <value optimized out>
 #6  0xb6b897ce in jabber_recv_cb_ssl (data=0x8fb1ed0, gsc=0x8eb9890,
 cond=PURPLE_INPUT_READ) at jabber.c:429
         js = (JabberStream *) 0x8fb1ff8
         buf = "<presence from=\"presence.jabberfr.org\"
 to=\"pterjan at gmail.com/GaimBA2D6DF1\"><c
 node=\"http://home.gna.org/xmpp4r/#0.3.2\" hash=\"sha-1\"
 ver=\"hBsB5psIWRk7QwpHjvgcafgpI2Q=\"
 xmlns=\"\"/></presence>\0009cd9f6</pho"...
 #7  0xb75ec24c in recv_cb (data=0x8eb9890, source=18,
 cond=PURPLE_INPUT_READ) at sslconn.c:144
 No locals.
 #8  0x080a5186 in pidgin_io_invoke (source=0x8fb6800, condition=<value
 optimized out>, data=0x9012410) at gtkeventloop.c:78
         purple_cond = PURPLE_INPUT_READ
 #9  0xb76d8c90 in g_io_unix_dispatch (source=0x8f7cd90, callback=0x80a5140
 <pidgin_io_invoke>, user_data=0x9012410) at giounix.c:162
         buffer_condition = 0
 #10 0xb76a179a in IA__g_main_context_dispatch (context=0x851ebb8) at
 gmain.c:2142
 No locals.
 #11 0xb76a4eb8 in g_main_context_iterate (context=0x851ebb8, block=1,
 dispatch=1, self=0x84f9008) at gmain.c:2775
         max_priority = 108
         timeout = 0
         some_ready = 1
         nfds = 15
         allocated_nfds = <value optimized out>
         fds = (GPollFD *) 0x8fe1fd8
         __PRETTY_FUNCTION__ = "g_main_context_iterate"
 #12 0xb76a53cb in IA__g_main_loop_run (loop=0x8fb2278) at gmain.c:2983
         self = (GThread *) 0x84f9008
         __PRETTY_FUNCTION__ = "IA__g_main_loop_run"
 #13 0xb79cef6f in IA__gtk_main () at gtkmain.c:1172
         tmp_list = (GList *) 0x0
         functions = (GList *) 0x0
         init = (GtkInitFunction *) 0x0
         loop = (GMainLoop *) 0x8fb2278
 #14 0x080bf142 in main (argc=Cannot access memory at address 0x0
 ) at gtkmain.c:888
         opt_help = <value optimized out>
         opt_login = -1080751920
         opt_nologin = 0
         opt_version = 0
         opt_si = 0
         opt_config_dir_arg = 0x0
         opt_login_arg = 0x1 <Address 0x1 out of bounds>
         opt_session_arg = 0x0
         accounts = <value optimized out>
         sig_indx = <value optimized out>
         sigset = {__val = {82951, 0 <repeats 31 times>}}
         prev_sig_disp = (void (*)(int)) 0x63
         errmsg =
 "À\006\225¿p>ô·Hé\224¿pè\224¿ô/õ·\002\000\000\000\001\000\000\000Ôè\224¿5Èô·\b\000\000\000\024\000\000\000\b\000\000\000Hõù¶£Eô·Tõù¶Hõù¶\b",
 '\0' <repeats 11 times>,
 "šbW·\000\000\000\000Ü\006\225¿Ø\006\225¿Ä5õ·\004eW·ô/õ·\001Çô·ä\021\000\000ô/õ·À\006\225¿p>ô·Œé\224¿äè\224¿ô/õ·\002\000\000\000\001\000\000\000Hé\224¿5Èô·\b\000\000\000\024\000\000\000\b\000\000\0000õù¶£Eô·<õù¶0õù¶\b\000\000\000<ê\224¿šbW·",
 '\0' <repeats 12 times>...
         error = (GError *) 0xb70ce317
         opt = <value optimized out>
         gui_check = <value optimized out>
         debug_enabled = <value optimized out>
         migration_failed = <value optimized out>
         active_accounts = <value optimized out>
         long_options = {{name = 0x810760a "config", has_arg = 1, flag =
 0x0, val = 99}, {name = 0x80f69d6 "debug", has_arg = 0, flag = 0x0,
     val = 100}, {name = 0x80fa068 "help", has_arg = 0, flag = 0x0, val =
 104}, {name = 0x80f6c8e "login", has_arg = 2, flag = 0x0, val = 108},
   {name = 0x8103a1b "multiple", has_arg = 0, flag = 0x0, val = 109}, {name
 = 0x8103a24 "nologin", has_arg = 0, flag = 0x0, val = 110}, {
     name = 0x8103a2c "nocrash", has_arg = 0, flag = 0x0, val = 120}, {name
 = 0x8107600 "session", has_arg = 1, flag = 0x0, val = 115}, {
     name = 0x80fbcaa "version", has_arg = 0, flag = 0x0, val = 118}, {name
 = 0x8107613 "display", has_arg = 1, flag = 0x0, val = 68}, {
     name = 0x8103a34 "sync", has_arg = 0, flag = 0x0, val = 83}, {name =
 0x0, has_arg = 0, flag = 0x0, val = 0}}

 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/6972>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list