bugThe GNU Hurd - Bugs: bug #20612, rpctrace: heisenbug

 
 

bug #20612: rpctrace: heisenbug

Submitter:  Thomas Schwinge <tschwinge>
Submitted:  Sat 28 Jul 2007 10:52:48 PM UTC
   
 
Category:  Hurd Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  zhengda Originator Name: 
Open/Closed:  Closed Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 28 Jul 2009 04:58:31 PM UTC, comment #2: 

Thanks!  I have briefly tested this: the patch does the right thing in the failure case, and let's hope that it doesn't break anything else.

Please install it in the master branch -- instructions are on http://www.bddebian.com:8888/~hurd-web/rules/source_repositories/, please read that page carefully before pushing to Savannah, or ask me if you need help.  Even better: first publish it in a throw-away repository on flubber, or in a private branch on Savannah, until we get all that new Git stuff going correctly.

Thomas Schwinge <tschwinge>
Group administrator
Mon 15 Jun 2009 08:18:35 AM UTC, comment #1: 

The patch in the attachment can fix the bug.

(file #18272)

Zheng Da <zhengda>
Group Member
Sat 28 Jul 2007 10:52:48 PM UTC, original submission:  

When running via rpctrace, a program like this will fail with the specified error message, while it won't error and will finish correctly when running directly.

#v+
  if (setregid (getegid (), -1) != 0 ||
      setreuid (geteuid (), -1) != 0)
    {
      perror ("failed to drop real uid/gid");
      exit (1);
    }
#v-

Thomas Schwinge <tschwinge>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #18272:  rpctrace1.diff added by zhengda (509B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zhengda (Updated the item)
  • -email is unavailable- added by tschwinge (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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-10-12 tschwinge StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2009-07-28 tschwinge StatusNone Works For Me
        Assigned toNone zhengda
    2009-06-15 zhengda Attached File- Added rpctrace1.diff, #18272

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code