Post At2xPLQ4qETUG2aHa4 by websterleone@meemu.org
(DIR) More posts by websterleone@meemu.org
(DIR) Post #AsvmJn04vQZqSRqvGi by foone@digipres.club
2025-04-10T00:15:41Z
1 likes, 0 repeats
ugh. gdb is telling me "Warning: /path/to/src/file.cpp: no such file or directory" and then I can just do !cat /path/to/src/file.cpp and it's there.WHY CAN'T YOU SEE FILES, GDB?
(DIR) Post #AsvmTb9fovW0cH1AdU by foone@digipres.club
2025-04-10T00:17:32Z
0 likes, 0 repeats
it's on the source directories path, but it shouldn't matter because this is an absolute path. I even tried adding / to the list of searched directories, nothing.substitute path? also no luck
(DIR) Post #AsvmZ92pFOR7AeSYim by efi@chitter.xyz
2025-04-10T00:18:29Z
0 likes, 0 repeats
@foone but is cat running in the same environment?
(DIR) Post #AsvmbRCehmfo4G9Pl2 by gsuberland@chaos.social
2025-04-10T00:18:39Z
0 likes, 0 repeats
@foone permissions?although it's gdb so I might as well recommend an appeal to moon magic
(DIR) Post #AsvmjBwJL4Ov2rCeYq by nabijaczleweli@101010.pl
2025-04-10T00:20:19Z
0 likes, 0 repeats
@foone strace saves all imo
(DIR) Post #Asvnc85zKdvZ3BvTW4 by foone@digipres.club
2025-04-10T00:30:16Z
0 likes, 0 repeats
oh it's because I'm using mingw gdb and it wants a windows-style path, not a unix style path.UGH
(DIR) Post #AsvnoZYL4XihgO7VFQ by foone@digipres.club
2025-04-10T00:32:33Z
1 likes, 0 repeats
sure let's just make C:\home\foone that's normal for windows
(DIR) Post #AsvtHd8fJo5WyNmpoe by foone@digipres.club
2025-04-10T01:33:38Z
0 likes, 0 repeats
@irina @gsuberland worse:windows
(DIR) Post #AsvtPX8bVvBkg5WhkW by foone@digipres.club
2025-04-10T01:35:11Z
0 likes, 0 repeats
it's fun trying to do open-source debugging when you're a reverse engineer. it's like, oh no, gdb can't load the symbols for all these files! what's that? I've already got it open in x64dbg. maybe I'll ghidra it next.
(DIR) Post #AsvtSGOkCxW3d5NTs0 by foone@digipres.club
2025-04-10T01:35:22Z
0 likes, 0 repeats
SYMBOLS AND SOURCE CODE CAN LIE: MACHINE CODE NEVER DOES
(DIR) Post #AsvtSLL1qCVyx0g5Gy by foone@digipres.club
2025-04-10T01:35:43Z
0 likes, 0 repeats
(this is incorrect, machine code lies all the time, especially when copy protection is a thing)
(DIR) Post #AsvuK0mMUmDwpE3OHQ by lunarood@mastodon.gamedev.place
2025-04-10T01:45:24Z
0 likes, 0 repeats
@foone Too real! I'm not even a reverse engineer, but I've frequently found it easier to just look at a binary than to find my way through some cursed codebase.
(DIR) Post #AsvxQfpZ4xIPkEQ79c by foone@digipres.club
2025-04-10T02:20:14Z
0 likes, 0 repeats
I gave up on figuring out the cause and manually bisected the builds. it was calling wglMakeCurrent at the wrong time, apparently.
(DIR) Post #Asw18sRzosD5UMAKVU by foone@digipres.club
2025-04-10T03:01:41Z
0 likes, 0 repeats
@pawv yeah I used to maintain a bunch of cygwin-based code to let us run some linux stuff on linux and it's just a continual nightmare.
(DIR) Post #Asw2wQQiNEYF18kxgu by wyatt@soc.megatokyo.moe
2025-04-10T03:19:43.232082Z
0 likes, 0 repeats
@foone cygpath (or whatever msys uses instead) to the rescue
(DIR) Post #Asw2wRARdD8BIy9TyC by foone@digipres.club
2025-04-10T03:20:49Z
0 likes, 0 repeats
@wyatt apparently it just uses cygpath
(DIR) Post #Asw3yDAUkcZKQ8aM08 by Suiseiseki@freesoftwareextremist.com
2025-04-10T03:33:57.312426Z
0 likes, 0 repeats
@foone Should have installed GNU/Linux.
(DIR) Post #Asw4JbluTGNooAHxPk by foone@digipres.club
2025-04-10T03:37:24Z
0 likes, 0 repeats
@Suiseiseki that isn't gonna help me debug a cross platform program that's only crashing on windows, sadly.
(DIR) Post #AswBtlWuMqnrAzSa48 by StompyRobot@mastodon.gamedev.place
2025-04-10T05:02:15Z
0 likes, 0 repeats
@foone Especially with a non-coherent instruction cache! (For those who might not have run into this: load code into I$, then overwrite in D$. It gets flushed when the debugger breaks, and your disassembly isn't what the CPU executed...)
(DIR) Post #AswtCX8AQIFs385DO4 by neilcar@infosec.exchange
2025-04-10T13:07:31Z
0 likes, 0 repeats
@foone I C:\ what you did there.
(DIR) Post #At2XfnAOqf1a8gQw3E by foone@digipres.club
2025-04-13T06:34:36Z
0 likes, 0 repeats
after three days of working on this, we're now to the point where we have a build X that crashes, but if we enable debugging to see where exactly it crashes, it stops crashing
(DIR) Post #At2YGZXyRucMc2zxL6 by BillySmith@social.coop
2025-04-13T06:41:11Z
0 likes, 0 repeats
@foone 🤣 You have my sympathies.I remember one of my engineering professors say, "There's no such thing as an intermittent problem. There are only intermittent symptoms.", but that didn't help much when debugging... :D
(DIR) Post #At2YtExiusTE42TrlI by hp@social.sdf.org
2025-04-13T06:48:11Z
0 likes, 0 repeats
@foone Heisenbug
(DIR) Post #At2xPLQ4qETUG2aHa4 by websterleone@meemu.org
2025-04-13T11:22:55Z
0 likes, 0 repeats
@foone love when the debug build initializes all memory to zero and fixes a bug
(DIR) Post #At3UFyLmXY3cagiKC8 by whophd@ioc.exchange
2025-04-13T17:30:56Z
0 likes, 0 repeats
@foone ah, the Heisenbug I get one every 5 years or so