Re: kubuntu 22.04 LTS Kdevelop crashes when parsing project

Erik Rull <erik.rull-djvaojlfwP/[email protected]> Wed, 15 Feb 2023 09:53:49 +0100 (CET)
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <[email protected]>
<!doctype html>
<html>
 <head>=20
  <meta charset=3D"UTF-8">=20
 </head>
 <body>
  <div>
   Hi Ren=C3=A9,
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <div class=3D"default-style">
   thanks for your feedback.
  </div>=20
  <div class=3D"default-style">
   The used version is the "stock" installation that you get from kubuntu 2=
2.04 when you do a
  </div>=20
  <div class=3D"default-style">
   sudo apt-get install kdevelop
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <div class=3D"default-style">
   Maybe there are options to configure to prevent the use of the clang lib=
raries? Do I need to compile both kdevelop and the clang libraries?
  </div>=20
  <div class=3D"default-style">
   Since my projects use GCC, I don't think that someone else is using the =
clang parts...
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <div class=3D"default-style">
   If you could give me a starting point how to set up things best, I'd be =
happy to try it out.
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <div class=3D"default-style">
   Best regards,
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <div class=3D"default-style">
   Erik
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <div class=3D"default-style">
   &nbsp;
  </div>=20
  <blockquote type=3D"cite">=20
   <div>
    On 02/14/2023 2:24 PM CET Ren=C3=A9 J.V. Bertin &lt;<a href=3D"mailto:r=
[email protected]">[email protected]</a>&gt; wrote:
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    On Tuesday February 14 2023 08:44:09 Erik Rull wrote:
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    &gt;[KCrash Handler]
   </div>=20
   <div>
    &gt;#4 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/m=
emmove-vec-unaligned-erms.S:317
   </div>=20
   <div>
    &gt;#5 0x00007fe72ad52622 in llvm::APInt::initSlowCase(llvm::APInt cons=
t&amp;) () at /lib/x86_64-linux-gnu/libLLVM-13.so.1
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    Looks like it crashes in libLLVM. Where do you get KDevelop from and do=
es that provider give you a choice what LLVM/Clang version to depend on?
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    If not, your best option would be to build your own copy of KDevelop, a=
gainst an older &amp; more stabled LLVM/Clang (which is *probably* going to=
 be faster too, BTW). If you use the Kubuntu package for KDevelop, you can =
just use apt-get to retrieve the source form of that package, tweak its deb=
ian/{control,rules} files to depend on an older LLVM version and use dpkg-b=
uildpackage to create local .deb files of which you'd have to install (with=
 dpkg) only the one that contains the *kdevclang* binaries.
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    FWIW, this is one of the reasons why years ago already I argued (in vai=
n) for a way to build just the LLVM-based parser plugin (and its dependenci=
es) rather than having to build all of KDevelop.
   </div>=20
   <div>
    &nbsp;
   </div>=20
   <div>
    R.
   </div>=20
  </blockquote>
 </body>
</html>