AnsweredAssumed Answered

Server crashes on virtual machines when calling gettimeofday

Question asked by user9753 on Feb 27, 2012
Latest reply on Feb 29, 2012 by rmanook

Summary

Server crashes on virtual machines when calling gettimeofday

Product

FileMaker Server

Version

11, various sub versions

Operating system version

OS X 10.6

Description of the issue

We have two scenarios where clients are running their copy of FileMaker Server in an OS X virtual machine environment.  In every case, periodically FileMaker Server will crash with the crashreporter log showing the Java function "gettimeofday" being called on the crashed thread.

Googling Parallels and "gettimeofday" yields some interesting results where the VM environment is causing Java processes to crash when calling that function.

An interesting fix in this parallels support entry for a particular Virtuozzo build states:
http://kb.parallels.com/en/11248

--------------------------------------------------------------------------------
3. KNOWN ISSUES

gettimeofday() might work incorrectly on systems that use the PM timer. This may
affect your system in different ways, for example:
- In some applications, time may go backward, causing segmentation faults.
- "top" might show very high load average values.
- JAVA processes may hang.

To work around this problems, set the "vdso=0" kernel option.
--------------------------------------------------------------------------------

I have no idea how to modify kernel options, nor if it is even possible with Parallels Server, but the problem also occurs on a copy of VM Fusion, OS X environment with FM Server running.



Interestingly... it does NOT crash on another client's VM running Windows.

Exact text of any error message(s) that appear

Excerpts of CrashReporter log entries:


fmserverd_2011-06-01-162356_Golden-Eye-Server
Thread 23 Crashed:
0   libSystem.B.dylib                  0xffff0315 __gettimeofday + 53 (cpu_capabilities.h:237)
1   libSystem.B.dylib                  0x93b83f19 gettimeofday + 50

fmserverd_2011-05-19-114940_Golden-Eye-Server
Thread 9 Crashed:
0   libSystem.B.dylib                  0xffff0315 __gettimeofday + 53 (cpu_capabilities.h:237)
1   libSystem.B.dylib                  0x93b83f19 gettimeofday + 50
2   libSystem.B.dylib                  0x93b88ca0 time + 47

fmserverd_2011-05-10-131706_Golden-Eye-Server
Thread 51 Crashed:
0   libSystem.B.dylib                  0xffff0315 __gettimeofday + 53 (cpu_capabilities.h:237)
1   libSystem.B.dylib                  0x93649f19 gettimeofday + 50

fmserverd_2011-04-22-123033_Golden-Eye-Server
Thread 70 Crashed:
0   libSystem.B.dylib                  0xffff0315 __gettimeofday + 53 (cpu_capabilities.h:237)
1   libSystem.B.dylib                  0x93649f19 gettimeofday + 50

fmserverd_2011-04-06-141320_Golden-Eye-Server
Thread 59 Crashed:
0   libSystem.B.dylib                  0xffff0315 __gettimeofday + 53 (cpu_capabilities.h:237)
1   libSystem.B.dylib                  0x93649f19 gettimeofday + 50

Workaround

None.  Perhaps installing a Windows environment instead?

Outcomes