Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 960709

Summary: Enable smartcards and virt-viewer crashes in W2K8R2 Server
Product: Red Hat Enterprise Virtualization Manager Reporter: Bill Sanford <bsanford>
Component: mingw-virt-viewerAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bsanford, cfergeau, dblechte, mkrcmari, pvine, vipatel
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-14 11:53:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 963835, 973733    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of the v-v crash
none
Windows event log of virt-viewer
none
This is the virt-viewer crashing once with debug in the event viewer none

Description Bill Sanford 2013-05-07 18:06:44 UTC
Description of problem:
When I create a VM and "Enable Smartcard" then enable it in the UP (By making sure "Disable Smartcard" is unchecked), virt-viewer crashes without any smartcard inserted in the W2K8R2 client. This does not happen on a Win7 client.

Version-Release number of selected component (if applicable):

RHEV-M 3.2 (si14)
W2K8R2 client 
spice-client-msi-3.2-10 (mingw-virt-viewer 0.5.3-25).
vdagent-win-0.1-17 to Win7.
Updated with all MS updates and installed IE 10 on guest.

How reproducible:
100%

Steps to Reproduce:
1. See above.
2.
3.
  
Actual results:
Virt-viewer crashes.

Expected results:
Virt-viewer doesn't crash.

Additional info:
Text of the error message:

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	remote-viewer.exe
  Application Version:	1.0.0.0
  Application Timestamp:	517aa7c7
  Fault Module Name:	libglib-2.0-0.dll
  Fault Module Version:	2.32.4.0
  Fault Module Timestamp:	50350914
  Exception Code:	c0000005
  Exception Offset:	000000000001dada
  OS Version:	6.1.7601.2.1.0.274.10
  Locale ID:	1033
  Additional Information 1:	901d
  Additional Information 2:	901db85b00c07aea85249d517388b5dd
  Additional Information 3:	90de
  Additional Information 4:	90deb5c841137d23d4df5139337d2dc9

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

Comment 1 Bill Sanford 2013-05-07 18:08:36 UTC
Created attachment 744849 [details]
Screenshot of the v-v crash

Comment 2 Bill Sanford 2013-05-07 19:01:34 UTC
Created attachment 744867 [details]
Windows event log of virt-viewer

Comment 3 Bill Sanford 2013-05-07 19:24:41 UTC
Created attachment 744883 [details]
This is the virt-viewer crashing once with debug in the event viewer

I made sure that the --spice-debug was on in the registry and cleared the event viewer just to capture this event of the crash

Comment 5 Bill Sanford 2013-05-08 15:10:01 UTC
I tried using the virt-viewer debug and now virt-viewer doesn't crash. How do I remove the virt-viewer debug so I can verify that the crash is still present?

Comment 6 Marc-Andre Lureau 2013-05-08 15:16:32 UTC
(In reply to comment #5)
> I tried using the virt-viewer debug and now virt-viewer doesn't crash. How
> do I remove the virt-viewer debug so I can verify that the crash is still
> present?

the easiest is to just reinstall the client :) but you can modify the HKCU\Software\spice-space.org\spicex\client registry key too

Comment 7 Bill Sanford 2013-05-08 16:23:27 UTC
I removed the virt-viewer and spicex, re-installed by accessing the UP and now I get the crash again.

Comment 14 Marc-Andre Lureau 2013-05-10 21:42:22 UTC
I installed w2k8r2 + updates, including IE10, used RHEVM user portal  I was provided by QA, installed 0.5.3-25  client via cab, and connected to the VM with smartcard enabled, it didn't crash.

Bill, do you have smartcard hardware plugged? could you check the list of process running? Did you install anything else on w2k8?

Could you check again in the log if there is anything suspicious when you start it under debug-helper? (a warning or critical for ex) It's quite surprising it wouldn't crash with it, so it's kinda fishy bug.

Comment 15 Marc-Andre Lureau 2013-05-27 12:36:42 UTC
There is a good chance the crash is related to #963835. Adding dep, I think we should revisit once the fix is released.

Comment 17 David Blechter 2013-09-20 15:19:52 UTC
granted devel ack and moving to ON_QA for verification

Comment 18 Bill Sanford 2013-11-19 15:45:18 UTC
I will try with mingw-virt-viewer-0.5.6-3.el6_4 or later.

Comment 20 Bill Sanford 2013-12-11 20:51:19 UTC
Verified with RHEV-M 3.3 (is26)