google / gson

A Java serialization/deserialization library to convert Java Objects into JSON and back
Apache License 2.0
23.16k stars 4.27k forks source link

OSS-Fuzz issue 67620 #2657

Closed oss-fuzz-robot closed 3 months ago

oss-fuzz-robot commented 4 months ago

OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=5700693983821824 for details and reproducers.

This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67620 and will auto-close if the status changes there.

If you have trouble accessing this report, please file an issue at https://github.com/google/oss-fuzz/issues/new.

oss-fuzz-robot commented 3 months ago

OSS-Fuzz has closed this bug. Please see https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67620 for details.

Marcono1234 commented 3 months ago

@eamonnmcmanus, do you know what this was about? It looks like the reports are not public (yet).

eamonnmcmanus commented 3 months ago

Looks like some sort of failure in the fuzzing infrastructure. Here's some relevant text from the logs in the bug:

    INFO: Instrumented com.google.gson.internal.bind.MapTypeAdapterFactory (took 82 ms, size +9%)
ALARM: working on the last Unit for 25 seconds
       and the timeout value is 25 (use -timeout=N to change)
MS: 0 ; base unit: 0000000000000000000000000000000000000000
artifact_prefix='/mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/'; Test unit written to /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/timeout-da39a3ee5e6b4b0d3255bfef95601890afd80709
Base64:
==120947== ERROR: libFuzzer: timeout after 25 seconds
INFO: Instrumented com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter (took 178 ms, size +12%)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaCalls.cpp:61), pid=120947, tid=120957
#  guarantee(thread->can_call_java()) failed: cannot make java calls from the native compiler
#
# JRE version: OpenJDK Runtime Environment (17.0.10+7) (build 17.0.10+7-Ubuntu-120.04.1)
# Java VM: OpenJDK 64-Bit Server VM (17.0.10+7-Ubuntu-120.04.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, parallel gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x834dc1]INFO: Instrumented com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory (took 220 ms, size +12%)
  JavaCallWrapper::JavaCallWrapper(methodHandle const&, Handle, JavaValue*, JavaThread*)+0x1f1

Could be https://bugs.openjdk.org/browse/JDK-8261395 for example.