crash on project creation, probably LLVM 3.9 vs 4.0 related

Bug #1677140 reported by Rebecca Palmer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdevelop (Ubuntu)
Fix Released
Undecided
Unassigned
Zesty
Fix Released
Undecided
Unassigned

Bug Description

On creating a new project, kdevelop shows an "Unable to load the project file" error box, then crashes when this is OKd. The backtrace suggests this is https://bugs.debian.org/846410 , reappearing because Ubuntu mesa is now LLVM 4.0:

Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault.
0x00007fffc1a22a6f in llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::ScheduleDAGInstrs* (*)(llvm::MachineSchedContext*)>::OptionInfo, false>::grow(unsigned long) () from /usr/lib/x86_64-linux-gnu/libLLVM-4.0.so.1
(gdb) bt full
#0 0x00007fffc1a22a6f in llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::ScheduleDAGInstrs* (*)(llvm::MachineSchedContext*)>::OptionInfo, false>::grow(unsigned long) () from /usr/lib/x86_64-linux-gnu/libLLVM-4.0.so.1
No symbol table info available.
#1 0x00007fffc1a22b5e in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-4.0.so.1
No symbol table info available.
#2 0x00007fffa2cd42f2 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.9.so.1
No symbol table info available.
#3 0x00007ffff7de87ca in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
[...]

(This was tested in a zesty chroot, as part of https://bugs.debian.org/848368 testing; as kdevelop is not my usual IDE, I don't have any existing projects to try opening.)

Revision history for this message
Rebecca Palmer (rebecca-palmer) wrote :

Rebuilding kdevelop against LLVM 4.0 (via the obvious change to debian/control) avoids this crash; it still fails to create the project (with "please see the Version Control toolview" even though I left Version Control at the default None), but I suspect that's an unrelated "doesn't really work in a minimal chroot" issue.

Revision history for this message
Rik Mills (rikmills) wrote : Re: [Bug 1677140] Re: crash on project creation, probably LLVM 3.9 vs 4.0 related

On 29/03/17 19:04, Rebecca Palmer wrote:
> Rebuilding kdevelop against LLVM 4.0 (via the obvious change to
> debian/control) avoids this crash;

This was discussed yesterday, and corresponding changes submitted to our
CI to initially test build on the stable branch (5.1.0).

https://git.launchpad.net/~kubuntu-packagers/kubuntu-packaging/+git/kdevelop/commit/?h=kubuntu_stable&id=5f25974df24e1c567c98a6509945dcb98b18a801

Have just staged those changes for 5.0.4 in the ppa

http://pad.lv/ppa/rikmills/staging4

if that could be tested that would be useful, as I don't have a box
running what seems to be the affected mesa drivers.

Revision history for this message
Rebecca Palmer (rebecca-palmer) wrote :

Switching to llvm-dev/libclang-dev (which are 4.0) does fix this crash bug, and the other error message went away after installing dbus-x11 in the chroot, but I don't know this application well enough to do more general testing.

(You have the wrong bug number in the changelog.)

Revision history for this message
Rik Mills (rikmills) wrote :

On 29/03/17 21:50, Rebecca Palmer wrote:
> Switching to llvm-dev/libclang-dev (which are 4.0) does fix this crash
> bug, and the other error message went away after installing dbus-x11 in
> the chroot, but I don't know this application well enough to do more
> general testing.

Thank you

> (You have the wrong bug number in the changelog.)

Seems so. Good spot.

Rik Mills (rikmills)
Changed in kdevelop (Ubuntu Zesty):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdevelop - 4:5.0.4-0ubuntu2

---------------
kdevelop (4:5.0.4-0ubuntu2) zesty; urgency=medium

  [ Philip Muškovac ]
  * Revert the versioned clang dep - We don't have the mesa/llvm-default
    mismatch in ubuntu that caused debian bug #846410, so this only
    causes potential problems for us (LP: #1677140)

 -- Rik Mills <email address hidden> Thu, 30 Mar 2017 08:55:28 +0100

Changed in kdevelop (Ubuntu Zesty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.