[haiku-development] Re: Haiku Userland on Non-Haiku Kernel

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 18 Feb 2015 14:02:19 +0100

On 18/02/2015 13:45, Stephan wrote:
> One thing beforehand - I enabled the tracing in "libcosmoe" becuase I
> suspect the issue is in the BeOS to POSIX wrapper. When I start the
> appserver, the following appears, ending in an infinite loop:
> 
[...]
> get_sem_id: returned id 171
> create_sem_etc: enter
> get_group(): failed to find group for group id 0!
> info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer.
> info: LinkMsgReader reading port -9223372036854771711.

This is actually:
$ printf '%x\n' -9223372036854771711
8000000000001001

B_NO_MORE_SEMS = B_OS_ERROR_BASE + 1 = 0x80001001 (2147487745): No more
semaphores

> info: LinkMsgReader read -9223372036854771200 bytes.

And of course it results in:
B_BAD_PORT_ID = B_OS_ERROR_BASE + 0x200 = 0x80001200 (2147488256): Bad
port ID


François.

Other related posts: