[Freeswitch-users] fs core dump after fs_cli disconnected

Lei Tang lei.tlfly at gmail.com
Sat Dec 26 03:48:57 PST 2009


Hi all, I have found the cause of this problem. It due to some code in a
library I loaded into Fs, it set SIGPIPE handler, the handler seemed to be
invalid when SIGPIPE is fired, so FS is broken.

address, so,
2009/12/25 Lei Tang <lei.tlfly at gmail.com>

> BTW my is environment
>
> [root at localhost bin]# uname -a
> Linux localhost.localdomain 2.6.18-164.el5PAE #1 SMP Thu Sep 3 04:10:44 EDT
> 2009 i686 i686 i386 GNU/Linux
> [root at localhost bin]# gcc -v
> 使用内建 specs。
> 目标:i386-redhat-linux
> 配置为:../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
> --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
> --host=i386-redhat-linux
> 线程模型:posix
> gcc 版本 4.1.2 20080704 (Red Hat 4.1.2-46)
>
>
> 2009/12/25 Lei Tang <lei.tlfly at gmail.com>
>
> Hi all and merry holiday, I have encounter fs core dump many times when I
>> exit fs_cli, I'm using the fs 1.0.5pre9.
>> I can reproduce this fault by follow steps
>> 1.launch fs with console
>> 2.press ctrl+z to ext from fs console
>> 3.run fs_cli (from local)
>> 4.press ctrl+z to exit fs_cli (or type /bye)
>> 5.fs core dump.
>>
>> This fault is not reproduced every times, but quite frequent. does some
>> have encountered the same problem or have any idea about it?
>> Any suggestion is appreciated!
>>
>>
>> ====here is the back traces in gdb
>> #0  0x02a6593c in ?? ()
>> (gdb) where
>> #0  0x02a6593c in ?? ()
>> #1  <signal handler called>
>> #2  0x0028a410 in __kernel_vsyscall ()
>> #3  0x0075870b in write () from /lib/libpthread.so.0
>> #4  0x0035451a in apr_socket_send (sock=0x85a12f8,
>>     buf=0x10ab2fb "Disconnected, goodbye.\nSee you at ClueCon!
>> http://www.cluecon.com/\n", len=0x10aaa78)
>>     at network_io/unix/sendrecv.c:41
>> #5  0x002b8d11 in switch_socket_send (sock=0x85a12f8,
>>     buf=0x10ab2fb "Disconnected, goodbye.\nSee you at ClueCon!
>> http://www.cluecon.com/\n", len=0x10ab368) at src/switch_apr.c:697
>> #6  0x0011a3b2 in listener_run (thread=0xb6d9bbf8, obj=0x85a1490)
>>     at
>> /root/src/freeswitch-1.0.5pre9/src/mod/event_handlers/mod_event_socket/mod_event_socket.c:2188
>> #7  0x003564f6 in dummy_worker (opaque=0xb6d9bbf8) at
>> threadproc/unix/thread.c:138
>>
>> ====another back trace
>> (gdb) where
>> #0  0x075e893c in ?? ()
>> #1  <signal handler called>
>> #2  0x002ae410 in __kernel_vsyscall ()
>> #3  0x0075870b in write () from /lib/libpthread.so.0
>> #4  0x001d951a in apr_socket_send (sock=0x92f8650,
>>     buf=0xe9f2fb "Disconnected, goodbye.\nSee you at ClueCon!
>> http://www.cluecon.com/\n", len=0xe9ea78)
>>     at network_io/unix/sendrecv.c:41
>> #5  0x0013dd11 in switch_socket_send (sock=0x92f8650,
>>     buf=0xe9f2fb "Disconnected, goodbye.\nSee you at ClueCon!
>> http://www.cluecon.com/\n", len=0xe9f368) at src/switch_apr.c:697
>> #6  0x005473b2 in listener_run (thread=0xb6dfebf8, obj=0x92f87e8)
>>     at
>> /root/src/freeswitch-1.0.5pre9/src/mod/event_handlers/mod_event_socket/mod_event_socket.c:2188
>> #7  0x001db4f6 in dummy_worker (opaque=0xb6dfebf8) at
>> threadproc/unix/thread.c:138
>> #8  0x007515ab in start_thread () from /lib/libpthread.so.0
>> #9  0x006a7cfe in clone () from /lib/libc.so.6
>>
>> --
>> Lei.Tang
>> lei.tlfly at gmail.com
>>
>
>
>
> --
> Lei.Tang
> lei.tlfly at gmail.com
>



-- 
Lei.Tang
lei.tlfly at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091226/5506a45d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list