samolego / SimpleAuth

Simple authentication mod for Fabric or Forge servers.
https://modrinth.com/mod/SimpleAuth
MIT License
39 stars 14 forks source link

[BUG] [Forge - Server crash] #52

Closed pietru2004 closed 3 years ago

pietru2004 commented 3 years ago

Mod Loader

Versions

Describe the bug Error below is shown after using /register - it does not show without plugin, I can play normaly also error is not beeing logged to server log file

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x0000000000000eb6, pid=67, tid=0x00007fc482791b10

JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)

Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-amd64 compresse

d oops)

Derivative: IcedTea 3.12.0

Distribution: Custom build (Sat May 4 17:33:35 UTC 2019)

Problematic frame:

C 0x0000000000000eb6

Core dump written. Default location: /data/core or core.67

An error report file with more information is saved as:

/data/hs_err_pid67.log

If you would like to submit a bug report, please include

instructions on how to reproduce the bug and visit:

https://icedtea.classpath.org/bugzilla

To Reproduce Steps to reproduce the behavior: Place to server directory and wait for java fatal error after registration - it worked for me.

Expected behavior Well clearly don't kill server if this is plugin/mod fault.

samolego commented 3 years ago

Could you provide the /data/hs_err_pid67.log please? This doesn't help much 😉

pietru2004 commented 3 years ago

I found it - I was not knowing what is location of log but It was just in server dir - sending and hopping it don't have any sensitive data... Or mayby just this - from my looking through error log it has your mod/plugin org.samo_lego.simpleauth

Part of log:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.jna.Native.invokeInt(Lcom/sun/jna/Function;JI[Ljava/lang/Object;)I+0 j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;ZI)Ljava/lang/Object;+216 j com.sun.jna.Function.invoke(Ljava/lang/reflect/Method;[Ljava/lang/Class;Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+271 j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+390 j com.sun.proxy.$Proxy51.argon2i_hash_encoded(Lde/mkammerer/argon2/jna/JnaUint32;Lde/mkammerer/argon2/jna/JnaUint32;Lde/mkammerer/argon2/jna/JnaUint32;[BLde/mkammerer/argon2/jna/Size_t;[BLde/mkammerer/argon2/jna/Size_t;Lde/mkammerer/argon2/jna/Size_t;[BLde/mkammerer/argon2/jna/Size_t;)I+64 j de.mkammerer.argon2.Argon2i.callLibraryHash([B[BLde/mkammerer/argon2/jna/JnaUint32;Lde/mkammerer/argon2/jna/JnaUint32;Lde/mkammerer/argon2/jna/JnaUint32;[B)I+55 j de.mkammerer.argon2.BaseArgon2.hashBytes(III[B[B)Ljava/lang/String;+96 j de.mkammerer.argon2.BaseArgon2.hashBytes(III[B)Ljava/lang/String;+14 j de.mkammerer.argon2.BaseArgon2.hash(III[CLjava/nio/charset/Charset;)Ljava/lang/String;+16 j de.mkammerer.argon2.BaseArgon2.hash(III[C)Ljava/lang/String;+9 j org.samo_lego.simpleauth.utils.hashing.HasherArgon2.hash([C)Ljava/lang/String;+9 j org.samo_lego.simpleauth.utils.AuthHelper.hashPassword([C)Ljava/lang/String;+18 j org.samo_lego.simpleauth.commands.RegisterCommand.lambda$register$2(Ljava/lang/String;Lnet/minecraft/entity/player/ServerPlayerEntity;)V+198 j org.samo_lego.simpleauth.commands.RegisterCommand$$Lambda$11263.run()V+8 j java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4 j java.util.concurrent.FutureTask.run()V+42 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub

samolego commented 3 years ago

Humm, try to use a different hashing lib.

pietru2004 commented 3 years ago

I check mayby first have I installed this lib - just to be clear...

pietru2004 commented 3 years ago

image trying other hash lib

pietru2004 commented 3 years ago

yay no crash this time thank for help.

samolego commented 3 years ago

Np!