Guild icon
DDraceNetwork
Development / bugs
Report client & server bugs, especially but not limited to release candidates.
Between 2023-12-09 00:00:00Z and 2023-12-10 00:00:00Z
Avatar
Avatar
-StormAx
Click to see attachment πŸ–ΌοΈ
Yeah had the same issue recently
Avatar
Avatar
-StormAx
Click to see attachment πŸ–ΌοΈ
Update to latest nightly
09:27
Ah, never mind, it's not the map bug
09:28
Remove scaling of TargetX and TargetY by zoom, as it completely breaks ShowDistance and /tp. Also removed /telecursor, as it won't be accurate after this change. Closes #7569. Checklist Teste...
Avatar
Houston, I do have a problem! Since yesterday, if I join a server with >~32 tees, the game almost immediately hangs up, resulting after minutes in a segfault. I tried the AUR version, the git version and the website binary one. Windows version isn't affected, it works.
Avatar
Avatar
Fussel
Houston, I do have a problem! Since yesterday, if I join a server with >~32 tees, the game almost immediately hangs up, resulting after minutes in a segfault. I tried the AUR version, the git version and the website binary one. Windows version isn't affected, it works.
Jupstar βœͺ 2023-12-09 09:59:38Z
if you self compile, simply attach a debugger
09:59
then you'll know where it crashes
Avatar
does this help you?
Avatar
@Learath2
10:09
@Fussel what libcurl version u got?
10:10
i got 8.4.0 joined a sv and works
10:10
im on the latest commit
Avatar
Avatar
Fussel
does this help you?
Jupstar βœͺ 2023-12-09 10:11:05Z
could you compile with debug info on? for cmake cmake .. -DCMAKE_BUILD_TYPE=Debug
Avatar
yes, but this will take a while …
Avatar
Jupstar βœͺ 2023-12-09 10:11:35Z
ok
Avatar
is it theoretically possible for some skips to be possible on GER2 but not on GER10?
Avatar
Avatar
Michel
is it theoretically possible for some skips to be possible on GER2 but not on GER10?
Jupstar βœͺ 2023-12-09 10:28:24Z
unlikely
10:28
except it's a different CPU architecture or compile flags differ
Avatar
[New Thread 0x7fff5b3a56c0 (LWP 11723)] [Thread 0x7fff614ee6c0 (LWP 11715) exited] [Thread 0x7fff5b3a56c0 (LWP 11723) exited] [Thread 0x7fff5aba46c0 (LWP 11724) exited] [Thread 0x7fff6f6fd6c0 (LWP 11716) exited] [Thread 0x7fff5e3ab6c0 (LWP 11717) exited] [Thread 0x7fff5bba66c0 (LWP 11722) exited] [Thread 0x7fff5d3a96c0 (LWP 11719) exited] [Thread 0x7fff5dbaa6c0 (LWP 11718) exited] [Thread 0x7fff5c3a76c0 (LWP 11721) exited] [Thread 0x7fff5cba86c0 (LWP 11720) exited] 2023-12-09 11:33:48 I client: got pong from current server, latency=51ms Thread 3 "DDNet" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe3c236c0 (LWP 11656)] 0x00007ffff4833f3c in ?? () from /usr/lib/libcurl.so.4 (gdb) bt #0 0x00007ffff4833f3c in () at /usr/lib/libcurl.so.4 #1 0x00007ffff488d274 in () at /usr/lib/libcurl.so.4 #2 0x00007ffff486d0e3 in () at /usr/lib/libcurl.so.4 #3 0x00007ffff487909e in () at /usr/lib/libcurl.so.4 #4 0x00007ffff487acb6 in curl_multi_perform () at /usr/lib/libcurl.so.4 #5 0x00007ffff484adc4 in curl_easy_perform () at /usr/lib/libcurl.so.4 #6 0x0000555555964821 in CHttpRequest::RunImpl(void*) (this=0x5555570a3d10, pUser=0x7fffd4002960) at /home/ich/FFClient/ddnet/src/engine/shared/http.cpp:292 #7 0x0000555555964176 in CHttpRequest::Run() (this=0x5555570a3d10) at /home/ich/FFClient/ddnet/src/engine/shared/http.cpp:158 #8 0x00005555559684dc in CJobPool::RunBlocking(IJob*) (pJob=0x5555570a3d10) at /home/ich/FFClient/ddnet/src/engine/shared/jobs.cpp:106 #9 0x00005555559681b7 in CJobPool::WorkerThread(void*) (pUser=0x555555d65730) at /home/ich/FFClient/ddnet/src/engine/shared/jobs.cpp:60 #10 0x00005555559910a8 in thread_run(void*) (user=0x555555d25940) at /home/ich/FFClient/ddnet/src/base/system.cpp:797 #11 0x00007ffff3caa9eb in () at /usr/lib/libc.so.6 #12 0x00007ffff3d2e7cc in () at /usr/lib/libc.so.6
Avatar
Jupstar βœͺ 2023-12-09 10:35:02Z
ah this isnt ddnet?
Avatar
it is, I'm about to modify the client for moderator needs, but I didn't modifiy anything so far
Avatar
Jupstar βœͺ 2023-12-09 10:35:52Z
ok
Avatar
It's simply the version from github
Avatar
Jupstar βœͺ 2023-12-09 10:36:17Z
well sadly it doesn't show anything useful here (to me at least)
10:36
what is the log before it crashes?
10:36
i wonder what even calls the http request
Avatar
do you want a wall of text or a txt file?
Avatar
Jupstar βœͺ 2023-12-09 10:38:02Z
the latest lines are enough
Avatar
nothing special
Avatar
Jupstar βœͺ 2023-12-09 10:38:45Z
if it's a bug in our code: https://github.com/ddnet/ddnet#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck could also work but maybe it's a bug in curl?
Avatar
2023-12-09 11:33:46 I client: connecting to '37.230.210.231:8327' 2023-12-09 11:33:46 I host_lookup: host='37.230.210.231' port=8327 3 2023-12-09 11:33:46 I client: connected, sending info 2023-12-09 11:33:46 I datafile: could not open 'maps/Kobra.map' 2023-12-09 11:33:46 I motd: DDraceNetwork - ddnet.org 2023-12-09 11:33:46 I motd: Novice Server 2023-12-09 11:33:46 I motd: 2023-12-09 11:33:46 I motd: ╭─ Cα΄œΚ€Κ€α΄‡Ι΄α΄› Mα΄€α΄˜ 2023-12-09 11:33:46 I motd: β”‚ Map: Kobra 2023-12-09 11:33:46 I motd: β”‚ Mapper: Zerodin 2023-12-09 11:33:46 I motd: β”‚ Difficulty: β˜…β˜…β˜…β˜…βœ° (4 Points) 2023-12-09 11:33:46 I motd: β”‚ Released on 2014-01-19 2023-12-09 11:33:46 I motd: β”‚ 663042 finishes by 133471 tees 2023-12-09 11:33:46 I motd: β”‚ Top Time: 03:33 2023-12-09 11:33:46 I motd: β”‚ Median Time: 48:24 2023-12-09 11:33:46 I motd: β”‚ Worst Time: 139:11:17 2023-12-09 11:33:46 I motd: ╰─────────────────────── 2023-12-09 11:33:48 I chat: *** 'nameless tee' entered and joined the game 2023-12-09 11:33:48 I chat: *** DDraceNetwork Mod. Version: 0.6.4, 17.4 2023-12-09 11:33:48 I chat: *** please visit DDNet.org or say /info and make sure to read our /rules 2023-12-09 11:33:48 I chat: *** Welcome to DDraceNetwork! then my tee falls from start position to ground (normal) and freezes
Avatar
37.230.210.231:8327 is an official DDNet server. <steam://run/412220//37.230.210.231:8327>/
Avatar
Avatar
Fussel
2023-12-09 11:33:46 I client: connecting to '37.230.210.231:8327' 2023-12-09 11:33:46 I host_lookup: host='37.230.210.231' port=8327 3 2023-12-09 11:33:46 I client: connected, sending info 2023-12-09 11:33:46 I datafile: could not open 'maps/Kobra.map' 2023-12-09 11:33:46 I motd: DDraceNetwork - ddnet.org 2023-12-09 11:33:46 I motd: Novice Server 2023-12-09 11:33:46 I motd: 2023-12-09 11:33:46 I motd: ╭─ Cα΄œΚ€Κ€α΄‡Ι΄α΄› Mα΄€α΄˜ 2023-12-09 11:33:46 I motd: β”‚ Map: Kobra 2023-12-09 11:33:46 I motd: β”‚ Mapper: Zerodin 2023-12-09 11:33:46 I motd: β”‚ Difficulty: β˜…β˜…β˜…β˜…βœ° (4 Points) 2023-12-09 11:33:46 I motd: β”‚ Released on 2014-01-19 2023-12-09 11:33:46 I motd: β”‚ 663042 finishes by 133471 tees 2023-12-09 11:33:46 I motd: β”‚ Top Time: 03:33 2023-12-09 11:33:46 I motd: β”‚ Median Time: 48:24 2023-12-09 11:33:46 I motd: β”‚ Worst Time: 139:11:17 2023-12-09 11:33:46 I motd: ╰─────────────────────── 2023-12-09 11:33:48 I chat: *** 'nameless tee' entered and joined the game 2023-12-09 11:33:48 I chat: *** DDraceNetwork Mod. Version: 0.6.4, 17.4 2023-12-09 11:33:48 I chat: *** please visit DDNet.org or say /info and make sure to read our /rules 2023-12-09 11:33:48 I chat: *** Welcome to DDraceNetwork! then my tee falls from start position to ground (normal) and freezes
Jupstar βœͺ 2023-12-09 10:40:14Z
do you have a custom skin download URL or smth?
Avatar
only community skins download enabled, but that's not the bug, it occurs even when I delete my .local/share/ddnet folder and start the game
Avatar
Jupstar βœͺ 2023-12-09 10:41:44Z
i see
Avatar
btw: libcurl wasn't updated in between
Avatar
Avatar
Jupstar βœͺ
if it's a bug in our code: https://github.com/ddnet/ddnet#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck could also work but maybe it's a bug in curl?
Jupstar βœͺ 2023-12-09 10:45:09Z
^ then i can only suggest this
10:45
if it's a bug in our code, it shouldℒ️ find it
10:45
except it's a multi threading bug, then it's a bit harder
Avatar
Check the SAN.* files afterwards. erm … where they should be?
11:01
I don't find anything like that ^^
Avatar
back on window, so I can somewhat do what I'm not paid for ^^
Avatar
Avatar
Fussel
Check the SAN.* files afterwards. erm … where they should be?
u need to execute the exec with the env vars it says
Avatar
@Ryozuki i c&p the whole lines
Avatar
Avatar
Fussel
4.8.0
That is one ancient libcurl, are you sure? I don't think we even support libcurl that old
Avatar
i just made ls /usr/lib/libc*, 4 points to 4.8.0
14:22
even if it's outdated, there is at least the question where it comes from … arch is usually not known for ancient software …
Avatar
brb switching back to linux (edited)
Avatar
We should have a switch for curl debug. Turn that on. Keep an eye on the logs before it crashes. I would also use a debug build of curl to be honest, you can force load it using LD_PRELOAD
Avatar
pacman -Qo libcurl.so.4.8.0 /usr/lib/libcurl.so.4.8.0 ist in curl 8.5.0-1 enthalten
14:40
seems to be just a misleading naming for whatever reasons
Avatar
@Learath2 that's somewhat strange: i print the URLs it calls, i get 2023-12-09 16:48:05 I bla: pHandle https://skins.ddnet.org/skin/koon.png 2023-12-09 16:48:05 I bla: pHandle https://skins.ddnet.org/skin/mermyfox.png 2023-12-09 16:48:05 I client: got pong from current server, latency=66ms 2023-12-09 16:48:05 I bla: pHandle https://skins.ddnet.org/skin/cutekitty.png 2023-12-09 16:48:05 I bla: pHandle https://skins.ddnet.org/skin/CrystalCat.png and there it crashes
15:52
if I deactivate downloading skins at all, it works
Avatar
Ok, next step is getting a debug build of curl if you cba
Avatar
is there any possibility without compiling curl?
Avatar
Apparently in arch there is something called debuginfod
15:58
Check if DEBUGINFO_URLS environment variable is set for you
Avatar
Downloading separate debug info for /usr/lib/libcurl.so.4
Avatar
Now if you get a backtrace it should show what happened in libcurl too
Avatar
well I hope he keeps it between debugging sessions
Avatar
I honestly have no idea, I never used this newfangled technology. I just build a debug version
Avatar
Hm, that pointer looks absurd
Avatar
which one? line 10?
Avatar
Avatar
Fussel
which one? line 10?
No at the very end, async=0x58
16:21
Well the very start technically
Avatar
yes, this one is illegal
Avatar
So somehow that easy handle was ruined
16:23
Did you try ASAN btw?
16:24
Yeah you did, hm maybe it happens inside libcurl, try valgrind instead
16:24
it's much slower but it'll instrument all user-space code
Avatar
this will take ages … πŸ˜„
Avatar
Debugging is a marathon not a sprint πŸ™ƒ
Avatar
shh, I'm getting a game window!
Avatar
Avatar
Fussel
shh, I'm getting a game window!
it's slow sure, but it's not supposed to be that slow
16:35
what settings did you start it with?
Avatar
valgrind DDnet (it's a slow computer too…)
16:40
and keep in mind that 99.999% of the systems resources are used by the discord client …
16:44
btw I have posted the results 5 mins before
16:48
16:55
finally
16:55
need to go now, please leave some ideas πŸ™‚
Avatar
when i join server <map> the game crashed
Avatar
Jupstar βœͺ 2023-12-09 17:09:28Z
which server & which map
Avatar
Avatar
Jupstar βœͺ
which server & which map
all maps
Avatar
Avatar
Phoenix
all maps
Jupstar βœͺ 2023-12-09 17:10:30Z
steam version?
Avatar
Avatar
Jupstar βœͺ
steam version?
yp
17:28
core i3 4005 1.70ghz 4gb
Avatar
Avatar
Phoenix
yp
Jupstar βœͺ 2023-12-09 17:33:27Z
try select opengl in start options
17:33
for old computers maybe
Avatar
Avatar
Learath2
Check if DEBUGINFO_URLS environment variable is set for you
DEBUGINFOD_URLS, no?
Avatar
yep, typo
18:44
It really seems somehow conn is NULL there, I wonder if it's an LTO issue given it doesn't happen on our builds
Avatar
i get Segmentation fault (core dumped) whenever i join a game (ddnet 17.4 on arch linux [both steam and aur crashes])
Avatar
can you give a stacktrace?
Avatar
if this is what you mean by stacktrace: $ DDNet 2023-12-09 20:08:14 I engine: running on unix-linux-amd64 2023-12-09 20:08:14 I engine: arch is little endian 2023-12-09 20:08:14 I engine: operating system version: Linux 6.1.65-1-lts (x86_64, #1 SMP PREEMPT_DYNAMIC Sun, 03 Dec 2023 12:06:12 +0000); "EndeavourOS" 2023-12-09 20:08:14 I storage: couldn't open storage.cfg 2023-12-09 20:08:14 I storage: using standard paths 2023-12-09 20:08:14 I storage: added path '$USERDIR' ('/home/dev7z/.local/share/ddnet') 2023-12-09 20:08:14 I storage: added path '$DATADIR' ('/usr/share/ddnet/data') 2023-12-09 20:08:14 I storage: added path '$CURRENTDIR' ('/home/dev7z') 2023-12-09 20:08:14 I http: libcurl version 8.5.0 (compiled = 8.5.0) 2023-12-09 20:08:14 I console: executing 'settings_ddnet.cfg' 2023-12-09 20:08:14 I client: starting... 2023-12-09 20:08:14 I sdl: SDL version 2.28.5 (compiled = 2.28.5) 2023-12-09 20:08:14 I gfx: Created Vulkan 1.1 context. 2023-12-09 20:08:14 I gfx: GPU vendor: NVIDIA 2023-12-09 20:08:14 I gfx: GPU renderer: NVIDIA GeForce GTX 1660 SUPER 2023-12-09 20:08:14 I gfx: GPU version: Vulkan 1.3.260 (driver: 545.29.6.0) 2023-12-09 20:08:14 I sound: sound init successful using audio driver 'pulseaudio' 2023-12-09 20:08:14 I textrender: Freetype version 2.13.2 (compiled = 2.13.2) 2023-12-09 20:08:14 I joystick: 0 joystick(s) found 2023-12-09 20:08:14 I datafile: could not open 'themes/Dizzy by Oblique and jao_night.map' 2023-12-09 20:08:14 I http: https://master3.ddnet.org/ddnet/15/servers.json failed. libcurl error (6): Could not resolve host: master3.ddnet.org 2023-12-09 20:08:14 I client: version 17.4 on linux amd64 2023-12-09 20:08:14 I client: git revision hash: 797a3c9f14c823b1 2023-12-09 20:08:14 I http: fetching https://info.ddnet.org/info?name=Asparagus 2023-12-09 20:08:14 I http: fetching https://master1.ddnet.org/ddnet/15/servers.json
19:10
2023-12-09 20:08:14 I http: fetching https://info.ddnet.org/info?name=Asparagus 2023-12-09 20:08:14 I http: task done https://info.ddnet.org/info?name=Asparagus 2023-12-09 20:08:14 I http: task done https://info.ddnet.org/info?name=Asparagus 2023-12-09 20:08:14 I http: task done https://master1.ddnet.org/ddnet/15/servers.json 2023-12-09 20:08:16 I client: connecting to '176.9.114.238:8323' 2023-12-09 20:08:16 I host_lookup: host='176.9.114.238' port=8323 3 2023-12-09 20:08:16 I client: connected, sending info 2023-12-09 20:08:16 I datafile: could not open 'maps/Derpy 1.map' 2023-12-09 20:08:16 I motd: DDraceNetwork - ddnet.org 2023-12-09 20:08:16 I motd: DDmaX.Next Server 2023-12-09 20:08:16 I motd: 2023-12-09 20:08:16 I motd: ╭─ Cα΄œΚ€Κ€α΄‡Ι΄α΄› Mα΄€α΄˜ 2023-12-09 20:08:16 I motd: β”‚ Map: Derpy 1 2023-12-09 20:08:16 I motd: β”‚ Mapper: Evgesha 2023-12-09 20:08:16 I motd: β”‚ Difficulty: β˜…β˜…βœ°βœ°βœ° (8 Points) 2023-12-09 20:08:16 I motd: β”‚ Released on 2015-06-04 2023-12-09 20:08:16 I motd: β”‚ 8763 finishes by 7513 tees 2023-12-09 20:08:16 I motd: β”‚ Top Time: 08:23 2023-12-09 20:08:16 I motd: β”‚ Median Time: 01:02:03 2023-12-09 20:08:16 I motd: β”‚ Worst Time: 12:06:47 2023-12-09 20:08:16 I motd: ╰─────────────────────── 2023-12-09 20:08:17 I chat: *** 'Asparagus' entered and joined the game 2023-12-09 20:08:17 I chat: *** DDraceNetwork Mod. Version: 0.6.4, 17.4 2023-12-09 20:08:17 I chat: *** please visit DDNet.org or say /info and make sure to read our /rules 2023-12-09 20:08:17 I chat: *** Welcome to DDraceNetwork! 2023-12-09 20:08:17 I demo_recorder: Recording to 'demos/auto/Derpy 1_2023-12-09_20-08-17.demo' 2023-12-09 20:08:17 I game/png: failed to open file. filename='assets/entities/neon-min/ddnet.png' Segmentation fault (core dumped)
Avatar
176.9.114.238:8323 is an official DDNet server. <steam://run/412220//176.9.114.238:8323>/
Avatar
Jupstar βœͺ 2023-12-09 19:16:45Z
looks like the bug above
19:16
probably arch bug
Avatar
Downloading separate debug info for /usr/lib/librsvg-2.so.2 ???
19:24
Downloading separate debug info for /usr/lib/libssh.so.4 ??!?
19:24
why do we link those libraries?
Avatar
I can reproduce the crash
19:36
but I don't get debug symbols for libcurl, for whatever reason
Avatar
Avatar
Fussel
Click to see attachment πŸ–ΌοΈ
yea, now I can reproduce this backtrace
Avatar
Avatar
Learath2
It really seems somehow conn is NULL there, I wonder if it's an LTO issue given it doesn't happen on our builds
yep, conn is nullptr
Avatar
I don't quite know the tool appropriate for tracking changes in that given it doesn't happen on every request
Avatar
@heinrich5991 tomorrow i'll see if downgrading libcurl is a temporary fix
21:02
currently only totally disabling skin download is one
21:03
<- afk ^^
Avatar
Avatar
Fussel
@heinrich5991 tomorrow i'll see if downgrading libcurl is a temporary fix
I can't get it to crash with libcurl 8.4.0
21:06
yea, but with libcurl 8.5.0 it crashes instantly
21:06
I can't find anything related to it in the curl bugtracker
21:06
currently I'd still assume it's a bug in our code ^^
Avatar
While calling /map *** the server just crashing
Avatar
Seems on ZAF servers using /map %Nauf for example is crashing servers.. I may have crashed 4 servers just now πŸ™
Avatar
Avatar
garry
Seems on ZAF servers using /map %Nauf for example is crashing servers.. I may have crashed 4 servers just now πŸ™
seems to be no crash, "only" becoming unresponsive
Avatar
Avatar
-StormAx
While calling /map *** the server just crashing
Main thread: #0 futex_wait (private=0, expected=2, futex_word=0x56534c15eab0) at ../sysdeps/nptl/futex-internal.h:146 #1 GI_lll_lock_wait (futex=futex@entry=0x56534c15eab0, private=0) at ./nptl...
23:35
@garry ^ (edited)
Exported 125 message(s)