• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

GDB core.pid is not a core dump: file format not recognized

Azerty

Active Member
Joined
Apr 15, 2022
Messages
301
Solutions
4
Reaction score
31
Can anyone teach me how to use gdb?

Lua:
gdb tfs core.pid

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/g         pl.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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 tfs...
(No debugging symbols found in tfs)
"/home/otserv/core.pid" is not a core dump: file format not recognized
Post automatically merged:

my TFS 1.5 is crashing, I don't know what to do. Can someone help me?
 
Last edited:
First compile with gdb:
cd /home/dir/folder-with-tfs-engine
gdb build/tfs core
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
Then when it crashes you run:
bt full
 
/home/otserv/core" is not a core dump: file format not recognized
Are you sure that you are pointing towards the correct dir?
Where's your folder including sources? aka build-folder
Show picture of your setup from /otserv if you cant figure it out.
 
Are you sure that you are pointing towards the correct dir?
Where's your folder including sources? aka build-folder
Show picture of your setup from /otserv if you cant figure it out.
Yes, the path is correct, I follow everything correctly but I can't make it work
 
Yes, the path is correct, I follow everything correctly but I can't make it work
u need to use: gdb tfs core.NUMBERPID
like: gdb tfs core.8988 (is like that to me)
First compile with gdb:
cd /home/dir/folder-with-tfs-engine
gdb build/tfs core
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
Then when it crashes you run:
bt full
i was not using gdb on build, just "cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .."
i'm trying your pass, but anything is wrong:
cd /home/ot/ (in side there is data, and build dir)
gdb build/tfs core --invalid
gdb build tfs --invalid
if i do cs/home/ot/build too..

Undefined command: "build".
 
Back
Top