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.

Bug 1055432

Summary: KDM hangs at reboot or shutdown.
Product: Red Hat Enterprise Linux 6 Reporter: vinay <vchoudha>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED WORKSFORME QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.5CC: ajax, ashishks, dvratil, than, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-25 15:32:53 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:
Attachments:
Description Flags
Core dump created using child option in 'gdbinit-kdm'
none
Core dump created using parent option in 'gdbinit-kdm' none

Description vinay 2014-01-20 09:11:11 UTC
Created attachment 852657 [details]
Core dump created using child option in 'gdbinit-kdm'

Description of problem: KDM crashing at shutdown and reboot. Logout works fine.


Version-Release number of selected component (if applicable):
kdm-4.3.4-24.el6.x86_64


How reproducible: Always reproducible at customers end in a virtual environment only with non-root users. 


Steps to Reproduce:
1. Use the configuration below

------------------------------------------------
# Configuration
-------------------------------------------------
##### XServers
vi /etc/kde/kdm/Xservers
:0 local /usr/bin/X :1 vt7
:1 local /usr/bin/X :1 vt8
:2 local /usr/bin/X :1 vt9
:3 local /usr/bin/X :1 vt10

###### kdmrc
vi /etc/kde/kdm/kdmrc
[General]
PidFile=/var/run/kdm.pid
StaticServers=:0,:1,:2,:3
#
[Shutdown]
HaltCmd=/sbin/poweroff
RebootCmd=/sbin/reboot
UseLilo=false
#
[X-*-Core]
AllowNullPasswd=true
AllowRootLogin=false
AllowShutdown=Root
AutoReLogin=false
Reset=/usr/share/config/kdm/Xreset
Resources=/etc/X11/Xresources
Session=/usr/share/config/kdm/Xsession
SessionsDirs=/usr/share/xsessions
Setup=/usr/share/config/kdm/Xsetup
Startup=/usr/share/config/kdm/Xstartup
#
[X-*-Greeter]
AntiAliasing=true
ColorScheme=
DefaultUser=test
EchoMode=OneStar
FaceSource=AdminOnly
FailFont=Sans,10,-1,5,75,0,0,0,0,0
FocusPasswd=false
GUIStyle=Bluecurve
GreetFont=Sans,12,-1,5,75,0,0,0,0,0
GreetString=Remote login on %n
GreeterPos=50,50
HiddenUsers=adm,alias,amanda,apache,bin,bind,daemon,exim,falken,ftp,games,gdm,gopher,halt,httpd,ident,ingres,kmem,lp,mail,mailnull,man,mta,mysql,named,news,nfsnobody,nobody,nscd,ntp,operator,pcap,pop,postfix,postgres,q
maild,qmaill,qmailp,qmailq,qmailr,qmails,radvd,reboot,rpc,rpcuser,rpm,sendmail,shutdown,squid,sympa,sync,tty,uucp,xfs,xten
Language=en_US
LogoArea=Clock
LogoPixmap=
MaxShowUID=65000
MinShowUID=500
PreselectUser=None
SelectedUsers=
SessionTypes=default,kde,failsafe,gnome
ShowUsers=NotHidden
SortUsers=true
StdFont=Sans,10,-1,5,50,0,0,0,0,0
UseBackground=true
UserCompletion=false
UserList=false
BackgroundCfg=/usr/share/config/kdm/backgroundrc.utv
#
[X-:*-Core]
AllowNullPasswd=true
AllowRootLogin=false
AllowShutdown=All
NoPassEnable=false
NoPassUsers=
#
[X-:*-Greeter]
AllowClose=false
LoginMode=DefaultLocal
 
#
#[X-:0-Core]
#ServerArgsLocal=
#
 
[X-:0-Greeter]
GreetString=Local login on %n
LoginMode=DefaultLocal
BackgroundCfg=/usr/share/config/kdm/backgroundrc.utv
#
[X-:1-Greeter]
ChooserHosts=ws01p,ws02p,ws03p,ws04p,ws05p,ws06p,ws07p,ws08p,ws09p,ws10p,ws11p,ws12p,ws13p,ws14p,ws15p,ws16p,ws17p,ws18p,ws19p,ws20p,ws21p,ws22p,ws23p,ws24p,ws25p,ws26p,ws27p,ws28p,ws29p,ws30p
LoginMode=RemoteOnly
BackgroundCfg=/usr/share/config/kdm/backgroundrc.prod
#
[X-:2-Greeter]
ChooserHosts=ws01t,ws02t,ws03t,ws04t,ws05t,ws06t,ws07t,ws08t,ws09t,ws10t,ws11t,ws12t,ws13t,ws14t,ws15t,ws16t,ws17t,ws18t,ws19t,ws20t,ws21t,ws22t,ws23t,ws24t,ws25t,ws26t,ws27t,ws28t,ws29t,ws30t
LoginMode=RemoteOnly
BackgroundCfg=/usr/share/config/kdm/backgroundrc.test
#
[X-:3-Greeter]
ChooserHosts=ws12p,ws14p,ws28p
LoginMode=RemoteOnly
BackgroundCfg=/usr/share/config/kdm/backgroundrc.ckr
#
[Xdmcp]
Enable=true
Willing=/usr/share/config/kdm/Xwilling
Xaccess=/usr/share/config/kdm/Xaccess

