Community
Participate
Working Groups
Created attachment 278275 [details] The sample projects Scenario: ========= 1. There are three projects; say a, b and c. 2. a depends on b and c. 3. b depends on c. Correct build order: ==================== 1. c 2. b 3. a Current build order: ==================== 1. b 2. c 3. a Attachment: =========== 1. Attachment contains 3 project; hw-managed, lib, lib2. 2. hw-managed Debug config depends on Release configs on lib and lib2. 3. lib Release config depends on Release config of lib2. Steps: ====== 1. Start fresh workspace and import the project from attachment. 2. Right click hw-managed > Build Configurations > Build Selected... 3. Select Debug config and uncheck clean option. 4. Select OK. Note: ===== 1. Sometimes the issue is not reproduced; it depends in which order the referenced configs are found. 2. This issue is also observed in headless.
New Gerrit change created: https://git.eclipse.org/r/140558
Gerrit change https://git.eclipse.org/r/140558 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=15cf76040530e7bf60204bffefa202a99b495eac
Thank you Umair for this fix. It is going in early in the 9.9.0 release cycle to hopefully maximise opportunities to verify this in the community.
*** Bug 375882 has been marked as a duplicate of this bug. ***
Created attachment 282249 [details] Linked projects The patch associated with this ticket introduces a serious problem - a stack overflow. Problem can be reproduced with Eclipse IDE for C/C++ 2019-12/2020-03. Attached zip contains some 'hello world' projects that reference each other in a complex hierarchy. Once any project is attempted to be built, the IDE ends-up in a StackOverflowError. To reproduce the problem, import the attached projects inside IDE 2020-03 running on a Linux host and then build any of them.
Hi Adrian, I had a quick look on your attachment. I found a cycle in it; E depends on F and F depends on E. Can you please tell the behavior of CDT before the fix of this bug?
Hi Umair, Indeed, there might be cycles involved. But these did not stop IDE 2019-03 to build them. There's no stack overflow when using 2019-03. Thanks, Adrian
New Gerrit change created: https://git.eclipse.org/r/160115
Please open another bug report as major problem, we'll link this one as it has been marked as resolved fixed and the new one is a side-effect of this one.
Thank you for the quick follow-up. I logged ticket #561568