https://bugs.kde.org/show_bug.cgi?id=403416

            Bug ID: 403416
           Summary: C++ parser causes a segfault
           Product: kdevelop
           Version: 5.3.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: viss...@gmail.com
  Target Milestone: ---

SUMMARY
C++ parser causes a segfault

STEPS TO REPRODUCE
1. Create a file bar.h with the content

// Bar.h
class IBar;

class Bar {
public:
    virtual ~IBar();
    virtual void test();
};

2. Create a file foo.h:
// Foo.h
#include "bar.h"

class Foo :
    public Bar
{
};

3. Wait a moment for the parser to do its thing

OBSERVED RESULT
Kdevelop crashes with a segfault with the last message being:

libclang: crash detected during parsing: {
  'source_filename' : '/home/visse/projects/debug/foo.h'
  'command_line_args' : ['clang', '-ferror-limit=100', '-fspell-checking', '',
'-Wunused-parameter', '-Wunreachable-code', '-Wall', '-std=c++11', '-nostdinc',
'-nostdinc++', '-xc++', '-isystem/usr/include/c++/8',
'-isystem/usr/include/x86_64-linux-gnu/c++/8',
'-isystem/usr/include/c++/8/backward', '-isystem/usr/local/include',
'-isystem/usr/include/x86_64-linux-gnu', '-isystem/usr/include', '-isystem',
'/tmp/.mount_KDevelKZJNDV/opt/llvm/lib/clang/6.0.1/include', '-imacros',
'/tmp/kdevelop.TJ9222'],
  'unsaved_files' : [],
  'options' : 783,
}


EXPECTED RESULT
-

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I'm using the AppImage version of KDevelop running in a xubuntu VM. This also
effected the 5.3.0 AppImage version.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to