#### backgroundrc.*
vi /etc/kde/kdm/backgroundrc.{prod,test,ckr,utv}
[Desktop0]
BackgroundMode=Flat
BlendBalance=100
BlendMode=NoBlending
ChangeInterval=60
Color1=195,46,48
Color2=0,0,0
CurrentWallpaper=0
LastChange=0
MinOptimizationDepth=1
MultiWallpaperMode=NoMulti
ReverseBlending=false
UseSHM=false
Wallpaper=/usr/share/wallpapers/wallpaper_{p,t,c,u}.jpg
WallpaperMode=Scaled

ls /usr/share/wallpapers/
wallpaper_p.jpg wallpaper_t.jpg wallpaper_c.jpg wallpaper_u.jpg

#End of Configuration

# Start logs
#/var/log/messages
Dec 13 10:32:47 ws03u kdm_config[8172]: Unrecognized key 'UseLilo' in section [Shutdown] at /usr/share/config/kdm/kdmrc:8
Dec 13 10:32:47 ws03u kdm_config[8172]: Unrecognized key 'EchoMode' in section [X-*-Greeter] at /usr/share/config/kdm/kdmrc:26
Dec 13 10:32:47 ws03u kdm_config[8172]: Unrecognized key 'SessionTypes' in section [X-*-Greeter] at /usr/share/config/kdm/kdmrc:42
Dec 13 10:33:01 ws03u kdm: :0 '[8341]: Cannot execute "/usr/share/config/kdm/Xstartup": No such file or directory
Dec 13 10:33:25 ws03u polkitd[8490]: started daemon version 0.96 using authority implementation `local' version `0.96'
Dec 13 10:36:39 ws03u kdm: :0[8540]: Cannot execute "/usr/share/config/kdm/Xreset": No such file or directory
Dec 13 10:36:40 ws03u kdm: :3[8175]: Fatal X server IO error: Interrupted system call
Dec 13 10:36:40 ws03u kdm: :2[8182]: Fatal X server IO error: Interrupted system call
Dec 13 10:36:40 ws03u kdm: :1[8190]: Fatal X server IO error: Interrupted system call

#/home/user/.xsession-errors
Output name: "HDMI1"
Output refresh rate: 59.9543
Output rect: QRect(0,0 1680x1050)
Output rotation: 1
RandRScreen::loadSettings - adding output:  68
Setting CRTC 0 on output "DP1" (previous 0 )
XRandROutputs::init
  added output  66
  added output  67
  added output  68
output: "DP1" QRect(0,0 0x0) 0 false false
output: "HDMI1" QRect(0,0 1680x1050) 0 false false
output: "VGA1" QRect(0,0 0x0) 0 false false
load xml
connected: 1
looking for current "HDMI1"
known "*" has score: 0.25
screen: 0 QRect(0,0 1680x1050)
looking for a matching configuration...
connected: 1
looking for current "HDMI1"
known "*" has score: 0.25
found outputs, known: false
connected: 1
looking for current "HDMI1"
known "*" has score: 0.25
activate external configuration!!
registered the service: true
screens registered on the bus: true
outputs registered on the bus: true
configurations registered on the bus: true
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusObjectPath: invalid path ""
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QFont::setPointSize: Point size <= 0 (0), must be greater than 0
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QGraphicsLinearLayout::removeAt: invalid index 0
QGraphicsLinearLayout::removeAt: invalid index 0
Object::connect: No such signal SystemTray::Manager::jobStateChanged(SystemTray::Job*)
Invalid D-BUS interface name 'org.kde.plasma-desktop.PlasmaApp' found while parsing introspection
<unknown program name>(8478)/ kdemain: Xlib XKB extension major= 1  minor= 0

(polkit-gnome-authentication-agent-1:8484): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'

(polkit-gnome-authentication-agent-1:8484): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
QDBusObjectPath: invalid path ""
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
"/usr/bin/krunner(8486)" Error in thread 139847712270400 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/krunner(8486)" Error in thread 139847712270400 : "QLocalSocket::connectToServer: Invalid name"
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted
X Error: BadWindow (invalid Window parameter) 3
  Extension:    129 (Uknown extension)
  Minor opcode: 6 (Unknown request)
  Resource id:  0x1c00350
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x1c00350
startkde: Shutting down...
klauncher: Exiting on signal 1
startkde: Running shutdown scripts...
startkde: Done.

