Bug 391157

Summary: virt-manager won't start after su
Product: [openSUSE] openSUSE 11.0 Reporter: Anders Johansson <ajohansson>
Component: XenAssignee: James Fehlig <jfehlig>
Status: RESOLVED DUPLICATE QA Contact: Jason Douglas <jdouglas>
Severity: Normal    
Priority: P5 - None CC: carnold, lslezak
Version: Beta 3   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Anders Johansson 2008-05-16 06:31:22 UTC
11.0 beta 3 with kde4 as desktop

virt-manager doesn't show an warning if you try to start it as non-root, I think it used to say something like "must be run as root", but now it just crashes with an obscure error message about not being able to open /tmp/livirt_sock

If you su to root with "su", virt-manager just crashes. You have to use "su -" to reset the environment. There is something in the user environment that is kept by su without the - that causes it to fail. This also causes it to fail when started from YaST, unless you start yast2 from the command line after "su -"
Comment 1 Anders Johansson 2008-05-16 06:34:00 UTC
Clarification: when started from yast (without "su -"), virt-manager never comes up at all.

When virt-manager is started from the command line (without "su -"), it starts but comes up as "disconnected", and when you try to connect it crashes with a SIGFPE

If it's started after "su -" everything works
Comment 2 Anders Johansson 2008-05-16 06:38:15 UTC
btw, this is a fresh install with a newly created user, so there are no kept settings from 10.3 and no customisations from me
Comment 3 Anders Johansson 2008-05-16 06:40:34 UTC
The same thing happens from xfce, so I don't think it's kde4 specific
Comment 4 Anders Johansson 2008-05-16 06:50:09 UTC
It's in libvirtd

#0  0x00007fe9a91cf5ac in xenDaemonNodeGetInfo (conn=<value optimized out>,
    info=0x7fffbd9bfcb0) at xend_internal.c:1917
1917            info->sockets = nr_cpus / (info->nodes * info->cores * info->threads);

info->threads here is 0, so it's a division by zero

I don't understand why it doesn't happen after "su -" though
Comment 6 James Fehlig 2009-05-29 16:16:18 UTC
This bug appears to be a duplicate of bug#398932.  It was fixed long ago.

*** This bug has been marked as a duplicate of bug 398932 ***