Comment 15 for bug 1070614

Revision history for this message
In , Frantisek (frantisek-redhat-bugs) wrote :

Description of problem:
I start x11vnc by command
/usr/bin/x11vnc -ncache 10 -auth /var/run/lightdm/root/:0 -localhost -display :0
and it run. But at the moment when client (vncviewer from tigervnc-1.2.80-0.10.20130314svn5065.fc18.i686 package) connect to it, x11vnc crashes with message:
*** buffer overflow detected ***: /usr/bin/x11vnc terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x45)[0x4c02cca5]
/lib/libc.so.6[0x4c02ac7a]
/lib/libc.so.6[0x4c02cbaa]
/lib/libvncserver.so.0(rfbProcessNewConnection+0x125)[0x41012835]
/lib/libvncserver.so.0(rfbCheckFds+0x390)[0x41012d40]
/lib/libvncserver.so.0(rfbProcessEvents+0x2f)[0x4100927f]
/usr/bin/x11vnc[0x80f28c1]
/usr/bin/x11vnc[0x80b13af]
/usr/bin/x11vnc[0x8055b43]
/lib/libc.so.6(__libc_start_main+0xf5)[0x4bf38865]
/usr/bin/x11vnc[0x8062999]
======= Memory map: ========
....

Running under gdb (w. debuginfo packages installed) give backtrace:
#0 0xb7fff424 in __kernel_vsyscall ()
#1 0x4bf4db7f in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#2 0x4bf4f4d3 in __GI_abort () at abort.c:90
#3 0x4bf8d405 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x4c091c25 "*** %s ***: %s terminated\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:197
#4 0x4c02cca5 in __GI___fortify_fail (msg=msg@entry=0x4c091bcb "buffer overflow detected") at fortify_fail.c:31
#5 0x4c02ac7a in __GI___chk_fail () at chk_fail.c:28
#6 0x4c02cbaa in __fdelt_chk (d=-1) at fdelt_chk.c:25
#7 0x41012835 in rfbProcessNewConnection (rfbScreen=rfbScreen@entry=0x83f01d0) at sockets.c:407
#8 0x41012d40 in rfbCheckFds (rfbScreen=rfbScreen@entry=0x83f01d0, usec=0) at sockets.c:306
#9 0x4100927f in rfbProcessEvents (screen=0x83f01d0, usec=<optimized out>, usec@entry=0) at main.c:1101
#10 0x080f28c1 in rfbPE (usec=usec@entry=0) at util.c:581
#11 0x080b13af in watch_loop () at screen.c:4527
#12 0x08055b43 in main (argc=8, argv=0xbffff104) at x11vnc.c:5990

Version-Release number of selected component (if applicable):
x11vnc-0.9.13-8.fc18.i686
libvncserver-0.9.9-7.fc18.i686
glibc-2.16-31.fc18.i686