Bug 208346 - kmenuedit destroys file descriptor (!Not sure at all!)
Summary: kmenuedit destroys file descriptor (!Not sure at all!)
Status: RESOLVED WORKSFORME
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 0.8
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-24 03:48 UTC by rottex
Modified: 2012-07-30 11:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rottex 2009-09-24 03:48:51 UTC
Version:           0.8 (using KDE 4.3.1)
Compiler:          gcc (Ubuntu 4.4.1-4ubuntu1) 4.4.1 
OS:                Linux
Installed from:    Ubuntu Packages

Strange thing here:

I can work normal with kde , the menu , use the panel ...
I open kmenuedit (regardless if I start by right click or in shell)
I can browse the tree (sub-menus..) but as soon as I select an <application entry> kmenuedit suddenly stops working and continues to work after some time.
During that timeout kmenuedit window becomes grey.
During that timeout >>>it is not possible to use the whole panel<<< !
When I wait for 25 seconds kmenuedit is usable again, 
Everything else basically works (save,quit etc.) but with this timeout from now on.
I close kmenuedit now. 
Now comes the really annoying part:
From that time on, the same happens, if I use the search function in kde menu.
I can type a view chars and now also here 25sec timeout until the searched entry is shown in the menu and ready for starting the application.
I have to logout and in again, in order to have the menu search function working again.
All other running applications continue to work normally before,during and after that issue.

strace shows:

----------------------- SNIP-------------------------------

time=2009/09/23-17:37:36, st_mtime=2009/08/24-13:34:31, st_ctime=2009/09/20-19:18:34}) = 0                                                                                     
getdents(12, {}, 32768)                 = 0                                                                                                                                    
close(12)                               = 0                                                                                                                                    
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLIN|POLLOUT}])                                                                                            
read(9, "\34\312\4\"\360\3\340\3\t\2\0\0:16\0\0\312m\2\0\0\0\0\320\n&\3\0\0\0\0"..., 4096) = 128                                                                               
writev(9, [{"\22\0\20\0\360\3\340\3'\0\0\0b\1\0\0\10\0\0\0%\0\0\0Select I"..., 176}, {NULL, 0}, {"", 0}], 3) = 176                                                             
read(9, 0x701be4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)                                                                                         
stat("/etc/localtime", {st_dev=makedev(8, 5), st_ino=6755, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2211, st_atime=2009/09/23-21:10:02, st_mtime=2009/09/20-21:10:02, st_ctime=2009/09/20-21:10:02}) = 0                                                                                                   
read(9, 0x701be4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)                                                                                         
read(9, 0x701be4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)                                                                                         
writev(3, [{"l\1\0\1 \0\0\0\v\0\0\0\177\0\0\0\1\1o\0\21\0\0\0/modules"..., 144}, {"\33\0\0\0kde4-systemsettings.desktop\0", 32}], 2) = 176                                     
poll([{fd=3, events=POLLIN}], 1, 25000                                                                                                                                         
################### HERE IT HANGS #####################
################### HERE IT HANGS #####################
################### HERE IT HANGS #####################
################### HERE IT HANGS #####################


) = 0 (Timeout)                         
stat("/etc/localtime", {st_dev=makedev(8, 5), st_ino=6755, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2211, st_atime=2009/09/23-21:10:02, st_mtime=2009/09/20-21:10:02, st_ctime=2009/09/20-21:10:02}) = 0                                                                                                   
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLIN|POLLOUT}])                                                                                            
read(9, "\34\312\5\"\360\3\340\3'\0\0\0^16\0\0\0\0\0\0\0\0\0\320\n&\3\0\0\0\0"..., 4096) = 832                                                                                 
writev(9, [{"\230\24\33\0\33\0\340\3\1\0\0\0%\0\0\0\10\0\n\0\377\377\n\0\n\0\0\0\377\377\377\377"..., 564}, {NULL, 0}, {"", 0}], 3) = 564                                      
poll([{fd=9, events=POLLIN}], 1, -1)    = 1 ([{fd=9, revents=POLLIN}])                                                                                                         
read(9, "\34\312\n\"\360\3\340\3(\0\0\0!\2236\0\0007\220\3\0\0\0\0\320\n&\3\0\0\0\0"..., 4096) = 64                                                                            
read(9, 0x701be4, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)                                                                                         
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])                                                                                                   
writev(9, [{"(\24\4\0<\1\0\0\31\0\340\3\203\1\"\1", 16}, {NULL, 0}, {"", 0}], 3) = 16                                                                                          
poll([{fd=9, events=POLLIN}], 1, -1)    = 1 ([{fd=9, revents=POLLIN}])         

----------------------- SNAP-------------------------------

It is definitely caused by/or happens only when kmenuedit is used. Also lancelot stops working after using kmenuedit.

I have this "bug" now since about 3 weeks (updated almost on a daily basis)

Maybe someone can have a look or can point into the right direction.
Comment 1 Will Stephenson 2009-11-23 18:19:43 UTC
I can't reproduce this.  Sounds like a problem with your filesystem that it hangs on read.
Comment 2 Jekyll Wu 2012-07-30 11:26:04 UTC
Can't reproduce using KDE SC 4.9, either.