bugThe libunwind project - Bugs: bug #48486, _Ux86_64_setcontext messes up...

 
 

bug #48486: _Ux86_64_setcontext messes up process signal mask

Submitted by:  None
Submitted on:  Tue 12 Jul 2016 06:55:25 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 03 Oct 2016 05:27:11 PM UTC, comment #1:

+1

We were also hit by this bug: https://github.com/scylladb/scylla/issues/1725

Tomasz Grabiec <tgrabiec>
Tue 12 Jul 2016 06:55:25 PM UTC, original submission:

From: https://lab.nexedi.com/Daetalus/Pyston/commit/1bac7510861a112a9023f821bf3e857a6fb45037#diff-4

++ /* PYSTON CHANGE: for some reason, libunwind restores the signal mask 
21
++ * in _Ux86_64_setcontext() even though _Ux86_64_getcontext doesn't 
22
++ * initialize it! This sets our signal mask to random stack garbage, 
23
++ * so I've commented it out. - rntz 
24
++ */

We ran into above problem on Ubuntu, libunwind.so.8. When linking an executable with "-lunwind", it'll be used for C++ exception handling which corrupts process signal mask at runtime. Workaround is to explicitly use "-lgcc_s -lunwind".

Anonymous

 

(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 djwatson24 (Updated the item)
  • -unavailable- added by tgrabiec (Posted a comment)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Jan 2017 05:30:17 PM UTCdjwatson24Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1