Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435848 - x11-misc/x11vnc-0.9.13 with net-libs/libvncserver-0.9.9 - buffer overflow detected in /usr/lib/
Summary: x11-misc/x11vnc-0.9.13 with net-libs/libvncserver-0.9.9 - buffer overflow det...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alex Xu (Hello71)
Depends on:
Reported: 2012-09-22 12:24 UTC by Melendro
Modified: 2015-04-04 20:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Memory map (Memory-map.txt,18.29 KB, text/plain)
2012-09-22 12:25 UTC, Melendro
emerge --info (emerge-info.txt,5.42 KB, text/plain)
2012-09-22 12:26 UTC, Melendro

Note You need to log in before you can comment on or make changes to this bug.
Description Melendro 2012-09-22 12:24:48 UTC
After updating libvncserver to version 0.9.9, x11vnc (0.9.13) dies when a client connects. The client I'm using is krdc version 4.8.5 (using libvncserver version in a kubuntu box.

The backtrace in the x11vnc log file is:

*** buffer overflow detected ***: /usr/bin/x11vnc terminated
======= Backtrace: =========
caught signal: 6

Attahed you can find the memory map in the x11vnc log file and my emerge --info.
Comment 1 Melendro 2012-09-22 12:25:48 UTC
Created attachment 324614 [details]
Memory map
Comment 2 Melendro 2012-09-22 12:26:59 UTC
Created attachment 324616 [details]
emerge --info
Comment 3 Melendro 2012-09-22 12:30:38 UTC
Soory, I forgot to say that the problem doesn't appear using embedded libvncserver (USE=-system-libvncserver).
Comment 4 Wadlax 2012-12-10 06:51:55 UTC
I want to confirm this issue :

x11-misc/x11vnc-0.9.13-r1   with USE +system-libvncserver

starting x11vnc in first console , connecting from 2nd , using 

1) net-libs/libvncserver-
+++ screen shows up

2) net-libs/libvncserver-0.9.9-r1

--- Error (on x11vnc console)

*** buffer overflow detected ***: x11vnc terminated
======= Backtrace: =========
--- Error (on x11vnc console)

--- On vncviewer console 
 CConn:       connected to host port 5900
 CConn:       read: Соединение сброшено другой
              стороной (104)
--- On vncviewer console 

3) x11-misc/x11vnc-0.9.13-r1   with USE  -system-libvncserver
+++ screen shows up
Comment 5 Wadlax 2012-12-10 06:59:43 UTC
I think , that it is upstream issue.

I have opened a bug (that is closed now)

Headless  app-emulation/virtualbox (with net-libs/libvncserver-0.9.9 )
crashes when connected via vnc

It was closed with 
"Pin libvncserver down to versions lower than 0.9.9 to prevent crashes in virtualbox"

Now virtualbox-4.2.4-r1.ebuild  depends on
  vnc? ( >=net-libs/libvncserver-0.9.9 )

I will also try to test bug with virtualbox later.

And sorry, i dont know how to report current bug to upstream.
Comment 6 C. Wijtmans 2013-11-05 12:20:37 UTC
i can confirm this issue and thus the system-libvnc useflag should be hard disabled
Comment 7 Alex Xu (Hello71) 2015-04-04 20:53:05 UTC
only latest stable version of packages is supported.