[Pidgin] #2491: Gaim 2.0.0beta6 (Ubuntu Feisty) segfaults trying to print "Unable to connect..." error

Pidgin trac at pidgin.im
Thu Aug 9 09:44:44 EDT 2007


#2491: Gaim 2.0.0beta6 (Ubuntu Feisty) segfaults trying to print "Unable to
connect..." error
--------------------------+-------------------------------------------------
 Reporter:  sirianni      |       Type:  defect
   Status:  new           |   Priority:  minor 
Component:  pidgin (gtk)  |    Version:  2.0.0 
 Keywords:                |    Pending:  0     
--------------------------+-------------------------------------------------
 Just a guess, but looks like there's some garbage data getting passed to
 printf:

 #5  0xb791dee2 in gaim_util_fetch_url_error (gfud=0x85db4b0,
 format=0xb795770e "Unable to connect to %s: %s") at
 ../../libgaim/util.c:3088
 '''     args = 0xbfdced78
 "n>/A(îÜ¿žíÜ¿\b=\017\b\232\036Ý¿(îÜ¿Ð\217]\b(îÜ¿ÈíÜ¿tã\225·°\204\026\b(îÜ¿ÈíÜ¿\206\213\220·°Ž]\bÿÿÿÿ(îÜ¿tã\225·Ð\217]\b(îÜ¿èíÜ¿\225M\221·"'''

 The error goes away if I disable the Yahoo account.

 Here is the full debug info:

 {{{
 GNU gdb 6.6-debian
 Copyright (C) 2006 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "i486-linux-gnu"...
 Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
 (gdb) handle SIG33 pass nostop noprint
 Signal        Stop      Print   Pass to program Description
 SIG33         No        No      Yes             Real-time event 33
 (gdb) set pagination 0
 (gdb) run
 Starting program: /usr/bin/gaim
 [Thread debugging using libthread_db enabled]
 [New Thread -1223657776 (LWP 19616)]
 libnm_glib_nm_state_cb: dbus returned an error.
   (org.freedesktop.DBus.Error.ServiceUnknown) The name
 org.freedesktop.NetworkManager was not provided by any .service files
 [New Thread -1241179248 (LWP 19619)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread -1223657776 (LWP 19616)]
 0xb76a5bfb in strlen () from /lib/tls/i686/cmov/libc.so.6
 (gdb) backtrace full
 #0  0xb76a5bfb in strlen () from /lib/tls/i686/cmov/libc.so.6
 No symbol table info available.
 #1  0xb76780cb in vfprintf () from /lib/tls/i686/cmov/libc.so.6
 No symbol table info available.
 #2  0xb769683c in vasprintf () from /lib/tls/i686/cmov/libc.so.6
 No symbol table info available.
 #3  0xb79bc037 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 #4  0xb79ae026 in g_strdup_vprintf () from /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 #5  0xb791dee2 in gaim_util_fetch_url_error (gfud=0x85db4b0,
 format=0xb795770e "Unable to connect to %s: %s") at
 ../../libgaim/util.c:3088
         args = 0xbfdced78
 "n>/A(îÜ¿žíÜ¿\b=\017\b\232\036Ý¿(îÜ¿Ð\217]\b(îÜ¿ÈíÜ¿tã\225·°\204\026\b(îÜ¿ÈíÜ¿\206\213\220·°Ž]\bÿÿÿÿ(îÜ¿tã\225·Ð\217]\b(îÜ¿èíÜ¿\225M\221·"
 #6  0xb791e370 in url_fetch_connect_cb (url_data=0x85db4b0, source=-1,
 error_message=0xbfdcee28 "Error resolving msvrf.yahoo.com:\nName or
 service not known") at ../../libgaim/util.c:3383
 No locals.
 #7  0xb7908b86 in gaim_proxy_connect_data_disconnect
 (connect_data=0x81684b0, error_message=0xbfdcee28 "Error resolving
 msvrf.yahoo.com:\nName or service not known") at ../../libgaim/proxy.c:345
 No locals.
 #8  0xb7914d95 in gaim_dnsquery_failed (query_data=0x85d8fd0,
 error_message=0xbfdcee28 "Error resolving msvrf.yahoo.com:\nName or
 service not known") at ../../libgaim/dnsquery.c:113
 No locals.
 #9  0xb7915bf7 in host_resolved (data=0x85d8fd0, source=7, cond=3) at
 ../../libgaim/dnsquery.c:535
         query_data = (GaimDnsQueryData *) 0x412f3e6e
         rc = <value optimized out>
         err = -2
         hosts = <value optimized out>
         addrlen = <value optimized out>
         message = "Error resolving msvrf.yahoo.com:\nName or service not
 known\000¿0.j·
 aw·Hä/\b\200\027\021\blðÜ¿Ñïi·@ä/\b\200\027\021\b\221\000\000\000áøi·H\227\237·T»i·\200\027\021\bžîÜ¿ôOw·\000\000\000\000\000\000\000\000ýÍi·ìîÜ¿À{x¶¿\203x¶áøi·ôOw·T»i·À{x¶ØïÜ¿ôOw·\000\000\000\000\000\000\000\000ýÍi·\034ïÜ¿À{x¶¿\203x¶lðÜ¿ôOw·"...
 #10 0x08099ce3 in gaim_gtk_io_invoke (source=0x85db880, condition=17,
 data=0x8176bf0) at ../../gtk/gtkeventloop.c:77
         gaim_cond = 3
 #11 0xb79bc40d in ?? () from /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 #12 0x085db880 in ?? ()
 No symbol table info available.
 #13 0x00000011 in ?? ()
 No symbol table info available.
 #14 0x08176bf0 in ?? ()
 No symbol table info available.
 #15 0xb79f9748 in ?? () from /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 #16 0xb77a8be0 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 No symbol table info available.
 #17 0x085ae428 in ?? ()
 No symbol table info available.
 #18 0xbfdcf2d8 in ?? ()
 No symbol table info available.
 #19 0xb7992df2 in g_main_context_dispatch () from
 /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 Backtrace stopped: frame did not save the PC
 (gdb) info registers
 eax            0x412f3e6e       1093615214
 ecx            0x2      2
 edx            0xb7674ea9       -1217966423
 ebx            0xb7774ff4       -1216917516
 esp            0xbfdce5fc       0xbfdce5fc
 ebp            0xbfdcebfc       0xbfdcebfc
 esi            0x412f3e6e       1093615214
 edi            0x80dbf04        135118596
 eip            0xb76a5bfb       0xb76a5bfb <strlen+11>
 eflags         0x210202 [ IF RF ID ]
 cs             0x73     115
 ss             0x7b     123
 ds             0x7b     123
 es             0x7b     123
 fs             0x0      0
 gs             0x33     51
 (gdb) thread apply all backtrace

 Thread 2 (Thread -1241179248 (LWP 19619)):
 #0  0xffffe410 in __kernel_vsyscall ()
 #1  0xb76fd893 in poll () from /lib/tls/i686/cmov/libc.so.6
 #2  0xb7995e03 in ?? () from /usr/lib/libglib-2.0.so.0
 #3  0x0816a4e8 in ?? ()
 #4  0x00000002 in ?? ()
 #5  0xffffffff in ?? ()
 #6  0x0816a4e8 in ?? ()
 #7  0x00000002 in ?? ()
 #8  0xb79f9748 in ?? () from /usr/lib/libglib-2.0.so.0
 #9  0x081684f8 in ?? ()
 #10 0xb6051324 in ?? ()
 #11 0x00000001 in ?? ()
 #12 0x00000001 in ?? ()
 #13 0x081684f8 in ?? ()
 #14 0x0816a4e8 in ?? ()
 #15 0xb76fd820 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #16 0xb77a8be0 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #17 0xb77a7440 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #18 0xb79b0613 in g_thread_self () from /usr/lib/libglib-2.0.so.0
 #19 0xb7996179 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
 #20 0xb7371744 in ?? () from /usr/lib/libnm_glib.so.0
 #21 0x0816ebf0 in ?? ()
 #22 0xb79f9748 in ?? () from /usr/lib/libglib-2.0.so.0
 #23 0x08168578 in ?? ()
 #24 0xb77a8be0 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #25 0xb79f9748 in ?? () from /usr/lib/libglib-2.0.so.0
 #26 0x08168578 in ?? ()
 #27 0xb60513b8 in ?? ()
 #28 0xb79b0b7f in ?? () from /usr/lib/libglib-2.0.so.0
 #29 0x08179790 in ?? ()
 #30 0x08168578 in ?? ()
 #31 0xb77a0000 in ?? ()
 #32 0x00014084 in ?? ()
 #33 0xb763fa18 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #34 0xb77b3ff4 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #35 0xb77a7440 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #36 0xb77b3ff4 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #37 0x00000000 in ?? ()

 Thread 1 (Thread -1223657776 (LWP 19616)):
 #0  0xb76a5bfb in strlen () from /lib/tls/i686/cmov/libc.so.6
 #1  0xb76780cb in vfprintf () from /lib/tls/i686/cmov/libc.so.6
 #2  0xb769683c in vasprintf () from /lib/tls/i686/cmov/libc.so.6
 #3  0xb79bc037 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
 #4  0xb79ae026 in g_strdup_vprintf () from /usr/lib/libglib-2.0.so.0
 #5  0xb791dee2 in gaim_util_fetch_url_error (gfud=0x85db4b0,
 format=0xb795770e "Unable to connect to %s: %s") at
 ../../libgaim/util.c:3088
 #6  0xb791e370 in url_fetch_connect_cb (url_data=0x85db4b0, source=-1,
 error_message=0xbfdcee28 "Error resolving msvrf.yahoo.com:\nName or
 service not known") at ../../libgaim/util.c:3383
 #7  0xb7908b86 in gaim_proxy_connect_data_disconnect
 (connect_data=0x81684b0, error_message=0xbfdcee28 "Error resolving
 msvrf.yahoo.com:\nName or service not known") at ../../libgaim/proxy.c:345
 #8  0xb7914d95 in gaim_dnsquery_failed (query_data=0x85d8fd0,
 error_message=0xbfdcee28 "Error resolving msvrf.yahoo.com:\nName or
 service not known") at ../../libgaim/dnsquery.c:113
 #9  0xb7915bf7 in host_resolved (data=0x85d8fd0, source=7, cond=3) at
 ../../libgaim/dnsquery.c:535
 #10 0x08099ce3 in gaim_gtk_io_invoke (source=0x85db880, condition=17,
 data=0x8176bf0) at ../../gtk/gtkeventloop.c:77
 #11 0xb79bc40d in ?? () from /usr/lib/libglib-2.0.so.0
 #12 0x085db880 in ?? ()
 #13 0x00000011 in ?? ()
 #14 0x08176bf0 in ?? ()
 #15 0xb79f9748 in ?? () from /usr/lib/libglib-2.0.so.0
 #16 0xb77a8be0 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
 #17 0x085ae428 in ?? ()
 #18 0xbfdcf2d8 in ?? ()
 #19 0xb7992df2 in g_main_context_dispatch () from
 /usr/lib/libglib-2.0.so.0
 Backtrace stopped: frame did not save the PC
 (gdb) quit
 The program is running.  Exit anyway? (y or n)
 }}}

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


More information about the Tracker mailing list