Skip to content

Instantly share code, notes, and snippets.

@yangm97
Created November 18, 2016 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yangm97/206cf42056aa9f4a14ea9830861171a9 to your computer and use it in GitHub Desktop.
Save yangm97/206cf42056aa9f4a14ea9830861171a9 to your computer and use it in GitHub Desktop.
Cuberite
/tmp # cd cuberite/Server/
/tmp/cuberite/Server # gdb ./Cuberite_debug
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./Cuberite_debug...done.
(gdb) set logging file crash.txt
(gdb) set logging on
Copying output to crash.txt.
(gdb) show logging
Currently logging to "crash.txt".
Logs will be appended to the log file.
Output is being logged and displayed.
(gdb) run
Starting program: /tmp/cuberite/Server/Cuberite_debug
warning: Error disabling address space randomization: Operation not permitted
[aa35db03b3f7b3f0|15:52:34] --- Started Log ---
[aa35db03b3f7b3f0|15:52:34] Cuberite local build build id: Unknown
[aa35db03b3f7b3f0|15:52:34] from commit id: approx: 3a89e9959bdad761a5d0aed4a84e54ded67bb79d built at: approx: 2016-11-16 14:26:46 +0100
[aa35db03b3f7b3f0|15:52:34] Creating new server instance...
[aa35db03b3f7b3f0|15:52:34] Reading server config...
[aa35db03b3f7b3f0|15:52:34] Regenerating settings.ini, all settings will be reset
[aa35db03b3f7b3f0|15:52:34] Starting server...
[aa35db03b3f7b3f0|15:52:34] Compatible clients: 1.8.x, 1.9.x, 1.10.x
[aa35db03b3f7b3f0|15:52:34] Compatible protocol versions 47, 107, 108, 109, 110, 210
[aa35db03b3f7b3f0|15:52:34] Generating protocol encryption keypair...
[aa35db03b3f7b3f0|15:52:35] Regenerating webadmin.ini, all settings will be reset
[aa35db03b3f7b3f0|15:52:35] Initialising WebAdmin...
[aa35db03b3f7b3f0|15:52:35] WebServer: The server will run in unsecured HTTP mode.
[aa35db03b3f7b3f0|15:52:35] Put a valid HTTPS certificate in file 'webadmin/httpscert.crt' and its corresponding private key to 'webadmin/httpskey.pem' (without any password) to enable HTTPS support
[aa35db03b3f7b3f0|15:52:35] Loading settings...
[aa35db03b3f7b3f0|15:52:35] There are no ranks, migrating old-style INI files to new DB ranks...
[aa35db03b3f7b3f0|15:52:35] (This might take a while)
[aa35db03b3f7b3f0|15:52:35] Reading groups...
[aa35db03b3f7b3f0|15:52:35] Rank migration failed, creating default ranks...
[aa35db03b3f7b3f0|15:52:35] Default ranks created.
[aa35db03b3f7b3f0|15:52:35] Loading crafting recipes from crafting.txt...
[aa35db03b3f7b3f0|15:52:35] Loaded 467 crafting recipes
[aa35db03b3f7b3f0|15:52:35] Loading furnace recipes...
[aa35db03b3f7b3f0|15:52:35] Loaded 22 furnace recipes and 56 fuels
[aa35db03b3f7b3f0|15:52:35] Loading brewing recipes...
[aa35db03b3f7b3f0|15:52:35] Loaded 88 brewing recipes
[aa35db03b3f7b3f0|15:52:35] Loading worlds...
[aa35db03b3f7b3f0|15:52:35] cWorld::cWorld("world")
[aa35db03b3f7b3f0|15:52:35] cWorld::cWorld("world_nether")
[aa35db03b3f7b3f0|15:52:35] cWorld::cWorld("world_end")
[aa35db03b3f7b3f0|15:52:35] Loading plugin manager...
[aa35db03b3f7b3f0|15:52:35] -- Loading Plugins --
[aa35db03b3f7b3f0|15:52:35] Initialised Core v.15
[aa35db03b3f7b3f0|15:52:35] Initialized TransAPI v.1
[aa35db03b3f7b3f0|15:52:35] Initialized ChatLog v.3
[aa35db03b3f7b3f0|15:52:35] -- Loaded 3 Plugins --
[aa35db03b3f7b3f0|15:52:35] Loading MonsterConfig...
[aa35db03b3f7b3f0|15:52:35] Starting Authenticator...
[aa35db03b3f7b3f0|15:52:35] Starting worlds...
[aa35db03b3f7b3f0|15:52:35] Allowed mob: bat
[aa35db03b3f7b3f0|15:52:35] Allowed mob: cavespider
[aa35db03b3f7b3f0|15:52:35] Allowed mob: chicken
[aa35db03b3f7b3f0|15:52:35] Allowed mob: cow
[aa35db03b3f7b3f0|15:52:35] Allowed mob: creeper
[aa35db03b3f7b3f0|15:52:35] Allowed mob: guardian
[aa35db03b3f7b3f0|15:52:35] Allowed mob: horse
[aa35db03b3f7b3f0|15:52:35] Allowed mob: mooshroom
[aa35db03b3f7b3f0|15:52:35] Allowed mob: ocelot
[aa35db03b3f7b3f0|15:52:35] Allowed mob: pig
[aa35db03b3f7b3f0|15:52:35] Allowed mob: rabbit
[aa35db03b3f7b3f0|15:52:35] Allowed mob: sheep
[aa35db03b3f7b3f0|15:52:35] Allowed mob: silverfish
[aa35db03b3f7b3f0|15:52:35] Allowed mob: skeleton
[aa35db03b3f7b3f0|15:52:35] Allowed mob: slime
[aa35db03b3f7b3f0|15:52:35] Allowed mob: spider
[aa35db03b3f7b3f0|15:52:35] Allowed mob: squid
[aa35db03b3f7b3f0|15:52:35] Allowed mob: wolf
[aa35db03b3f7b3f0|15:52:35] Allowed mob: zombie
[aa35db03b3f7b3f0|15:52:35] Chosen a new random seed for world: 863948647
[aa35db03b3f7b3f0|15:52:35] Using a cache for biomegen of size 16.
[aa35db03b3f7b3f0|15:52:35] Enabling multicache for biomegen of length 128.
[aa35db03b3f7b3f0|15:52:35] Generating random spawnpoint...
During startup program terminated with signal SIGSEGV, Segmentation fault.
(gdb) info threads
No threads.
(gdb) thread apply all bt
(gdb) q
/tmp/cuberite/Server # cat crash.txt
Currently logging to "crash.txt".
Logs will be appended to the log file.
Output is being logged and displayed.
Starting program: /tmp/cuberite/Server/Cuberite_debug
warning: Error disabling address space randomization: Operation not permitted
During startup program terminated with signal SIGSEGV, Segmentation fault.
No threads.
/tmp/cuberite/Server # gdb ./Cuberite_debug ./core.8
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./Cuberite_debug...done.
[New LWP 14]
[New LWP 8]
[New LWP 9]
[New LWP 15]
[New LWP 16]
[New LWP 13]
[New LWP 10]
[New LWP 12]
[New LWP 11]
warning: Can't read pathname for load map: No error information.
Core was generated by `/tmp/cuberite/Server/Cuberite_debug'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f5e066c04e2 in cChunkDef::SetBiome (a_BiomeMap=..., a_X=0, a_Z=14, a_Biome=biFlowerForest)
at /tmp/cuberite/src/ChunkDef.h:251
251 a_BiomeMap[a_X + Width * a_Z] = a_Biome;
[Current thread is 1 (LWP 14)]
(gdb) set logging on
Copying output to gdb.txt.
(gdb) set logging file crash2.txt
(gdb) show logging
Currently logging to "gdb.txt".
Future logs will be written to crash2.txt.
Logs will be appended to the log file.
Output is being logged and displayed.
(gdb) run
Starting program: /tmp/cuberite/Server/Cuberite_debug
warning: Error disabling address space randomization: Operation not permitted
[a24e727b097e715|15:58:35] --- Started Log ---
[a24e727b097e715|15:58:35] Cuberite local build build id: Unknown
[a24e727b097e715|15:58:35] from commit id: approx: 3a89e9959bdad761a5d0aed4a84e54ded67bb79d built at: approx: 2016-11-16 14:26:46 +0100
[a24e727b097e715|15:58:35] Creating new server instance...
[a24e727b097e715|15:58:35] Reading server config...
[a24e727b097e715|15:58:35] Regenerating settings.ini, all settings will be reset
[a24e727b097e715|15:58:35] Starting server...
[a24e727b097e715|15:58:35] Compatible clients: 1.8.x, 1.9.x, 1.10.x
[a24e727b097e715|15:58:35] Compatible protocol versions 47, 107, 108, 109, 110, 210
[a24e727b097e715|15:58:35] Generating protocol encryption keypair...
[a24e727b097e715|15:58:35] Initialising WebAdmin...
[a24e727b097e715|15:58:35] WebServer: The server will run in unsecured HTTP mode.
[a24e727b097e715|15:58:35] Put a valid HTTPS certificate in file 'webadmin/httpscert.crt' and its corresponding private key to 'webadmin/httpskey.pem' (without any password) to enable HTTPS support
[a24e727b097e715|15:58:35] Loading settings...
[a24e727b097e715|15:58:35] Loading crafting recipes from crafting.txt...
[a24e727b097e715|15:58:35] Loaded 467 crafting recipes
[a24e727b097e715|15:58:35] Loading furnace recipes...
[a24e727b097e715|15:58:35] Loaded 22 furnace recipes and 56 fuels
[a24e727b097e715|15:58:35] Loading brewing recipes...
[a24e727b097e715|15:58:35] Loaded 88 brewing recipes
[a24e727b097e715|15:58:35] Loading worlds...
[a24e727b097e715|15:58:35] cWorld::cWorld("world")
[a24e727b097e715|15:58:35] cWorld::cWorld("world_nether")
[a24e727b097e715|15:58:35] cWorld::cWorld("world_end")
[a24e727b097e715|15:58:35] Loading plugin manager...
[a24e727b097e715|15:58:35] -- Loading Plugins --
[a24e727b097e715|15:58:35] Initialised Core v.15
[a24e727b097e715|15:58:35] Initialized TransAPI v.1
[a24e727b097e715|15:58:35] Initialized ChatLog v.3
[a24e727b097e715|15:58:35] -- Loaded 3 Plugins --
[a24e727b097e715|15:58:35] Loading MonsterConfig...
[a24e727b097e715|15:58:35] Starting Authenticator...
[a24e727b097e715|15:58:35] Starting worlds...
[a24e727b097e715|15:58:35] Allowed mob: bat
[a24e727b097e715|15:58:35] Allowed mob: cavespider
[a24e727b097e715|15:58:35] Allowed mob: chicken
[a24e727b097e715|15:58:35] Allowed mob: cow
[a24e727b097e715|15:58:35] Allowed mob: creeper
[a24e727b097e715|15:58:35] Allowed mob: guardian
[a24e727b097e715|15:58:35] Allowed mob: horse
[a24e727b097e715|15:58:35] Allowed mob: mooshroom
[a24e727b097e715|15:58:35] Allowed mob: ocelot
[a24e727b097e715|15:58:35] Allowed mob: pig
[a24e727b097e715|15:58:35] Allowed mob: rabbit
[a24e727b097e715|15:58:35] Allowed mob: sheep
[a24e727b097e715|15:58:35] Allowed mob: silverfish
[a24e727b097e715|15:58:35] Allowed mob: skeleton
[a24e727b097e715|15:58:35] Allowed mob: slime
[a24e727b097e715|15:58:35] Allowed mob: spider
[a24e727b097e715|15:58:35] Allowed mob: squid
[a24e727b097e715|15:58:35] Allowed mob: wolf
[a24e727b097e715|15:58:35] Allowed mob: zombie
[a24e727b097e715|15:58:35] Using a cache for biomegen of size 16.
[a24e727b097e715|15:58:35] Enabling multicache for biomegen of length 128.
[a24e727b097e715|15:58:35] Generating random spawnpoint...
During startup program terminated with signal SIGSEGV, Segmentation fault.
(gdb) info threads
No threads.
(gdb) thread apply all bt
(gdb) q
/tmp/cuberite/Server # ls
BACKERS crash.txt monsters.ini
Cuberite_debug delete_windows_service.cmd motd.txt
MojangAPI.sqlite favicon.png vg
Plugins furnace.txt vg.supp
Prefabs gdb.txt webadmin
README.txt hg webadmin.ini
Ranks.sqlite hg.supp whitelist.sqlite
banlist.sqlite install_windows_service.cmd world
brewing.txt itemblacklist world_end
core.19 items.ini world_nether
core.8 lang
crafting.txt logs
/tmp/cuberite/Server #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment