Comments (3)
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.
@dm8tbr Any news?
from codebrowser.
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)
- Failed to build codebrowser in MAC HOT 2
- Not able to compile Woboq Code Browser. HOT 14
- meet a llvm3.8 error when i cmake the project HOT 1
- Not able to compile Woboq Code Browser HOT 12
- CMake Error: Could not find any clang builtins headers HOT 4
- static link llvm as a standalone command line tool HOT 1
- Which version of linux kernel/gcc etc codebase in codebrowser.dev? HOT 1
- ccache/sccache usage together with codebrowser HOT 5
- Fails to build with LLVM/Clang 16.0.2 HOT 1
- Dark theme for site
- Replace Google with a privacy-respecting search engine
- --threads flag doesn't seem to be used. HOT 11
- Failed to run after building the code browser with llvm/clang-16 HOT 4
- Issues about defining in private and calling in destructor (in llvm/clang-16 and later) HOT 4
- Use .clangd configuration HOT 2
- Error with /usr/include/llvm-7/llvm/ADT/DenseMap.h while compiling HOT 3
- Order buttons don't work HOT 2
- Could not load compilationdatabase - Unknown key: ""output"" HOT 5
- Can not build codebrowser with the latest version of LLVM (LLVM-13) HOT 1
- Declarations HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codebrowser.