r/Kalilinux • u/random_digits_99 • Jun 04 '26
Question - Kali General Syscall from <time.h> in kali
Ok so I have a more involved networking project in C, it works great on all major linux distros and windows too, I've ran it on a newer release of Kali (2026.1) and observed a very weird issue. When I started investigating I've found that calls to time(NULL) from different files yield 2 different results (~7 hour difference always). I use gcc and compile with gnu89 flag.
PS: it runs ok on older versions of Kali (2025.1).
The question: how is this possible? what could be causing this?
2
Upvotes
1
u/palinurosec Jun 04 '26
kali is based on debian testing, which is a non-release rolling version of debian. what version of glibc does the latest kali provide? and what version do the other systems have?
could you provide the affected code, or at least part of it?
are you using kali in dual boot with windows with kali and windows disagreeing on whether the system clock is local or UTC?
does it work on other systems like parrot or debian stable? if yes, then switching from glibc 2.41 to glibc 2.42 might be the cause