#/var/log/Xorg.0.log
[    48.444] (**) Option "xkb_model" "pc105"
[    48.444] (**) Option "xkb_layout" "se"
[    48.444] (WW) Option "xkb_variant" requires an string value
[    48.444] (WW) Option "XkbVariant" requires an string value
[    48.444] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    48.447] (II) config/hal: Adding input device Macintosh mouse button emulation
[    48.447] (II) Using input driver 'evdev' for 'Macintosh mouse button emulation'
[    48.447] (**) Macintosh mouse button emulation: always reports core events
[    48.447] (**) evdev: Macintosh mouse button emulation: Device: "/dev/input/event2"
[    48.451] (--) evdev: Macintosh mouse button emulation: Vendor 0x1 Product 0x1
[    48.451] (--) evdev: Macintosh mouse button emulation: Found 3 mouse buttons
[    48.451] (--) evdev: Macintosh mouse button emulation: Found relative axes
[    48.451] (--) evdev: Macintosh mouse button emulation: Found x and y relative axes
[    48.451] (II) evdev: Macintosh mouse button emulation: Configuring as mouse
[    48.451] (**) evdev: Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
[    48.451] (**) evdev: Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    48.451] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/computer_logicaldev_input_2"
[    48.451] (II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE, id 11)
[    48.451] (II) evdev: Macintosh mouse button emulation: initialized for relative axes.
[    48.451] (**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
[    48.451] (**) Macintosh mouse button emulation: (accel) acceleration profile 0
[    48.451] (**) Macintosh mouse button emulation: (accel) acceleration factor: 2.000
[    48.451] (**) Macintosh mouse button emulation: (accel) acceleration threshold: 4
[    48.454] (II) config/hal: Adding input device HDA Intel PCH HDMI/DP,pcm=3
[    48.454] (II) Using input driver 'evdev' for 'HDA Intel PCH HDMI/DP,pcm=3'
[    48.454] (**) HDA Intel PCH HDMI/DP,pcm=3: always reports core events
[    48.454] (**) evdev: HDA Intel PCH HDMI/DP,pcm=3: Device: "/dev/input/event6"
[    48.461] (--) evdev: HDA Intel PCH HDMI/DP,pcm=3: Vendor 0 Product 0
[    48.461] (WW) evdev: HDA Intel PCH HDMI/DP,pcm=3: Don't know how to use device
[    48.473] (EE) PreInit returned 8 for "HDA Intel PCH HDMI/DP,pcm=3"
[    48.473] (II) UnloadModule: "evdev"
[    48.473] (EE) config/hal: NewInputDeviceRequest failed (8)
[    77.417] (II) intel(0): EDID vendor "HWP", prod id 9980
[    77.417] (II) intel(0): Using EDID range info for horizontal sync
[    77.417] (II) intel(0): Using EDID range info for vertical refresh
[    77.417] (II) intel(0): Printing DDC gathered Modelines:
[    77.417] (II) intel(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz eP)
[    77.417] (II) intel(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    77.417] (II) intel(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[    77.417] (II) intel(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    77.417] (II) intel(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    77.417] (II) intel(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    77.417] (II) intel(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    77.417] (II) intel(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    77.417] (II) intel(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[    77.417] (II) intel(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[    77.417] (II) intel(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[    77.417] (II) intel(0): Modeline "1280x960"x0.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[    77.417] (II) intel(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    77.417] (II) intel(0): Modeline "1440x900"x0.0   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[    77.417] (II) intel(0): Modeline "1600x1000"x60.0  133.14  1600 1704 1872 2144  1000 1001 1004 1035 -hsync +vsync (62.1 kHz e)
[    77.417] (II) intel(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[   277.360] (II) evdev: Macintosh mouse button emulation: Close
[   277.360] (II) UnloadModule: "evdev"
[   277.360] (II) evdev: Power Button: Close
[   277.360] (II) UnloadModule: "evdev"
[   277.360] (II) evdev: Video Bus: Close
[   277.360] (II) UnloadModule: "evdev"
[   277.360] (II) evdev: Power Button: Close
[   277.360] (II) UnloadModule: "evdev"
[   277.360] (II) evdev: No brand KVM: Close
[   277.360] (II) UnloadModule: "evdev"
[   277.360] (II) evdev: No brand KVM: Close
[   277.360] (II) UnloadModule: "evdev"
[   277.599] Server terminated successfully (0). Closing log file.

Hide Section - Tags

2.
3.

Actual results: System is not going down properly


Expected results: Should shutdown properly


Additional info:

Comment 1 vinay 2014-01-20 09:12:50 UTC
Created attachment 852658 [details]
Core dump created using parent option in 'gdbinit-kdm'

Comment 3 Martin Bříza 2014-01-22 14:02:42 UTC
SIGINT doesn't mean KDM crashes but that somebody interrupted it... SIGUSR1 is not a crash either, GDB captured internal communication of the daemon with its children.
That doesn't change the fact it should shutdown properly instead of displaying a black screen.