Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » libclang/asist++ crashes theide when source contains language feature... (..that's more recent than set in "Assist C++ standard")
libclang/asist++ crashes theide when source contains language feature... [message #61341] |
Sat, 28 December 2024 03:18  |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
I recently upgraded to u++ version 17517 and had a crash with theide which I believe is because source files contains language features more recent than as set in
"Setup/Settings/Assist[tab]/Assist C++ standard". Somehow mine is reset to c++17 because of the upgrade or whatnot.
Setting the 'Assist C++ standard' to C++23 fixed the problem.
|
|
|
|
Re: libclang/asist++ crashes theide when source contains language feature... [message #61347 is a reply to message #61345] |
Sat, 28 December 2024 23:01   |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
Hello Klugier,
Thank you for your attention to this matter.
I managed to get the call stack in gdb.
...
#37 0x0000555555bd96ef in clang_parseTranslationUnit
(CIdx=0x7fffd15f6f60, source_filename=0x0, command_line_args=0x7fffd15eb060, num_command_line_args=60, unsaved_files=0x7fffba9f2a30, num_unsaved_files=1, options=2885)
at /home/lance/upp.src/uppsrc/ide/clang/libclang.cpp:184
#38 0x0000555555be083e in Clang::Parse (this=0x7fffd157b110, filename_=..., content=..., includes_=..., defines=..., options=2885, filename2=..., content2=...)
at /home/lance/upp.src/uppsrc/ide/clang/clang.cpp:155
i_ss_ = {<Upp::NoCopy> = {<No data fields>}, mutex = {{__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 16 times>, "\001", '\000' <repeats 22 times>, __align = 0}}}
...
|
|
|
|
Re: libclang/asist++ crashes theide when source contains language feature... [message #61349 is a reply to message #61348] |
Sun, 29 December 2024 00:38  |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
Hello Klugier,
I managed to create a minimal package to reprodue the crash. Unpack, eg to MyApps folder, open the package, and go to main.cpp, with
[V] Assit libclang parser is enabled (needs restart)
(BTW, does 'Enable Assist libclang parser' sound more natural?)
enabled, and Assist C++ standard set to 'C++17'
if not yet.
On my machine, it crashed within a few seconds. Please let me know if it behaves differently.
BTW, my upp version is 17517.
Thanks for your effort!
Lance
[Updated on: Sun, 29 December 2024 00:39] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 07:59:20 CEST 2025
Total time taken to generate the page: 0.00661 seconds
|