Coder Social home page Coder Social logo

woboq codebrowser_generator segfaultsin llvm::sys::fs::detail::directory_iterator_construct(llvm::sys::fs::detail::DirIterState&, llvm::StringRef, bool) about codebrowser HOT 3 OPEN

kdab avatar kdab commented on July 22, 2024
woboq codebrowser_generator segfaultsin llvm::sys::fs::detail::directory_iterator_construct(llvm::sys::fs::detail::DirIterState&, llvm::StringRef, bool)

from codebrowser.

Comments (3)

ogoffart avatar ogoffart commented on July 22, 2024

I suspect the problem is that clang crashes while parsing the compilation database.
Can you try running valgrind, this will probably show some more details about what pointer was invalid.

Can you also run clang-tidy with this compilation database, if it crashes too that would confirm my assumption:

clang-tidy -p /home/tbr/src/icecast /home/tbr/src/icecast/conftest

Can you paste what is the compilation database for the file conftest ?
I have noticed that sometimes, empty file in the compilation database can cause problem.

You can use this line to remove the empty files and see if it fixes the problem

sed -i '/"file": ""/d' compile_commands.json

This might be caused by a bug in fake_compiler.sh that fails to parse the entry.

from codebrowser.

guruz avatar guruz commented on July 22, 2024

@dm8tbr Any news?

from codebrowser.

dm8tbr avatar dm8tbr commented on July 22, 2024

This had dropped off my radar, sorry.
I now updated both icecast and woboq sources to latest master, rebuilt both properly.

It still segfaults right after starting. After I ran @ogoffart's sed one-liner output changed mildly, but it still crashes.

tbr@puck:~/src/woboq_codebrowser$ build/generator/codebrowser_generator -b ~/compile_commands.json  -a -p icecast:/home/tbr/src/icecast -o testfoo
Skipping file not included by any project /dev/null
[2%] Processing /home/tbr/src/icecast/src/acl.c
Segmentation fault

from codebrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.