Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2021-11-02 00:00:00Z and 2021-11-03 00:00:00Z
Avatar
chillerdragon BOT 2021-11-02 09:12:39Z
How do you guys punch your NAT's ? :D I use some ssh tunnel with autossh from some NAT client to my vps and then i can connect over my vps to that client. But it seems to die from time to time and then keep the port blocked so it can not be reestablished.
Avatar
echo "ServerAliveInterval 60" >> ~/.ssh/config might help
Avatar
as a backup, all my ssh servers are available as tor hidden services
10:55
that way, they are always reachable as long as they're somehow connected to the internet
Avatar
I don't punch them, just forward the ssh port in router
Avatar
[quakenet] SaintsDB BOT 2021-11-02 12:29:19Z
anyone round
Avatar
[quakenet] deen BOT 2021-11-02 13:01:43Z
hi SaintsDB
Avatar
[quakenet] SaintsDB BOT 2021-11-02 13:02:01Z
hey i emailed u
Avatar
[quakenet] deen BOT 2021-11-02 13:03:02Z
yes, I responded
Avatar
[quakenet] SaintsDB BOT 2021-11-02 13:03:23Z
lol playing on my phone ill go chk
Avatar
[quakenet] Saint2 BOT 2021-11-02 13:50:34Z
its been fine for roughly 45 daysish
Avatar
chillerdragon BOT 2021-11-02 14:48:54Z
yikes routers
14:51
image.png
14:52
i built a github chrome extension showing the stars of forks in the network tab. Can be useful to find good downstrea projects for example when the upstream got archived or similar.
14:52
if you are interested you can pre order the extension now!
14:52
wait wtf that looks broken what is the 20 next to ddnet/ddnet xd
14:53
oops it shows watching not stars lemme fix
Avatar
the number of people watching
Avatar
chillerdragon BOT 2021-11-02 14:54:19Z
ye fixed
14:54
image.png
14:54
here u go
14:55
i assume ahead or behind upstream is also interesting
Avatar
Should sort by stars
Avatar
chillerdragon BOT 2021-11-02 14:55:45Z
yea
15:00
image.png
15:00
i am such a UI genius
Avatar
Avatar
chillerdragon
image.png
so proud
15:20
Should hire you for UI design.
Avatar
chillerdragon BOT 2021-11-02 15:23:14Z
ikr
15:23
image.png
15:23
fixed it :)
Avatar
``` ================================================================= ==3885397==ERROR: AddressSanitizer: heap-use-after-free on address 0x6210000a7930 at pc 0x00000057ad40 bp 0x7ffce649dea0 sp 0x7ffce649de98 READ of size 8 at 0x6210000a7930 thread T0 #0 0x57ad3f in CDragger::Drag() /home/teeworlds/src/master/src/game/server/entities/dragger.cpp #1 0x57b7c1 in CDragger::Tick() /home/teeworlds/src/master/src/game/server/entities/dragger.cpp:159:2 #2 0x5e187e in CGameWorld::Ti...
Avatar
Jupstar ✪ BOT 2021-11-02 15:26:00Z
now automatically find the branch that has most +diff
15:26
longest fork chain too
15:27
for +diff, the most lines changed
15:27
xd
15:27
then you can sell it xdd
Avatar
chillerdragon BOT 2021-11-02 15:37:26Z
:D
Avatar
chillerdragon BOT 2021-11-02 15:51:52Z
does anyone other than me even miss this feature?
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
What would be the best way to get fontsize of teeworlds in the server code?
19:21
A static table of widths and heights?
19:21
for each letter
19:23
well, maybe i dont need the best/cleanest way, but one that will easily work without many libraries or so
Avatar
"Assembly is actually a high level abstraction"
19:37
monkalaugh
Avatar
when you are at the level of that guy, assembly is indeed high level
19:42
this the vid btw
Avatar
I watched it a couple times by now
Avatar
ur a pro watcher
19:47
poggers
Avatar
I just have a lot of free time as a failed human being
Avatar
chillerdragon BOT 2021-11-02 19:50:34Z
If u have a lot of free time add 0.7 support to the client :p
Avatar
sorry, can't work while depressed
19:51
maybe next month if my brain decides to allow me some serotonin
Avatar
just watch anime
19:52
and if u watched all good anime there is, read manga
19:52
im on the second stage
Avatar
I was going to watch kimi no na wa tonight, or maybe violet evergardens movie
19:53
Or I could read witch hat atelier, but not really in the mood for that
Avatar
u know one movie that fits better than those is Byousoku 5 Centimeter
19:53
for me the best movie of this kind as of now
19:53
xd
Avatar
Hm, that is on my watchlist too
Avatar
definitly better
19:53
u can actually feel identified somewhat
Avatar
I was going to get the manga for that, but people told me the film is better
Avatar
ye movie movie
19:54
i watched it 3 times already
19:54
brb food
Avatar
"Takaki Tōno's life and his relationships with the girls around him. "
How am I supposed to identify with that lmao. Please, I've been programming since I was 12
19:56
They really should make it illegal to touch computers until you are 18
Avatar
Avatar
Ryozuki
"Assembly is actually a high level abstraction"
i agree that asm is high level. It's still being processed on and interpreted to something specific for that HW.
Avatar
This definition of high level is not very useful. I think the only way one is supposed to talk about this is in relative terms
20:00
ASM is higher level than bytecode indeed. It's also lower level than many other languages used currently
Avatar
yeah high level just really means it's "floating" (as in some sort of abstraction) over the hardware
Avatar
Anyway, this is too on-topic, you are supposed to use the on-topic message as a branching point to something completely off-topic
Avatar
if you're like manually moving wires around on a bread-board or using something like verilog, that's low level i guess
20:02
or no level? idk
20:02
yeah that's right we are getting high in the developer chatroom
Avatar
"floating" isn't really a useful definition to me is my point, if all languages are high level then there is no use to the definition
Avatar
honestly high level low level etc isn't useful at all either
20:03
it's just an abstraction from talking about anything real
Avatar
Saying C and C++ are relatively low level to what is thought today is fairly useful to talk about
Avatar
the truth is, you could write hardware that only accepts Rust or something, transforming that directly into HW related stuff
20:06
but yeah i guess it's all a general purpose case
Avatar
I'll go get some food and sit on the floor, night 👋
Avatar
I think the more practical case, that is slightly off the normal case, is asm can be high level when you consider IRs like llvm
20:07
alright good night 👋
Avatar
Avatar
Learath2
"Takaki Tōno's life and his relationships with the girls around him. "
How am I supposed to identify with that lmao. Please, I've been programming since I was 12
thats exactly why u should watch it
20:16
its a movie about regretting your past
20:16
it has 3 stories btw
20:16
iirc
20:16
or 3 arcs
20:16
*
20:19
@Learath2 btw its by the same director as kimi no na wa
20:19
Shinkai, Makoto
20:19
truly a mastermind on anime movie making
Avatar
Avatar
fokkonaut
What would be the best way to get fontsize of teeworlds in the server code?
:D
Avatar
set it manualy
20:28
monkalaugh
Avatar
@Learath2 I really liked kimi no na wa 🙂
Avatar
Supposedly if you don't cry while watching it you aren't human
Avatar
lol i didnt cry
21:12
@Learath2 there is a anime movie about suicide
21:12
"Colorful"
21:12
i liked it
21:13
kinda a hidden gem
Avatar
Avatar
Ryozuki
lol i didnt cry
you are probably a psycopath
21:13
hard to cry with a 1-2 hour thing
21:13
clannad is better
Avatar
violet evergarden was quite nice if you are looking for something emotional 😛
Avatar
i seen it
21:14
its beautifuly animated
21:14
but idk thats it
21:14
the only movie that made me go to bed thinking hard is 5 centimeters
Avatar
the music is great too imo
21:14
grave of the fireflies is also supposed to be good, didn't watch yet
21:14
it is definitly good
21:14
i seen it
21:15
there is one even more obscure than it
21:15
barefoot gen
21:15
holy shit
21:15
if u dont like old movies then pass it
21:15
but its good
21:15
(83')
21:15
its on youtube
21:15
they dont take it off
21:16
beware there is some horrifying scenes
Avatar
ah you know what I'll do, I'll finish up squid game before starting anything else
Avatar
atomic bombs are not good looking after all
21:16
im addicted to japanese anime movies about the atomic bomb
21:16
there is a 3rd i dont remember
21:17
In This Corner of the World
21:18
Kono Sekai no Katasumi ni
Avatar
Avatar
Ryozuki
but idk thats it
wth
21:22
violet evergardn much more sad than your name
21:22
and better imo
Avatar
tbh i didnt find your name sad at all
21:23
Byōsoku Go Senchimētoru is superior
21:23
greenthing
Avatar
idk about much sad animes but i watched some and they were all pretty dull except v. evergarden and your lie in april
Avatar
you didn't watch clannad + clannad 2
Avatar
nah i heard it's good tho
Avatar
its a classic
21:25
a must watch if u like anime
21:26
5 cm per Second is a movie that takes a story of growing up and makes it into something that cannot be described as anything less than a masterpiece, with astounding themes, storytelling, art and sound. If someone told me I could watch one movie before I died, I'd undoubtedly choose this one.
21:26
i agree so much
21:27
weebs in
21:27
too offtopic
21:27
monkalaugh
Avatar
i notice a common scene in sad animes is they meet up again after like 20 years in public and pass eachother and look back at eachother then walk off again
Avatar
``` ================================================================= ==3755830==ERROR: AddressSanitizer: heap-use-after-free on address 0x619000009ce4 at pc 0x0000004b321d bp 0x7ffcc4f63c40 sp 0x7ffcc4f633f8 WRITE of size 63 at 0x619000009ce4 thread T0 #0 0x4b321c in strncpy (/home/teeworlds/servers/DDRace64-Server_sql+0x4b321c) #1 0x6fbc86 in strncpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10 #2 0x6fbc86 in str_copy /home/teeworlds/src/master/src/base/sys...
22:30
``` /home/teeworlds/src/master/src/engine/shared/compression.cpp:58:31: runtime error: left shift of 108 by 27 places cannot be represented in type 'int' #0 0x6423c3 in CVariableInt::Unpack(unsigned char const, int) /home/teeworlds/src/master/src/engine/shared/compression.cpp:58:31 #1 0x6ba20c in CUnpacker::GetInt() /home/teeworlds/src/master/src/engine/shared/packer.cpp:105:15 #2 0x6b7728 in CNetServer::OnPreConnMsg(NETADDR&, CNetPacketConstruct&) /home/teeworlds/src/master...
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
22:40
6565597 Try to fix CDragger's heap-use-after-free (fixes #4277) - def- 2446813 Merge #4278 - bors[bot]
22:53
b3984af CVariableInt: Limit to 31 bits to fit into int (fixes #4280) - def- 97f227b Merge #4281 - bors[bot]
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
// trying to set client name can delete the player object, check if it still exists
23:02
how? @deen
Avatar
e410315 Fix heap-use-after-free in OnMessage (fixes #4279) - def- 259155c Merge #4282 - bors[bot]
23:22

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [x] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
Changing ui element by hot keys was not visible to DoEditBox, and thus didn't act like selection params were resetted

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ]...
Avatar
@deen I actually don't know how to make this correctly without it being very ugly
23:39
I'm also wondering if we can just assume the asan headers to be there
23:39
it's one more dependency I guess
Avatar
or if you know more preprocessor magic than me you can give it a try
23:41
hm, now that I think about it that branch there is there even if no asan, which is bad too
Avatar
yeah, might want to ifdef that away entirely
23:42
ah, you're inside of a macro already, fun 😄
23:43
Tell me if I should try to fix it up (probably tomorrow)
23:43
why do you need to make sure you don't poison the same twice?
Avatar
Avatar
deen
why do you need to make sure you don't poison the same twice?
The first poison is to poison the entire pool, couldn't find another way to do it
23:44
I did make an attempt, if you want to take a look, not very pretty though
23:46
using a global static initializer?
23:47
i think that's the cleanest way
Avatar
@deen um, idk how
23:51
I pushed the ugly mess I came up with, if you don't like it I guess you can try tomorrow
Avatar
static int dummy = (some_function(), 0); is what I've seen a few times
23:52
(packed up into a macro)
Avatar
Yeah but asan works with shadow memory, it's not actually initializing the pool itself with sth from what I know
23:53
might be wrong though
Avatar
I'll push my version
Avatar
Jupstar ✪ BOT 2021-11-02 23:57:28Z
To enable continue-after-error, compile with -fsanitize-recover=address and then run your code with ASAN_OPTIONS=halt_on_error=0.
Avatar
i use that
Avatar
Jupstar ✪ BOT 2021-11-02 23:57:34Z
is that too bad?
23:57
oh ok
Avatar
problem is when you use-after-free with heap memory we could be doing an illegal access, causing the os to kill us
Exported 203 message(s)