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: enter get_sem_id: returned id 146 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 147 create_sem_etc: enter get_group(): failed to find group for group id 0! initialize_before() Using key 5000cdbf for the port table The size of the port table is 28688 bytes Using pre-existing master ports table port_init: exit get_sem_id: enter get_sem_id: returned id 148 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 149 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 150 create_sem_etc: enter get_group(): failed to find group for group id 0! find_port(): Looking for port named "_obos_roster_port_" find_port(): Couldn't find port named "_obos_roster_port_" initialize_before() done get_sem_id: enter get_sem_id: returned id 151 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 152 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 153 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 154 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 155 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 156 create_sem_etc: enter get_group(): failed to find group for group id 0! find_port(): Looking for port named "OBappserver" find_port(): Couldn't find port named "OBappserver" get_sem_id: enter get_sem_id: returned id 157 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 158 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 159 create_sem_etc: enter get_group(): failed to find group for group id 0! get_group(): failed to find group for group id 1752346674! acquire_sem_etc(-9223372036854771711): enter FontServer::ScanDirectory(): opening /usr/share/fonts/ttf/cosmoe FontServer::ScanDirectory(): found entry . FontServer::ScanDirectory(): found entry .. FontServer::ScanDirectory(): found entry Vera.ttf FontServer::ScanDirectory(): found entry VeraBI.ttf FontServer::ScanDirectory(): found entry VeraBd.ttf FontServer::ScanDirectory(): found entry VeraIt.ttf FontServer::ScanDirectory(): found entry VeraMoBI.ttf FontServer::ScanDirectory(): found entry VeraMoBd.ttf FontServer::ScanDirectory(): found entry VeraMoIt.ttf FontServer::ScanDirectory(): found entry VeraMono.ttf FontServer::ScanDirectory(): found entry VeraSe.ttf FontServer::ScanDirectory(): found entry VeraSeBd.ttf FontServer::ScanDirectory(): found entry code_alt.ttf Directory '/usr/share/fonts/ttf/cosmoe' scanned, 11 fonts found get_group(): failed to find group for group id 1752346674! release_sem_etc(-9223372036854771711): enter get_sem_id: enter get_sem_id: returned id 160 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 161 create_sem_etc: enter get_group(): failed to find group for group id 0! Desktop: InitDesktop get_sem_id: enter get_sem_id: returned id 162 create_sem_etc: enter get_group(): failed to find group for group id 0! SDLDriver constructor find_port(): Looking for port named "OBinputport" find_port(): Couldn't find port named "OBinputport" get_sem_id: enter get_sem_id: returned id 163 create_sem_etc: enter get_group(): failed to find group for group id 0! Loading SDL Driver... SDL Driver succesfully initialized get_sem_id: enter get_sem_id: returned id 164 create_sem_etc: enter get_group(): failed to find group for group id 0! SDLDriver::FillSolidRect() get_group(): failed to find group for group id 1752346674! acquire_sem_etc(-9223372036854771711): enter get_group(): failed to find group for group id 1752346674! release_sem_etc(-9223372036854771711): enter get_sem_id: enter get_sem_id: returned id 165 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 166 create_sem_etc: enter get_group(): failed to find group for group id 0! SDLDriver::CopyBitmap() get_group(): failed to find group for group id 1752346674! acquire_sem_etc(-9223372036854771711): enter get_group(): failed to find group for group id 1752346674! release_sem_etc(-9223372036854771711): enter get_group(): failed to find group for group id 1752346674! acquire_sem_etc(-9223372036854771711): enter get_group(): failed to find group for group id 1752346674! release_sem_etc(-9223372036854771711): enter get_sem_id: enter get_sem_id: returned id 167 create_sem_etc: enter get_group(): failed to find group for group id 0! Master area table key is 0x4100cdbf. Using existing system area table. get_sem_id: enter get_sem_id: returned id 168 create_sem_etc: enter get_group(): failed to find group for group id 0! PANIC: BitmapManager couldn't allocate locking semaphore!! get_sem_id: enter get_sem_id: returned id 169 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter get_sem_id: returned id 170 create_sem_etc: enter get_group(): failed to find group for group id 0! get_sem_id: enter 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. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. info: LinkMsgReader read -9223372036854771200 bytes. info: LinkMsgReader GetNextReply() reports 0 bytes remaining in buffer. info: LinkMsgReader reading port -9223372036854771711. [...] (does never stop) 2015-02-18 12:24 GMT+01:00 Stephan <stephanwib@xxxxxxxxxxxxxx>: > Thanks so far! > > Stupid me - the appserver has a problem becuase it consumes 100 % CPU > on 2 of 2 threads. gdb is not working properly on NetBSD 6 with > threaded programs but it says I´m in > > * 1 LWP 1 0x00007f7ff384b840 in _XReply () from > /usr/X11R7/lib/libX11.so.7 > > I can´t see the other LWP. I work on that box throgh X forwarding, > which might be related to the problem. I´ll set up a box with a local > display and see what happens. I´ll follow your suggestions when that´s > not gonna work either. > > I also need to look at the changes I made to work around semtimedop() > becuase I´m not sure whether I broke something with these. > > 2015-02-18 11:42 GMT+01:00 Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>: >> Am 18.02.2015 um 11:21 schrieb Stephan: >>> >>> Any hint where to look is appreciated :) >> >> >> As Adrien mentioned, this code is horribly out of date (like a decade or >> so). >> The best way to proceed would be to see what they changed to get it build on >> top of Linux, and then try to apply this on a current Haiku version. >> That would also open the possibility to use this code in a 64 bit >> environment, as Haiku now runs there as well. >> >> Bye, >> Axel. >>