When I try to connect to MSN gaim crashes with a segfault after the "Password sent" message. (I'm compiling with "-cjk +crypt -debug -nas -nls +perl +spell") Then I compiled with USE="debug" and captured a gdb stack trace: (gdb) run Starting program: /usr/bin/gaim Detaching after fork from child process 3120. Detaching after fork from child process 3121. Program received signal SIGSEGV, Segmentation fault. 0x4066fdae in strncpy () from /lib/libc.so.6 (gdb) bt #0 0x4066fdae in strncpy () from /lib/libc.so.6 #1 0x40e24fcb in msn_ssl_read (gsc=0x824cac8, dest_buffer=0x61) at nexus.c:20 #2 0x40e25416 in login_connect_cb (data=0x824c1d8, gsc=0x824cac8, cond=GAIM_INPUT_READ) at nexus.c:128 #3 0x40af129c in ssl_nss_connect_cb (data=0x824cac8, source=9, cond=97) at ssl-nss.c:225 #4 0x08083516 in no_one_calls (data=0x8254518, source=9, cond=GAIM_INPUT_WRITE) at proxy.c:714 #5 0x080c429a in gaim_gtk_io_invoke (source=0x61, condition=0, data=0x824c940) at gtkeventloop.c:61 #6 0x4044904b in g_vasprintf () from /usr/lib/libglib-2.0.so.0 #7 0x0824ca48 in ?? () #8 0x00000004 in ?? () #9 0x0824c940 in ?? () #10 0x403559f8 in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #11 0x4047c33c in ?? () from /usr/lib/libglib-2.0.so.0 #12 0x0824c9c8 in ?? () #13 0x4047c0fc in g_idle_funcs () from /usr/lib/libglib-2.0.so.0 #14 0x404261aa in g_main_depth () from /usr/lib/libglib-2.0.so.0 #15 0x0824c9c8 in ?? () #16 0x080c4255 in gaim_gtk_io_destroy (data=0x824c940) at gtkeventloop.c:42 Previous frame inner to this frame (corrupt stack?) I searched the forums and I only found a reference to a bug with aspell 0.50.3. I tried with aspell-0.50.5 and with USE="-spell" but it crashes anyway... Reproducible: Always Steps to Reproduce: 1. Start gaim 2. Sign on 3. *poof* Actual Results: Segfault Expected Results: Not segfault I'm using glibc with NPTL, vanilla kernel 2.6.5, gtk 2.4, xfree 4.3.0, updated gentoo..
One vital bit of information is which version and revision of gaim you are using.
I'm using gaim-0.77 (the latest stable version)
latest unstable (gaim-0.77-r2) also craps out at the same place..
I can't duplicate, but a problem in strncpy() tells me that a buffer is being improperly used in upstream code. Please re-file this bug in gaim's bug tracker on sourceforge.net. Be sure to include gaim version and your backtrace.