Open josephlewis42 opened 6 years ago
It turns out it could have been a race-condition with the pubsub input plugin instead of an Alpine issue. See Issue #7
For Alpine itself, the crash seems much worse. I'm using openjdk:8-jre-alpine
as a basis, and version 5.6.10
of Logstash. Package libc6-compat
is installed.
Sample config:
input {
stdin {
id => "stdin-input"
}
}
output {
google_pubsub {
id => "pubsub-output"
project_id => "_redacted_"
topic => "elasticsearch_indexing"
json_key_file => "/etc/secrets/service_account.json"
}
}
Sample error:
[2018-07-30T19:24:10,803][INFO ][logstash.outputs.googlepubsub] Registering Google PubSub Output plugin: projects/_redacted_/topics/elasticsearch_indexing
[2018-07-30T19:24:11,003][INFO ][logstash.outputs.googlepubsub] Initializing Google API client on projects/_redacted_/topics/elasticsearch_indexing key: /etc/secrets/service_account.json
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000025426, pid=370, tid=0x00007f73bde90ae8
#
# JRE version: OpenJDK Runtime Environment (8.0_171-b11) (build 1.8.0_171-b11)
# Java VM: OpenJDK 64-Bit Server VM (25.171-b11 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.8.0
# Distribution: Custom build (Wed Jun 13 18:28:11 UTC 2018)
# Problematic frame:
# C 0x0000000000025426
#
# Core dump written. Default location: /usr/share/logstash/core or core.370
#
# An error report file with more information is saved as:
# /usr/share/logstash/hs_err_pid370.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
#
Segmentation fault (core dumped)
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000025426, pid=370, tid=0x00007f73bde90ae8
#
# JRE version: OpenJDK Runtime Environment (8.0_171-b11) (build 1.8.0_171-b11)
# Java VM: OpenJDK 64-Bit Server VM (25.171-b11 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.8.0
# Distribution: Custom build (Wed Jun 13 18:28:11 UTC 2018)
# Problematic frame:
# C 0x0000000000025426
#
# Core dump written. Default location: /usr/share/logstash/core or core.370
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00005576fc95f800): JavaThread "[main]-pipeline-manager" daemon [_thread_in_native, id=413, stack(0x00007f73bdc90000,0x00007f73bde90aa8)]
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000025426
Registers:
RAX=0x00005576fc7a8925, RBX=0x0000000000000015, RCX=0x0000000000000000, RDX=0x000000000000000d
RSP=0x00007f73bde8b038, RBP=0x00007f73bde8b060, RSI=0x0000000000000015, RDI=0x00005576fc7a8928
R8 =0x0000000000000003, R9 =0x00007f73bd148892, R10=0xfefefefefefefeff, R11=0x0000000000000002
R12=0x00005576fc7a891f, R13=0x00007f73bde8b074, R14=0x00005576fc7a8920, R15=0x00007f73bd00b610
RIP=0x0000000000025426, EFLAGS=0x0000000000010202, CSGSFS=0x002b000000000033, ERR=0x0000000000000014
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x00007f73bde8b038)
0x00007f73bde8b038: 00007f73bd00b0fa 00007f73bde8b050
0x00007f73bde8b048: 00000000ffffffff 00007f73dcc579c0
0x00007f73bde8b058: 0000000000000000 00007f73bde8b0c0
0x00007f73bde8b068: 00007f73bd00b585 0000000000000020
0x00007f73bde8b078: 00005576fc95f9e0 00005576fc7a8920
0x00007f73bde8b088: 00007f73bcfe2000 00007f73bcfe6231
0x00007f73bde8b098: 00007f73bd00afb0 00005576fc95f9e0
0x00007f73bde8b0a8: 00007f73bde8b2d0 0000000000000000
0x00007f73bde8b0b8: 00005576fbb19c00 00005576fbb19cc0
0x00007f73bde8b0c8: 00007f73db613042 0000000000000000
0x00007f73bde8b0d8: 00007f73bde8b2d8 00005576fc7a87c0
0x00007f73bde8b0e8: 0000000000000000 00000000d46f0be8
0x00007f73bde8b0f8: 00007f73dcc579c0 0000003000000020
0x00007f73bde8b108: 00005576fce64ac0 0000000000000000
0x00007f73bde8b118: 00000000d79bb684 fefefefefefefeff
0x00007f73bde8b128: 0000000000000049 00007f73bde8b2b8
0x00007f73bde8b138: 00007f73dd0e917d 00000000000000c0
0x00007f73bde8b148: 0000000000000005 00007f73dd353aa4
0x00007f73bde8b158: 00007f73dc4ab40e 00005576fc95f800
0x00007f73bde8b168: 0000000000000000 00007f73bde8b268
0x00007f73bde8b178: 0000000000000000 00005576fc95f800
0x00007f73bde8b188: 00007f73bde8b2d0 00007f73bde8b260
0x00007f73bde8b198: 0000000000000000 00007f73cc51ae80
0x00007f73bde8b1a8: 00007f73dcc955a0 00000000cee07a70
0x00007f73bde8b1b8: 00000000d57b3ff8 00000000cee07b60
0x00007f73bde8b1c8: 0000000040200020 00007f73bde8b200
0x00007f73bde8b1d8: 00007f73bde8b200 00007f73c70164d8
0x00007f73bde8b1e8: 00007f73cc403ffd 00000000cee07b60
0x00007f73bde8b1f8: 00000000cee07b60 00007f73bde8b2a8
0x00007f73bde8b208: f91fee667c90f71e 00007f73dd353aec
0x00007f73bde8b218: 00007f73c71b6ff8 00007f73bde8b2a8
0x00007f73bde8b228: 0000000000000000 00007f73c71b6ff8
Instructions: (pc=0x0000000000025426)
0x0000000000025406:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
Register to memory mapping:
RAX=0x00005576fc7a8925 is an unknown value
RBX=0x0000000000000015 is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x000000000000000d is an unknown value
RSP=0x00007f73bde8b038 is pointing into the stack for thread: 0x00005576fc95f800
RBP=0x00007f73bde8b060 is pointing into the stack for thread: 0x00005576fc95f800
RSI=0x0000000000000015 is an unknown value
RDI=0x00005576fc7a8928 is an unknown value
R8 =0x0000000000000003 is an unknown value
R9 =0x00007f73bd148892: _fini+0xc1e in /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_648344928788188020897.so at 0x00007f73bcfe2000
R10=0xfefefefefefefeff is an unknown value
R11=0x0000000000000002 is an unknown value
R12=0x00005576fc7a891f is an unknown value
R13=0x00007f73bde8b074 is pointing into the stack for thread: 0x00005576fc95f800
R14=0x00005576fc7a8920 is an unknown value
R15=0x00007f73bd00b610: JNI_OnLoad+0 in /tmp/libio_grpc_netty_shaded_netty_tcnative_linux_x86_648344928788188020897.so at 0x00007f73bcfe2000
Stack: [0x00007f73bdc90000,0x00007f73bde90aa8], sp=0x00007f73bde8b038, free space=2028k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000025426
C [libio_grpc_netty_shaded_netty_tcnative_linux_x86_648344928788188020897.so+0x29585] JNI_OnLoad_netty_tcnative+0x55
C [libjava.so+0xe042] Java_java_lang_ClassLoader_00024NativeLibrary_load+0xf2
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;Z)V+0
j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+328
j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
j java.lang.System.load(Ljava/lang/String;)V+7
j io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(Ljava/lang/String;Z)V+5
v ~StubRoutines::call_stub
J 8199 sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (0 bytes) @ 0x00007f73cd255e37 [0x00007f73cd255dc0+0x77]
J 8198 C1 sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (104 bytes) @ 0x00007f73ccf7390c [0x00007f73ccf72780+0x118c]
J 8320 C1 sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (10 bytes) @ 0x00007f73cc826e6c [0x00007f73cc826e00+0x6c]
J 8191 C1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (62 bytes) @ 0x00007f73cd2565cc [0x00007f73cd2561e0+0x3ec]
j io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader$1.run()Ljava/lang/Object;+53
v ~StubRoutines::call_stub
J 1895 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object; (0 bytes) @ 0x00007f73cca6af8f [0x00007f73cca6af40+0x4f]
j io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(Ljava/lang/Class;Ljava/lang/String;Z)V+10
j io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadLibrary(Ljava/lang/ClassLoader;Ljava/lang/String;Z)V+15
j io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.load(Ljava/lang/String;Ljava/lang/ClassLoader;)V+402
j io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(Ljava/lang/ClassLoader;[Ljava/lang/String;)V+33
j io.grpc.netty.shaded.io.netty.handler.ssl.OpenSsl.loadTcNative()V+173
j io.grpc.netty.shaded.io.netty.handler.ssl.OpenSsl.
@fkoclas mentions issues running the 1.0.0 version of this plugin on Alpine. See #5 for more details.
Config which works on the
openjdk:8-jre
docker image but notopenjdk:8-jre-alpine
The error is: