GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Segmentation fault on Azul Zing · Issue #916 · async-profiler/async-profiler

Segmentation fault on Azul Zing #916

New issue
Copy link
New issue
Copy link
Closed
Closed
Segmentation fault on Azul Zing#916
Copy link

Description

@paul-hsieh
paul-hsieh
opened on Apr 16, 2024
Issue body actions

We're using async-profiler and occasionally JVM crashes with Segmentation fault.

Java VM: Zing 64-Bit Tiered VM (1.8.0_392-zing_23.08.200.0-b3-product-linux-X86_64, mixed mode)
async-profile: async-profile v3.0 through Pyroscope Java agent v0.13.0
events: itimer,alloc

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Segmentation fault (0xb) at pc=0x7fa44be08f70, pid=2572852, tid=2572981
#
# Java VM: Zing 64-Bit Tiered VM (1.8.0_392-zing_23.08.200.0-b3-product-linux-X86_64, mixed mode)
# Problematic frame:
# C  (nil)
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S O U R C E  ---------------

ZVM src = 0c744df6ab81bcc46151cda48e0bc3ae0c0673e3

---------------  T H R E A D  ---------------

Current thread (0x620007a00000):  JavaThread "FalconCompThr0" daemon [JVM thread_state=_thread_in_native, locked by self running, polling bits: NONE , id=2572981, stack(0x7fafb03e3000,0x7fafb05e3000), java prio=5, os prio=0, sched=SCHED_OTHER]

siginfo:si_signo=Segmentation fault: si_errno=0, si_code=2 (SEGV_ACCERR), si_addr=0x7fafb05e3178

Registers:
RAX=0x0000000200000000, RBX=0x00007fafb05df170, RCX=0x0000000000000001, RDX=0x0000000000000000
RSP=0x00007fafb05df128, RBP=0x00007fafb05df5a0, RSI=0x000000003d1558ff, RDI=0x00007fafb05e3178
R8 =0x00000000002742b5, R9 =0x00007fafb05df600, R10=0x00007fb119a53f2c, R11=0x00007fabddbd4a00
R12=0x00007fabdc1995c0, R13=0x0000000000000001, R14=0x00007fafb05e3170, R15=0x0000000000000002
RIP=0x00007fa44be08f70, EFL=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e


Top of Stack: (sp=0x00007fafb05df128)
0x7fafb05df128:   00007fa44be19ff9 0000000000000000
0x7fafb05df138:   000000003d1558ff 00007fafb05df600
0x7fafb05df148:   00007fabddbd4a00 00007fafb06df160
0x7fafb05df158:   0000000030000080 00007fafb05e0660
0x7fafb05df168:   0000000000000000 00007fb116dd8dd1
0x7fafb05df178:   0000000200000000 00007faf3b707448
0x7fafb05df188:   0000000000000004 00007faf3b7074c8
0x7fafb05df198:   0000000000000004 00007faf3b707548
0x7fafb05df1a8:   0000000000000004 0000000000000000
0x7fafb05df1b8:   0000000000000000 0000000000000000
0x7fafb05df1c8:   0000000000000000 0000000000000000
0x7fafb05df1d8:   0000000000000000 0000000000000000
0x7fafb05df1e8:   0000000000000000 0000000000000000
0x7fafb05df1f8:   0000000000000000 0000000000000000
0x7fafb05df208:   0000000000000000 0000000000000000
0x7fafb05df218:   0000000000000000 0000000000000000
0x7fafb05df228:   0000000000000000 0000000000000000
0x7fafb05df238:   0000000000000000 0000000000000000
0x7fafb05df248:   0000000000000000 0000000000000000
0x7fafb05df258:   0000000000000000 0000000000000000
0x7fafb05df268:   0000000000000000 0000000000000000
0x7fafb05df278:   0000000000000000 0000000000000000
0x7fafb05df288:   0000000000000000 0000000000000000
0x7fafb05df298:   0000000000000000 0000000000000000
0x7fafb05df2a8:   0000000000000000 0000000000000000
0x7fafb05df2b8:   0000000000000000 0000000000000000
0x7fafb05df2c8:   0000000000000000 0000000000000000
0x7fafb05df2d8:   0000000000000000 0000000000000000
0x7fafb05df2e8:   0000000000000000 0000000000000000
0x7fafb05df2f8:   0000000000000000 0000000000000000
0x7fafb05df308:   0000000000000000 0000000000000000
0x7fafb05df318:   0000000000000000 0000000000000000

