Page 1 of 1

Program in user mode freezing

Posted: Thu Apr 02, 2026 2:44 am
by lordravenlee
I was wondering what are possible reasons or causes to make a program freeze after executing or running the program? The mouse in my os worked beforehand. I can use the terminal, which is how I run the program, in the first place. Then after I execute the program, the terminal is forced closed and the program window shows up, but the os and mouse freezes. I have been beating my brain over this for days.

Re: Program in user mode freezing

Posted: Thu Apr 02, 2026 4:56 am
by sebihepp
That could be anything. Let me guess quickly: Did you enable interrupts after returning from kernelspace to your user program?

Re: Program in user mode freezing

Posted: Thu Apr 02, 2026 11:05 am
by lordravenlee
Thank you for your reply. I am pretty sure I did. I provided related files. programs are task/process, event here is thread, action are old events. Its baffling me.

Re: Program in user mode freezing

Posted: Fri Apr 03, 2026 1:51 pm
by Octocontrabass
What does your debugger say the CPU is doing when your OS freezes?