Hi, analyzing page faults of an application that prefers to set its own stacks, I noticed a problem in Xenomai (2 and 3), at least from the usability POV: We document the minimum stack stack as PTHREAD_STACK_MIN + 1 page, at least in Xenomai 3, and we enforce that on thread creation. However, enforcement is doomed to fail if the stack is preallocated (and that too small).
As we cannot detect if the user set a stack address in pthread_attr_t, I would suggest to fail thread creation instead of performing it with improper parameters. Other suggestions? If not, I would prepare a patch for Xenomai 3 (for 2 only if desired). Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
