Skip to content

Instantly share code, notes, and snippets.

[21:10:12] [main/INFO] [GradleStart]: Extra: []
[21:10:12] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, {REDACTED}/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[21:10:12] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[21:10:12] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[21:10:12] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:10:12] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[21:10:12] [main/INFO] [FML]: Forge Mod Loader version 14.21.1.2406 for Minecraft 1.12 loading
[21:10:12] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_131, run
MultiMC version: 0.5.0-887
Minecraft folder is:
instances/Mekanism Crash Test/minecraft
Java path is:
/usr/bin/java
Jan 02, 2018 8:13:50 PM io.netty.util.ResourceLeakDetector reportTracedLeak
SEVERE: LEAK: ByteBuf.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information.
WARNING: 25 leak records were discarded because the leak record count is limited to 4. Use system property io.netty.leakDetection.maxRecords to increase the limit.
Recent access records: 5
#5:
io.netty.buffer.AdvancedLeakAwareByteBuf.readInt(AdvancedLeakAwareByteBuf.java:432)
net.minecraft.network.PacketBuffer.readInt(PacketBuffer.java:953)
mcjty.theoneprobe.network.NetworkTools.readItemStack(NetworkTools.java:40)
mcjty.theoneprobe.network.PacketGetInfo.fromBytes(PacketGetInfo.java:56)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.decodeInto(SimpleIndexedCodec.java:36)
---- Minecraft Crash Report ----
WARNING: coremods are present:
LoadingPlugin (RandomThings-MC1.12.2-4.1.jar)
Contact their authors BEFORE contacting forge
// Surprise! Haha. Well, this is awkward.
Time: 1/13/18 3:57 PM
Description: Ticking block entity
java.lang.StackOverflowError: Exception ticking world
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(Unknown Source)
at net.minecraftforge.fml.common.eventhandler.EventBus.handleException(EventBus.java:199)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:190)
at net.minecraftforge.event.ForgeEventFactory.onNeighborNotify(ForgeEventFactory.java:158)
at net.minecraft.world.World.notifyNeighborsOfStateChange(World.java:462)
at net.minecraft.world.World.notifyNeighborsRespectDebug(World.java:423)
at net.minecraft.world.World.markAndNotifyBlock(World.java:368)
at net.minecraft.world.World.setBlockState(World.java:349)
@josephcsible
josephcsible / unmap_all_syscalls.c
Last active July 17, 2022 16:39
Make it impossible for strace to force a syscall
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/syscall.h>
@josephcsible
josephcsible / gist:44c669a4871751007249de851470d2a2
Created November 13, 2018 01:10
logcat of Google Camera force closing
11-12 19:56:06.638 12583 12583 D AndroidRuntime: Shutting down VM
11-12 19:56:06.638 12583 12583 E AndroidRuntime: FATAL EXCEPTION: main
11-12 19:56:06.638 12583 12583 E AndroidRuntime: Process: com.google.android.GoogleCamera, PID: 12583
11-12 19:56:06.638 12583 12583 E AndroidRuntime: java.lang.RuntimeException: java.lang.IllegalArgumentException: Could not find tag for key 'com.google.nexus.experimental2017.request.disable_hdrplus')
11-12 19:56:06.638 12583 12583 E AndroidRuntime: at fef.run(PG:2)
11-12 19:56:06.638 12583 12583 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790)
11-12 19:56:06.638 12583 12583 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
11-12 19:56:06.638 12583 12583 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
11-12 19:56:06.638 12583 12583 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6494)
11-12 19:56:06.638 12583 12583 E AndroidRuntime: at java.lang.refl
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <sys/mman.h>
typedef int (delayed_puts_t)(void);
extern delayed_puts_t puts_helper;
extern size_t puts_helper_size;
__asm__ (
#include <iostream>
#include <cstring>
#include <sys/mman.h>
extern "C" {
extern const char compose_helper_nomem[];
extern const size_t compose_helper_nomem_size;
extern const char compose_helper_mem[];
extern const size_t compose_helper_mem_size;
@josephcsible
josephcsible / combinatory.c
Last active June 16, 2020 21:06
Combinatory logic with C, using raw function pointers as closures
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <sys/mman.h>
typedef void *(*f)(void *);
f make_function_with_state(f code, size_t code_len, void *state, size_t state_len) {
f mem = mmap(NULL, code_len + state_len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);