Instructions: (pc=0x00007fa44be08f70)
0x7fa44be08e70:   48 8d 05 16 b4 03 00 c3 0f 1f 84 00 00 00 00 00
0x7fa44be08e80:   c6 05 41 b7 24 00 00 c3 0f 1f 84 00 00 00 00 00
0x7fa44be08e90:   80 3d 29 33 24 00 00 48 8d 05 42 b5 03 00 48 0f
0x7fa44be08ea0:   45 05 0a bb 24 00 c3 90 0f 1f 84 00 00 00 00 00
0x7fa44be08eb0:   48 8b 15 89 35 24 00 48 85 d2 74 34 48 8b 02 48
0x7fa44be08ec0:   8d 0d 0c 91 03 00 48 39 c8 74 25 8b 52 10 83 fa
0x7fa44be08ed0:   03 75 05 f3 c3 0f 1f 00 83 fa 01 48 8d 15 6e 90
0x7fa44be08ee0:   03 00 48 0f 47 c2 c3 66 0f 1f 84 00 00 00 00 00
0x7fa44be08ef0:   48 8d 05 84 90 03 00 c3 0f 1f 84 00 00 00 00 00
0x7fa44be08f00:   48 8b 15 39 35 24 00 48 8d 05 7f b3 03 00 48 85
0x7fa44be08f10:   d2 74 1d 48 8d 0d b8 90 03 00 48 39 0a 48 8d 15
0x7fa44be08f20:   38 90 03 00 48 0f 45 c2 c3 0f 1f 80 00 00 00 00
0x7fa44be08f30:   f3 c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be08f40:   80 3d 99 2f 24 00 00 48 8d 15 2d 90 03 00 48 8d
0x7fa44be08f50:   05 5d 90 03 00 48 0f 44 c2 c3 66 0f 1f 44 00 00
0x7fa44be08f60:   48 8d 05 26 b3 03 00 c3 0f 1f 84 00 00 00 00 00
0x7fa44be08f70:   48 8b 07 c3 66 90 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be08f80:   48 8b 46 10 48 39 47 10 0f 97 c0 c3 0f 1f 40 00
0x7fa44be08f90:   f3 c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be08fa0:   48 85 ff 74 1b 48 8b 17 31 c0 48 81 fa ff 0f 00
0x7fa44be08fb0:   00 48 0f 47 c2 c3 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be08fc0:   31 c0 c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be08fd0:   f3 c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be08fe0:   48 63 15 69 26 24 00 48 63 05 b2 26 24 00 8b 0d
0x7fa44be08ff0:   8c 26 24 00 48 01 d7 4c 8b 04 07 48 63 05 8e 26
0x7fa44be09000:   24 00 4c 29 c6 48 8b 14 07 48 d3 fe 0f b6 04 32
0x7fa44be09010:   3c ff 75 13 eb 2a 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be09020:   48 29 c6 0f b6 04 32 84 c0 75 f5 48 d3 e6 31 c0
0x7fa44be09030:   4c 01 c6 80 7e 08 00 48 8d 56 10 48 0f 45 c2 c3
0x7fa44be09040:   31 c0 c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00
0x7fa44be09050:   41 54 48 8d 42 ff 55 48 89 c5 48 c1 ed 3f 48 01
0x7fa44be09060:   c5 53 48 d1 fd 48 39 ee 0f 8d 62 01 00 00 49 89

