Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
Lance is currently offline  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 #61345 is a reply to message #61341] Sat, 28 December 2024 18:57 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1099
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Lance,

Thank you for your report! Can you provide call stack and exemplary code that cause issue? Crash is not acceptable even if there is an option to avoid it.

Klugier


U++ - one framework to rule them all.

[Updated on: Sat, 28 December 2024 18:58]

Report message to a moderator

Re: libclang/asist++ crashes theide when source contains language feature... [message #61347 is a reply to message #61345] Sat, 28 December 2024 23:01 Go to previous messageGo to next message
Lance is currently offline  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 #61348 is a reply to message #61347] Sat, 28 December 2024 23:12 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
It's weird.

With Assist C++ standard set to 'C++ 17',

So there is a line
#include "bits/vector.hpp"


If I comment the line, theide is fine. If I uncomment it, ide crashed almost right away. However, If I go to that bits/vector.hpp, theide is very happy with it. It's confirmed even with a big green check mark. More weired, if I recreate the file with the files it include in a seperate package, theide is also happy.

And If I set Assist C++ standard set to 'C++ 23', no problem at all.

Re: libclang/asist++ crashes theide when source contains language feature... [message #61349 is a reply to message #61348] Sun, 29 December 2024 00:38 Go to previous message
Lance is currently offline  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

Previous Topic: Schema utilities
Goto Forum:
  


Current Time: Fri Apr 25 07:59:20 CEST 2025

Total time taken to generate the page: 0.00661 seconds