
UNW_FLAG_CHAININFO value is wrong
Reported by Peter Johnson | June 25th, 2011 @ 07:50 PM
Originally posted on Trac by appro@fy.chalmers.se
Original
Trac Ticket
Description
Reading modules/objfmts/coff/win64-except.c I could help noticing UNW_FLAG_CHAININFO defintion assigning value of 3. The correct value is 4, not 3. Well, it's not used anywhere for the moment, so it's not really a problem now. But it will naturally cause grief when you attempt to use it, so it makes sense to fix it.
As for what can go wrong. Note UNW_FLAG_[EU]HANDLER values. It's actually possible to combine these two to 2|1=3 and have same subroutine serve as exception and "termination" handler. The latter is one corresponding to finally in try/__finally construct in visual c. With value or 3 system will call handler first as exception handler and if it returns "not handled, keep looking" return code, the system will call it second time as "termination" handler. A.
Trac Attachments
h3. Trac Comments
comment:1
Changed 3 years ago by peter
(In [2083]) Fix #138: Incorrect UNW_FLAG_CHAININFO value (currently unused).
comment:1
Changed 3 years ago by peter
Status
changed from new to closed
Resolution
set to fixed
(In [2083]) Fix #138: Incorrect UNW_FLAG_CHAININFO value (currently unused).
Status
changed from new to closed
Resolution
set to fixed
Comments and changes to this ticket
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Yasm Modular Assembler Project