On Wed, Aug 21, 2019 at 9:30 PM Christian Beier <dontm...@sdf.org> wrote:
>
> >
> > BTW, is your project public or not? If so, I can debug myself.
> >
>
> Yes! Here https://github.com/bk138/dotfiles/blob/master/.emacs is my Emacs
> config, here https://github.com/LibVNC/libvncserver a project of mine where 
> the
> error shows up.


I have found the reason. If you compile ccls without `-DNDEBUG`, it
will crash when using emacs. As the backtrace shows, it crashes with
assert error.
In the Debian package, we always build cmake project with
`-DCMAKE_BUILD_TYPE=None`, which doesn't set `-DNDEBUG`.

This should be an issue for upstream. However I find upstream just
releases a new version 2 days ago, and the new version works (without
-DDNDEBUG).

So I run git bisect to find which commit fixes this issue. And the
result is 
https://github.com/MaskRay/ccls/commit/aded3faf970bf6cc83454d8aa78aad4b2a397b32

-- 
Shengjing Zhu

Reply via email to