Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause:
When using vnc reverse mode (qemu connects to vnc viewer instead of the other way around) the vnc server tried to access the display before initialization.
Consequence:
Guest core dumped
Fix:
Initialize display before using it.
Result:
Doesn't core dump
Mark qa ack+,however,still have a question?what's the parameter "reverse" for?do
we must identify the client ip? for example -vnc $client ip:7000,"reverse",if
yes,in practice,it's a little difficult to know which client will be
connected.so,anybody can enlight me?
I have reproduced this issue on qemu-kvm-0.12.1.2-2.236.el6.x86_64 and verified
this issue on qemu-kvm-0.12.1.2-2.237.el6.x86_64 with the same steps.
The result of reproduce is that the QEMU-kvm get Segmentation fault, and the details as following:
Program received signal SIGSEGV, Segmentation fault.
(gdb) bt
#0 vnc_refresh_server_surface (vd=0x7ffff92da010) at vnc.c:2321
#1 0x00007ffff7e9177c in vnc_refresh (opaque=0x7ffff92da010) at vnc.c:2361
#2 0x00007ffff7e91a8c in vnc_init_timer (vd=0x7ffff92da010, csock=<value optimized out>) at vnc.c:2392
#3 vnc_connect (vd=0x7ffff92da010, csock=<value optimized out>) at vnc.c:2443
#4 0x00007ffff7e91e0f in vnc_display_open (ds=<value optimized out>, display=<value optimized out>) at vnc.c:2744
#5 0x00007ffff7dfacd3 in main (argc=20, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6357
(gdb) q
The result of verify is that do not get any segmentation fault, and the guest boot up with QEMU connecting to the listening vnc successfully.
Above all, this issue has been fixed.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Cause:
[NEEDINFO: Gerd, could you please add this info?]
Consequence:
Guest core dumped
Fix:
[NEEDINFO: Gerd, could you please add this info?]
Result:
Doesn't core dump
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,11 +1,11 @@
Cause:
-[NEEDINFO: Gerd, could you please add this info?]
+When using vnc reverse mode (qemu connects to vnc viewer instead of the other way around) the vnc server tried to access the display before initialization.
Consequence:
Guest core dumped
Fix:
-[NEEDINFO: Gerd, could you please add this info?]
+Initialize display before using it.
Result:
Doesn't core dump
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2012-0746.html
Description of problem: The command line parameter value of "reverse" should make qemu try to connect instead of waiting for incoming connections. But Qemu-kvm core dumped when connecting to the listening vnc. Version-Release number of selected component (if applicable): host info: # uname -r && rpm -q qemu-kvm 2.6.32-220.el6.x86_64 qemu-kvm-0.12.1.2-2.210.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. launch a listening vnc on host A by: $ vncviewer -listen 7000 2. launch qemu-kvm process and try to connect to the listening vnc on host B by: ... -vnc ${ip_of_host_A's}:7000,"reverse" Actual results: The Qemu-kvm core dumped when connecting to the listening vnc. (gdb) bt #0 vnc_refresh_server_surface (vd=0x2511010) at vnc.c:2321 #1 0x00000000004de22c in vnc_refresh (opaque=0x2511010) at vnc.c:2361 #2 0x00000000004de527 in vnc_init_timer (vd=0x2511010, csock=<value optimized out>) at vnc.c:2392 #3 vnc_connect (vd=0x2511010, csock=<value optimized out>) at vnc.c:2443 #4 0x00000000004de88b in vnc_display_open (ds=<value optimized out>, display=<value optimized out>) at vnc.c:2744 #5 0x000000000040d649 in main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6332 (gdb) q Expected results: The qemu connect instead of waiting for the listening vnc successfully. Additional info: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz stepping : 7 cpu MHz : 1600.000 cache size : 6144 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 6 initial apicid : 6 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid bogomips : 6185.15 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: