奇怪的JVM在长时间运行的进程中崩溃 - 可能是JVM错误

时间:2013-06-27 06:09:38

标签: java macos javafx-2

我们使用JavaFX for Mac构建了一个应用程序并将其分发给客户端。但有一天,客户端开始报告一个奇怪的行为:应用程序退出了无处。 我们尝试复制这个问题,但不能。

昨天晚上,我在隔夜离开了申请,今天早上,我可以复制它。 JVM崩溃了,我有它的报告。我没有得到的是,纯Java应用程序出现这样的错误是极不可能的。有人可以帮忙吗。没有JNI或任何东西,纯JavaFX应用程序。必要信息:

Process:         MyApp [929]
Path:            /Applications/MyApp.app/Contents/MacOS/MyApp
Identifier:      unknown.com.bl.Main
Version:         1.0.0 (100)
Code Type:       X86-64 (Native)
Parent Process:  launchd [370]
User ID:         501

Date/Time:       2013-06-27 10:25:49.696 +0530
OS Version:      Mac OS X 10.8.2 (12C2034)
Report Version:  10
Sleep/Wake UUID: 6C566ED4-4A34-469E-BB90-4B9579C8C938

Interval Since Last Report:          1185921 sec
Crashes Since Last Report:           385
Per-App Interval Since Last Report:  19053 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      EE300CF5-752F-5C81-B166-6CFB0DC9FA0A

Crashed Thread:  26  CVDisplayLink

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000270

VM Regions Near 0x270:
-->
    __TEXT                 0000000106b59000-0000000106b5c000 [   12K] r-x/rwx SM=COW  /Applications/Pina.app/Contents/MacOS/Pina

Application Specific Information:
abort() called

Thread 26 Crashed:: CVDisplayLink
0   libsystem_kernel.dylib         0x00007fff92cf4212 __pthread_kill + 10
1   libsystem_c.dylib              0x00007fff90be1af4 pthread_kill + 90
2   libsystem_c.dylib              0x00007fff90c25dce abort + 143
3   libjvm.dylib                   0x0000000107072cff os::abort(bool) + 25
4   libjvm.dylib                   0x0000000107184ed9 VMError::report_and_die() + 2391
5   libjvm.dylib                   0x000000010707458f JVM_handle_bsd_signal + 1073
6   libsystem_c.dylib              0x00007fff90bce8ea _sigtramp + 26
7   libjvm.dylib                   0x00000001070c1fd8 SafepointSynchronize::block(JavaThread*) + 32
8   libjvm.dylib                   0x00000001071420c3 JavaThread::check_safepoint_and_suspend_for_native_trans(JavaThread*) + 193
9   libjvm.dylib                   0x0000000106dd75b3 ThreadStateTransition::trans_from_native(JavaThreadState) + 119
10  libjvm.dylib                   0x0000000106f31330 jni_CallVoidMethod + 139
11  libglass.dylib                 0x0000000160a368ae CVOutputCallback + 158
12  com.apple.CoreVideo            0x00007fff8ee4a03d CVDisplayLink::performIO(CVTimeStamp*) + 203
13  com.apple.CoreVideo            0x00007fff8ee492a4 CVDisplayLink::runIOThread() + 632
14  com.apple.CoreVideo            0x00007fff8ee49013 startIOThread(void*) + 148
15  libsystem_c.dylib              0x00007fff90be0742 _pthread_start + 327
16  libsystem_c.dylib              0x00007fff90bcd181 thread_start + 13

Thread 26 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x0000000168a92a68  rdx: 0x0000000000000000
  rdi: 0x000000000000f063  rsi: 0x0000000000000006  rbp: 0x0000000168a92a90  rsp: 0x0000000168a92a68
   r8: 0x00007fff7ac75278   r9: 0x0000000168a92a40  r10: 0x0000000020000000  r11: 0x0000000000000206
  r12: 0x000000010746ffb0  r13: 0x00007fff8ee49dc6  r14: 0x0000000168a94000  r15: 0x000000010707655a
  rip: 0x00007fff92cf4212  rfl: 0x0000000000000206  cr2: 0x00007fff7ac6efe8

VM Region Summary:
ReadOnly portion of Libraries: Total=216.8M resident=137.1M(63%) swapped_out_or_unallocated=79.7M(37%)
Writable regions: Total=1.5G written=89.2M(6%) resident=169.3M(11%) swapped_out=0K(0%) unallocated=1.4G(89%)

REGION TYPE                      VIRTUAL
===========                      =======
(null) (reserved)                   1.2G        reserved VM address space (unallocated)
CG backing stores                  4620K
CG image                            380K
CG raster data                      116K
CG shared images                    192K
CoreAnimation                         8K
CoreImage                             8K
CoreServices                       2020K
IOKit                              33.7M
MALLOC                            117.9M
MALLOC guard page                    48K
MALLOC_LARGE (reserved)            10.6M        reserved VM address space (unallocated)
Memory tag=240                        4K
Memory tag=242                       12K
Memory tag=243                       12K
Memory tag=251                       20K
OpenCL                               52K
OpenGL GLSL                        1024K
STACK GUARD                        56.1M
Stack                              31.7M
VM_ALLOCATE                       128.5M
__DATA                             18.5M
__IMAGE                             528K
__LINKEDIT                         58.4M
__TEXT                            158.5M
__UNICODE                           544K
mapped file                        45.6M
shared memory                      31.4M
===========                      =======
TOTAL                               1.9G
TOTAL, minus reserved VM space    689.7M

Model: MacBookPro10,2, BootROM MBP102.0106.B01, 2 processors, Intel Core i5, 2.5 GHz, 8 GB, SMC 2.6f57
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 768 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10F), Broadcom BCM43xx 1.0 (5.106.98.100.14)
Bluetooth: Version 4.1.2f9 11046, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM128E, 121.33 GB
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1a100000 / 2
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8510, 0x1a110000 / 3
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1d100000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2512, 0x1d180000 / 3
USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1d181000 / 5
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x828c, 0x1d181300 / 7
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x025a, 0x1d182000 / 4
USB Device: USB Receiver, 0x046d  (Logitech Inc.), 0xc52f, 0x14100000 / 3
Logical CPU: 0

Please do let me know if any other information is needed.

如果您希望拥有完整的日志文件,我可以提供。

1 个答案:

答案 0 :(得分:1)

您的应用程序正在从堆栈跟踪中看到一个信号:JVM_handle_bsd_signal

我不知道它是哪个信号,但您可以尝试安装信号处理程序以找出:http://www.oracle.com/technetwork/java/javase/signals-139944.html#gbzbl

我想到的一些常见事情是:

    • 应用程序是否设置了一些ulimits?
  • 还有其他什么事情崩溃,建议硬件错误吗?
  • 你试过使用另一个jvm版本 - 一个或两个补丁可能是一个不同的行为