Almudena Garcia, le dim. 27 oct. 2019 20:20:49 +0100, a ecrit: > + if(sizeof(thsi) >= THREAD_SCHED_INFO_COUNT){
No, that'll again only do a compile-time check: sizeof(thsi) will just return the size of the structure, which is actually also what THREAD_SCHED_INFO_COUNT is based on! (and THREAD_SCHED_INFO_COUNT is in number of integers, not bytes). What you really want is to check what gnumach *writes* when its thread_info() is called. Do look for thread_info() calls, and fix the field there depending on what gnumach wrote to the count. Samuel