Ticket #138 (closed defect: fixed)

Opened 1 week ago

Last modified 5 days ago

UNW_FLAG_CHAININFO value is wrong

Reported by: appro@fy.chalmers.se Assigned to:
Priority: P1 Milestone:
Component: Object Format: win32/64 Version: other
Severity: normal Keywords:
Cc:

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.

Attachments

Change History

05/08/08 23:51:42 changed by peter

  • status changed from new to closed.
  • resolution set to fixed.

(In [2083]) Fix #138: Incorrect UNW_FLAG_CHAININFO value (currently unused).


Add/Change #138 (UNW_FLAG_CHAININFO value is wrong)