RAX=0x0000000200000000 is an unknown value
RBX=0x00007fafb05df170 is pointing into the execution stack for thread: 0x0000620007a00000
RCX=0x0000000000000001 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x00007fafb05df128 is pointing into the execution stack for thread: 0x0000620007a00000
RBP=0x00007fafb05df5a0 is pointing into the execution stack for thread: 0x0000620007a00000
RSI=0x000000003d1558ff is a methodCode c1: (null)
RDI=0x00007fafb05e3178 is an unknown value
R8 =0x00000000002742b5 is an unknown value
R9 =0x00007fafb05df600 is pointing into the execution stack for thread: 0x0000620007a00000
R10=0x00007fb119a53f2c: liborca.so.0+(nil)
R11=0x00007fabddbd4a00 is an unknown value
R12=0x00007fabdc1995c0 is an unknown value
R13=0x0000000000000001 is an unknown value
R14=0x00007fafb05e3170 is an unknown value
R15=0x0000000000000002 is an unknown value


Stack: [0x7fafb03e3000,0x7fafb05e3000]
Current CompileTask:
CompileTask not available.

... skip ...

7fa44be00000-7fa44be4a000 r-xp 00000000 fd:00 525753                     /tmp/taboola-pyroscope/libasyncProfiler-linux-x64-98e96b2eb57e823a37267f19311d25e9d476f3.so
7fa44be4a000-7fa44c04a000 ---p 0004a000 fd:00 525753                     /tmp/taboola-pyroscope/libasyncProfiler-linux-x64-98e96b2eb57e823a37267f19311d25e9d476f3.so
7fa44c04a000-7fa44c04b000 r--p 0004a000 fd:00 525753                     /tmp/taboola-pyroscope/libasyncProfiler-linux-x64-98e96b2eb57e823a37267f19311d25e9d476f3.so
7fa44c04b000-7fa44c04c000 rw-p 0004b000 fd:00 525753                     /tmp/taboola-pyroscope/libasyncProfiler-linux-x64-98e96b2eb57e823a37267f19311d25e9d476f3.so

Activity

  1. apangin commented on Apr 18, 2024

    @apangin
    apangin
    on Apr 18, 2024
    Collaborator
    More actions

    Do you have complete crash log? It will be even better to see multiple logs, if possible.
    Does JVM crash with a specific application or with different apps?

  2. apangin
    added
    need more details
    on Apr 18, 2024
  3. paul-hsieh commented on Apr 19, 2024

    @paul-hsieh
    paul-hsieh
    on Apr 19, 2024
    Author
    More actions

    Thanks for the support. Two logs attached.
    JVM crashed on a specific application, but on different versions of the application.
    Didn't notice such JVM crash before upgrading to async-profile v3.0 (or at least less frequent so that less noticeable).

    hs_err_pid2572852.log.gz
    hs_err_pid2664229.log.gz

  4. apangin commented on Apr 20, 2024

    @apangin
    apangin
    on Apr 20, 2024
    Collaborator
    More actions

    Thank you for the update - this is helpful. I'll take a look and let you know if further details are needed.

  5. apangin
    removed
    need more details
    on Apr 20, 2024
  6. apangin commented on Apr 22, 2024

    @apangin
    apangin
    on Apr 22, 2024
    Collaborator
    More actions

    The problem is understood.
    A combination of factors leads to the JVM crash: Zing JVM + itimer mode + FP stack unwinding. Apparently, Zing JVM prevents user-defined signal handler from changing the instruction pointer, that async-profiler relies on for safe stack walking.

    Please try the following workarounds (one at a time):

    • use cpu mode instead of itimer;
    • enable DWARF stack unwinding: --cstack dwarf; if the problem persists, try --cstack no.
  7. paul-hsieh commented on Apr 23, 2024

    @paul-hsieh
    paul-hsieh
    on Apr 23, 2024
    Author
    More actions

    Will apply the workarounds and update if crash still occurs.

  8. paul-hsieh commented on May 6, 2024

    @paul-hsieh
    paul-hsieh
    on May 6, 2024
    Author
    More actions

    Used --cstack dwarf for more than 1 week and no new crashes so far, thanks!

    Reacted by Andrei Pangin
  9. paul-hsieh
    closed this as completedon May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.