





3











































memcpy.

















dumpbin on from Visual Studio tools) --> for this it says "400000 image base" (hex)
3. Open the executable with gdb
4. Use info symbol <address> to find out the function for the lines in the backtrace
Where <address> is calculates as the number at the end of the line (e.g. 0x2f0cbc for the first line) plus the module base address.
And do this for some of the lines:
(gdb) info symbol 0x786ef0
typeinfo for std::bad_alloc in section .rdata
(gdb) info symbol 0x6f00d2
operator new(unsigned int) [clone .cold] + 42 in section .text
(gdb) info symbol 0x552654
CLayerTiles::CLayerTiles(int, int) + 260 in section .text
(gdb) info symbol 0x558cd1
CEditor::UiDoPopupMenu() + 385 in section .text
















./DDNet and share the output



./DDNet/DDNet

sudo apt install ddnet should install you all needed libs

sudo apt update firstsudo apt install libsdl2-dev i guess but other libs are potentially missing too



sudo apt install ddnet



sudo apt install build-essential cargo cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python rustc spirv-tools




ldd ./DDNet let's see what is missing






apt install libsdl2










sudo apt install libsdl2-dev



apt-cache search libsdl2










libsdl2-2.0-0






cat /etc/apt/sources.list
sudo add-apt-repository universe in the terminal also works too apparently
GLIBC_2.28 not found message in the ldd output. Please don't make @Shyzo also building his own glibc on a live USB system.















apt upgrade










apt update updates the packages database provided by the APT sources. Then apt upgrade install the updated packages based on that package database.

apt update updates the packages database provided by the APT sources. Then apt upgrade install the updated packages based on that package database. 






































autoload backup bundle plugged swap undo






autocmd BufRead,BufNewFile settings_ddnet.cfg set filetype=ddnet-cfg
it only sets the syntax to ddnet-cfg automatically for settings_ddnet.cfg, u can manually set it for other cfgs

cp -R other/vim/* ~/.vim/









































./DDNet "gfx_backend OpenGL"





./DDNet "gfx_backend OpenGL" 





































hi def link comment Comment


















































"foo", "bar"




















\u002f\u002f to start a comment
<!-- this --> is a valid javascript comment? :D

\u002f\u002f to start a comment 




























































// Function handling
Param: Parameter = {
<Identifier> ":" <Identifier> => Parameter::new(<>)
};
Params = Comma<Param>;
FunctionReturn: Identifier = {
"->" <i:Identifier> => i,
}
Function: Function = {
"fn" <i:Identifier> "(" <a:Params> ")" <r:FunctionReturn?> "{" <s:Statements> "}" => Function::new(i, a, s, r)
}fn hello(a: i64, b: i64) -> i64 {
let x = a + b;
let y = x + 1;
}
let b = hello(2, 3, hello(4));





















shutdown or it may have failed to start entirely due to the map missing or another issue.
2. If the server stops directly after launching, we could try to show an error message, which would be even more useful if it could show the last few lines fr...
Hacker News • 2023-03-09 13:05:41Z 



sudo apt install build-essentialsudo apt install build-essential cmake git google-mock libcurl4-openssl-dev libssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libsdl2-dev libsqlite3-dev libwavpack-dev python libx264-dev libavfilter-dev libavdevice-dev libavformat-dev libavcodec-extra libavutil-dev libvulkan-dev glslang-tools spirv-tools libpng-dev
sudo before then it tells me permission denied xd


chmod 755 build/






cd && sudo chmod -R 755 Downloadscd -











cd && sudo chmod -R 755 Downloads && sudo chown -R ${USER} Downloads && sudo chgrp -R ${USER} && cd -




cd && sudo chmod -R 755 Downloads && sudo chown -R ${USER} Downloads && sudo chgrp -R ${USER} && cd - 

cd && sudo chmod -R 755 Downloads && sudo chown -R ${USER} Downloads && sudo chgrp -R ${USER} && cd - 



cd && sudo chmod -R 755 Downloads && sudo chown -R ${USER} Downloads && sudo chgrp -R ${USER} && cd - 
find Downloads -type f -exec chmod 644 {} \; then find Downloads -type -exec chmod 755 {} \;


cd && sudo chmod -R 755 Downloads && sudo chown -R ${USER} Downloads && sudo chgrp -R ${USER} && cd - ~ or whatever and then just run this?









chgrp -R ${USER} && cd Downloads-?










chgrp -R ${USER} && cd Downloads-? sudo chmod -R 755 Downloads && sudo chown -R ${USER}:${USER} Downloads
cd && sudo chmod -R 755 Downloads && sudo chown -R ${USER} Downloads && sudo chgrp -R ${USER} Downloads










































dumpbin on from Visual Studio tools) --> for this it says "400000 image base" (hex)
3. Open the executable with gdb
4. Use info symbol <address> to find out the function for the lines in the backtrace
Where <address> is calculates as the number at the end of the line (e.g. 0x2f0cbc for the first line) plus the module base address.
And do this for some of the lines:
(gdb) info symbol 0x786ef0
typeinfo for std::bad_alloc in section .rdata
(gdb) info symbol 0x6f00d2
operator new(unsigned int) [clone .cold] + 42 in section .text
(gdb) info symbol 0x552654
CLayerTiles::CLayerTiles(int, int) + 260 in section .text
(gdb) info symbol 0x558cd1
CEditor::UiDoPopupMenu() + 385 in section .text 




0x006f0cbc
uw_init_context_1
/build/mingw-w64-gcc/src/gcc/libgcc/unwind-dw2.c:1593
0x00786ef0
??
teamscore.cpp:?
0x006f00d2
??
ddnet_base.48a:?
0x00552654
_ZN11CLayerTilesC2Eii
/home/deen/isos/ddnet/ddnet-source/src/game/editor/layer_tiles.cpp:40
0x006ebfdc
_Znwj
/build/mingw-w64-gcc/src/gcc/libstdc++-v3/libsupc++/new_op.cc:50
0x0055f4b7
_ZN7CEditor10PopupGroupEPS_7CUIRectPv
/home/deen/isos/ddnet/ddnet-source/src/game/editor/popups.cpp:285
0x00558cd1
_ZN7CEditor13UiDoPopupMenuEv
/home/deen/isos/ddnet/ddnet-source/src/game/editor/popups.cpp:89
0x0054665f
_ZN7CEditor6RenderEv
/home/deen/isos/ddnet/ddnet-source/src/game/editor/editor.cpp:5967

0x006f0cbc
uw_init_context_1
/build/mingw-w64-gcc/src/gcc/libgcc/unwind-dw2.c:1593
0x00786ef0
??
teamscore.cpp:?
0x006f00d2
??
ddnet_base.48a:?
0x00552654
_ZN11CLayerTilesC2Eii
/home/deen/isos/ddnet/ddnet-source/src/game/editor/layer_tiles.cpp:40
0x006ebfdc
_Znwj
/build/mingw-w64-gcc/src/gcc/libstdc++-v3/libsupc++/new_op.cc:50
0x0055f4b7
_ZN7CEditor10PopupGroupEPS_7CUIRectPv
/home/deen/isos/ddnet/ddnet-source/src/game/editor/popups.cpp:285
0x00558cd1
_ZN7CEditor13UiDoPopupMenuEv
/home/deen/isos/ddnet/ddnet-source/src/game/editor/popups.cpp:89
0x0054665f
_ZN7CEditor6RenderEv
/home/deen/isos/ddnet/ddnet-source/src/game/editor/editor.cpp:5967 



