Bug 374765 - microbe in some cases remains stuck in an infinite loop
Summary: microbe in some cases remains stuck in an infinite loop
Status: RESOLVED WORKSFORME
Alias: None
Product: KTechLab
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Zoltan Padrah
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-08 17:27 UTC by Zoltan Padrah
Modified: 2022-12-03 05:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Padrah 2017-01-08 17:27:52 UTC
microbe (the program that generates assembly code from flowcode) remains stuck in an infinite loop for
some flowcharts.
Because microbe is quite self-contained, fixing it should be a good
task for new contributors.

Based on my initial investigation, the optimizer inside microbe gets stuck: it has a loop, in which it tries to further optimized the code/program as long as it changes something. However, it never reaches a "final" state of the code/program, and it always finds something to change, thus remains stuck in an infinite loop. 
I have not investigated the issue further.

If anybody feels like looking into this, please write to the ktechlab-devel mailinglist.
Comment 1 Zoltan Padrah 2017-01-08 19:09:02 UTC
Added workaround for the issue. Now when this issue happens, microbe should print something like:

 Internal issue: Optimization has not finished in 10,000 iterations.
Comment 2 Justin Zobel 2022-10-30 00:37:37 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Zoltan Padrah 2022-11-03 21:07:50 UTC
Currently I do not have a test case to reproduce this issue, but I consider that this issue might happen to users, because as far as I know it has not been completely fixed.
The work-around mentioned from comment 1 should make microbe fail gracefully, so technically this specific issue doesn't manifest itself, but it is transformed into a failed microbe program execution.

I'm fine with closing this issue, and I'm also fine with keeping it open.
Comment 4 Bug Janitor Service 2022-11-18 05:15:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-03 05:19:01 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!