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

 
 

bug #37667: gksu freezes applications that write to stderr

Submitted by:  Ronny Standtke <ronnystandtke>
Submitted on:  Sun 04 Nov 2012 07:04:10 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup