bugGKSu - Bugs: bug #37667, gksu freezes applications that...

 
 

bug #37667: gksu freezes applications that write to stderr

Submitter:  Ronny Standtke <ronnystandtke>
Submitted:  Sun 04 Nov 2012 07:04:10 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 04 Nov 2012 07:04:10 PM UTC, original submission:  

I noticed that some applications just freeze after a while when started via gksu (but not with kdesudo). After a long testing session it became clear that these applications freeze while they are trying to output something to stderr.

Here is a little example script to demonstrate the problem:
---------------------
#!/bin/sh
OUT_FILE="/tmp/gksu_test.txt"

>${OUT_FILE}

for i in $(seq 1 10000)
do
  echo "writing line number $i to file" | tee -a ${OUT_FILE} >&2
done
---------------------

On my system (i386 Kubuntu 12.10) this script freezes after writing ~2000 lines when run via gksu (but runs fine with kdesudo).

I'm just guessing a little here: It looks like gksu somewhen just stops reading the stderr of called program an this way blocking the respective output thread in the program and consequently freezes the program entirely. To fix the issue, gksu should continue to read/consume/forward/whatever the stderr of executed programs.

Ronny Standtke <ronnystandtke>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ronnystandtke (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code