Bug 62336 - shortcut to konsole hangs the system for 5 seconds and opent it to phantom screen
Summary: shortcut to konsole hangs the system for 5 seconds and opent it to phantom sc...
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.2.3
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-07 17:08 UTC by Lesley van Zijl
Modified: 2004-05-11 09:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lesley van Zijl 2003-08-07 17:08:53 UTC
Version:           1.2.3 (using KDE KDE 3.1.3)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice
OS:          Linux

Already filled in bug report on bugs.gentoo.org,  but they said I should fill in a bug report here
info from bugs.gentoo.org:

Situation:
I have a kde 3.1.3 2screen Xinerama layout on 2 gfx cards
I have have various shortcuts in kde, one for 'konsole --nomenubar --noframe
--notoolbar --noscrollbar --geometry 600' (ctrl + r) and one for
'/usr/bin/MozillaFirebird' (ctrl + e)

Problem:
the 'ctrl + e' one works perfectly, but as soon as I use the 'ctrl + r' one
(which I do a lot ;))
the system hangs for 5 seconds (100% CPU can't do anything etc.) just before
that I see a Shell - Konsole <n> in my taskbar but it doesn't appear where my
mouse is (as it did in kde-3.1.2) the most annoying thing is that it appears
fullscreen on a 'phantom' third monitor, when I click 2 times on the taskbar I
see it 'come down (minimize)' from the left (the phantomscreen) I can left click
on it and choose maximize to get it back on my main screen.

it's not the syntax for the command that the short cut uses because when I do
the same command in a console I get the new konsole 

BUT when I use the Kmenu it appears again in the 'phantom screen'
I can't find anything in the logs :( so I cant post those.

the only thing I can add is this:

exci@ws exci $ konsole --nomenubar --noframe --notoolbar --noscrollbar
--geometry 600
konsole: cannot chown /dev/pts/3.
Reason: Operation not permitted
konsole_grantpty: determined a strange device name `/dev/ptmx'.
konsole: chownpty failed for device /dev/pts/3::/dev/pts/3.
       : This means the session can be eavesdroped.
       : Make sure konsole_grantpty is installed in
       : /usr/kde/3.1/bin/ and setuid root.
konsole_grantpty: determined a strange device name `/dev/ptmx'.

that is what it 'says' when I use a console to open konsole.

I am aware of the very strange bug, and Im not surprised if you don't understand
what I am saying :), but please say so so that I can add more info.


===============================================

------- Additional Comment #1 From Caleb Tennis 2003-08-06 20:56 EST ------- 

konsole_grantpty: determined a strange device name `/dev/ptmx'. 
 
Look at the files in /dev/pts.  Do they all ahve the same permissions? 
 
Is konsole_grantpty in /usr/kde/3.1/bin and is it setuid root? 
 
Looks like there's some strange stuff going on with devfs here - most likely with
the 2.6 
kernel.  My guess is that konsole hasn't been updated yet to deal with 2.6 devices.
 Does a 
2.4 kernel work? 
 

 ------- Additional Comment #2 From Lesley van Zijl 2003-08-07 04:11 EST ------- 
first of all the permissions:

exci@ws exci $ ls -alh /dev/pts
total 0
drwxr-xr-x    1 root     root            0 Jan  1  1970 .
drwxr-xr-x    1 root     root            0 Jan  1  1970 ..
crw-------    1 exci     tty      136,   0 Aug  7 12:57 0
crw-------    1 exci     tty      136,   1 Aug  7 12:57 1
crw-------    1 exci     tty      136,   2 Aug  7 13:02 2

both on 2.6 as 2.4 kernel (2.4.21 vanilla)

the 2.4 kernel:
Again if I use the kde button --> system --> konsole  the system hangs for 5 seconds
I found out that this is 5 seconds of 100% load and 44% usage of memory by X
great fun with vmware/win2k on ;) --> swapping 10 minutes, I lost complete control
of my system (irc pinged out etc.) and loads of 12+

I also tried to start konsole (wihout the start parms etc.) via aterm (which I love
since konsole stopped working for me ;)) it started at once on the right screen.

2 seconds ago I tried it via aterm with all the parms, again no errors what so ever
and starting normally

So part of the problem is devfs/devpts of 2.6 but still my konsole behaves abnormal
or is this because I use the 2.5 kernel since 2.5.45 and almost all my apps are compiled
with it ?
=============================================
Comment 1 Lesley van Zijl 2004-05-11 09:15:10 UTC
fixed