Ticket #1044 (new defect)

Opened 6 years ago

Last modified 6 years ago

engine_init fails randomly on mac os x

Reported by: bricks Owned by: dgollub
Priority: normal Milestone:
Component: OpenSync: IPC Version: 0.38
Severity: normal Keywords: engine_init thread mac os x


The engine_init testcase randomly fails on mac os x 10.5.6. This could also be a problem on windows, free bsd and solaris. The issue is caused by the undefined behaviour of pthread_getspecific see Apple Man Pages

To prevent this error it is possible to remove the osync_client_shutdown(proxy->client) in line 1058 in opensync_client_proxy.c

This call causes a race condition which sometimes fails. If OSYNC_TRACE is set the race condition doesn't occur.

Change History

comment:1 Changed 6 years ago by bricks

committed first workaround in r5184

Note: See TracTickets for help on using tickets.