Opened 6 years ago

Closed 6 years ago

#7491 closed bug (fixed)

getNumCapabilities uses n_capabilities instead of enabled_capabilities

Reported by: Yuras Owned by:
Priority: normal Milestone: 7.8.1
Component: libraries/base Version: 7.6.1
Keywords: Cc: shumovichy@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Incorrect result at runtime Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


setNumCapabilities newer removes capabilities, it just disables them when new value is less the the current one. In that case getNumCapabilities returns wrong result.

Change History (4)

comment:1 Changed 6 years ago by ezyang

Version: 7.6.1

Should be easy to fix. Don't forget to update the linker and add some tests.

comment:2 Changed 6 years ago by ezyang

Version: 7.6.1

comment:3 Changed 6 years ago by marlowsd@…

commit d68411496b1cad0e2e912875f32457372b5c2fcd

Author: Simon Marlow <>
Date:   Tue Dec 11 15:38:00 2012 +0000

    add enabled_capabilities (#7491)

 rts/Linker.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

comment:4 Changed 6 years ago by simonmar

difficulty: Unknown
Milestone: 7.8.1
Resolution: fixed
Status: newclosed

Also fixed in base:

commit fa55000b516b05387ee9f84f132668e6c10e9243

Author: Simon Marlow <>
Date:   Tue Dec 11 09:31:15 2012 +0000

    getNumCapabilities should read enabled_capabilities (#7491)
Note: See TracTickets for help on using tickets.