[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_3887.gif (80 KB, 640x640)
80 KB
80 KB GIF
segfault yet again
>>
>>107051440
compile with -g and run your program through valgrind
>>
File: 1747479979339531.jpg (47 KB, 445x488)
47 KB
47 KB JPG
void handler(int signum)
{
main();
;

int main()
{
signal(SIGSEGV, handler);
// ...
}
>>
>>107051487
This is a halting problem trap
>>
>>107051487
my sides
>>
>>107051440
Ask chatgpt to fix it.
>>
>>107051591
OP here, ChatGPT suggested the
-fsanitize=address,undefined -g
flags for clang

pardon my noobskillz, I'm learning programming for fun
>>
my kernel had a panic attack the other day. I must admit I'm not particularly fond of it. mostly because that's woman behavior, I expected a chad kernel to not have panic attacks
what can be done about this silly behavior?
>>
I would rather have a segfault than a slghtly incorrect result.
>>
>>107051662
Stop dereferencing to page zero; otherwise, you'll stay in lesbian relationship with your kernel forever.
>>
>>107051662
the kernel panics because it knows its death is imminent
not syncing - FATAL exception
RIP 0xffffff099



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.