Opened 6 years ago

Closed 6 years ago

#9959 closed bug (fixed)

pthread minimum stack not adjusted to match haiku change

Reported by: Pete Owned by: pdziepak
Priority: high Milestone: R1
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

when Pawel changed MIN_USER_STACK_SIZE (http://cgit.haiku-os.org/haiku/commit/headers/private/system/thread_defs.h?id=3b4269ecf59fa0a994ecf20ec3472e02184f9328) the PTHREAD_STACK_MIN define in posix/limits.h never got increased to match.

Ruby uses this minimum for its timer thread, so it crashes in newer revs of haiku. (I've patched my own copy of ruby temporarily to bypass this.)

Is a submitted patch needed for this small a change? I haven't bothered to fix the haiku source itself yet, but if needed I'll do so.

Change History (3)

comment:1 by anevilyak, 6 years ago

Owner: changed from nobody to pdziepak
Status: newassigned
Version: R1/alpha4.1R1/Development

comment:2 by korli, 6 years ago

IMO it would be better to define PTHREAD_STACK_MIN and MIN_USER_STACK_SIZE in terms of B_PAGE_SIZE (ie (B_PAGE_SIZE << 1).

comment:3 by pdziepak, 6 years ago

Resolution: fixed
Status: assignedclosed

Thanks for helping with this. Fixed in hrev46078.

Note: See TracTickets for help on using tickets.