Pelles C forum

Pelles C => Bug reports => Topic started by: bitcoin on September 02, 2025, 10:50:15 PM

Title: Crash IDE with 'asm' keyword
Post by: bitcoin on September 02, 2025, 10:50:15 PM
Write any code with an asm block, for example __asm{ nop; nop; }. Put the cursor between the word asm and the opening brace { and press Enter. The program will freeze and crash
Title: Re: Crash IDE with 'asm' keyword
Post by: John Z on September 02, 2025, 11:59:27 PM
Hi bitcoin,

Confirming your finding.  On Win 11 23H2 it hangs the IDE.  System shows IDE CPU usage goes to 23% with some ups and downs from other things running.  IDE needed to be killed with TM.

John Z
Title: Re: Crash IDE with 'asm' keyword
Post by: Pelle on October 05, 2025, 06:23:39 PM
OK, I can reproduce this... (but the asm block needs to be inside a function to cause this problem).

EDIT: You also need source editor setting "Auto-indent: Smart (C only)". The infinite loop was actually in POFMT.DLL, used in a sneaky way by the IDE to figure out the indentation column -- AFAICT you hit the only loop in POFMT that didn't check for EOF...