Bug 115387

Summary: YaST2 hangs forever
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Thorsten Kukuk <kukuk>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Blocker    
Priority: P5 - None CC: aj, mvidner
Version: Beta 4 Plus   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 log files and ps output

Description Thorsten Kukuk 2005-09-06 10:21:18 UTC
YasT2 calls a perl command without input, perl wait forever for input on stdin.

Process table:

 7040 tty1     S+     0:00 y2base installation ("continue") ncurses
 7041 tty1     S+     0:00 sh -c ?hwinfo --pci --block --mouse --keyboard --isdn
--save-config=all??[ -d /var/lib/hardware/udi/org/freedesktop/Hal/devices ] && 
?perl -pi -e "s/hwinfo.configured = 'new'/hwinfo
.configured = 'no'/"  ?/var/lib/hardware/udi/org/freedesktop/Hal/devices/*
 7065 tty1     S+     0:00 perl -pi -e s/hwinfo.configured =
'new'/hwinfo.configured = 'no'/
Comment 1 Thorsten Kukuk 2005-09-06 10:23:05 UTC
Created attachment 48899 [details]
YaST2 log files and ps output
Comment 2 Martin Vidner 2005-09-06 10:33:38 UTC
Jirka added that code. 
Comment 3 Martin Vidner 2005-09-06 10:38:28 UTC
BTW, since some time sed can do in-place editing too. 'perl -p' can be 
replaced by 'sed' to save resources. 
Comment 4 Jiri Srain 2005-09-06 11:27:14 UTC
The code was provided by Steffen. I tested it before submitting, and it didn't  
freeze.  
   
Steffen, any idea? If you look at y2log in the tarball, you can get whole 
output of the script. 
Comment 5 Steffen Winterfeldt 2005-09-06 12:02:00 UTC
The last line shows that the perl command that is actually run is not correct. 
Maybe some quoting problem? 
Comment 6 Jiri Srain 2005-09-06 15:05:37 UTC
The problem was (hopefully) in blank spaces following backslashes at the end  
of the lines (copy-pasting from bzilla). 
 
Fixed in SVN, submitting to STABLE. 
Comment 7 Andreas Jaeger 2005-09-07 07:07:58 UTC
Still in RC1.  Which package is this?
Comment 9 Jiří Suchomel 2005-09-07 07:39:01 UTC
yast2-installation with last changes submited