Comments (8)
From your output, it seems just a segment fault in your test code? It seems no related to cpp-coveralls.
from cpp-coveralls.
It happens the same on another project. Different code different Language (c and c++). Unrelated code. No crash on travis without coverage no crash on my machine (ubuntu 14.04) with or without coverage.
from cpp-coveralls.
cpp-coveralls
only collects the text outputs from gcov
. From you description, you crashes is from turning gcc flag --coverage
on. Have you tried to compile your code on a Ubuntu 12.04 machine, which is the version travis ci uses and it has different gcc version?
from cpp-coveralls.
It seems a bug in gcc/gcov. This is my session on an ubuntu 12.04, running the binary against gdb.
https://gist.github.com/crondaemon/58447c1c7ac1e49723f1
Do you agree? Any suggestion?
Thanks for your help!!
from cpp-coveralls.
I've upgraded gcc on travis. The code doesn't crash anymore, but now cpp-coveralls complains about the version... probably it doesn't like 4.8.
https://travis-ci.org/crondaemon/dines/builds/34701013
Any idea on how I can fix it?
from cpp-coveralls.
@crondaemon When you are using a non-default gcc (e.g., gcc-4.8), you need to use the corresponding gcov-4.8
as well. You can specify the gcov to use in cpp-coveralls
:
cpp-coveralls --gcov /usr/bin/gcov-4.8 ....
from cpp-coveralls.
It worked! Thanks a lot for your help!
from cpp-coveralls.
Just for searchability, another symptom of this mismatch is out of memory errors, see the end of the build here: https://travis-ci.org/CleverRaven/Cataclysm-DDA/jobs/240641468
from cpp-coveralls.
Related Issues (20)
- ValueError: invalid literal for int() with base 10: '917*' HOT 3
- Where is args.lcov_file being set?
- unable to generate report
- pip install failure on ubuntu/trusty64 HOT 5
- Best method for implementing with Boost Unit Test Cases
- Cannot find files due to odd path creation HOT 1
- 0 of 0 relevant lines covered: am I not using correct arguments? HOT 2
- Exclusion regexps do not appear to work HOT 2
- Variable interpolation into shell commands is unsafe HOT 1
- Is this project dead? HOT 1
- circleci not supported HOT 1
- --include or --exclude options doesn't seem to work at all HOT 3
- FIleNotFoundError with invalid path HOT 1
- YAMLLoadWarning HOT 1
- Cannot open source file
- Failed to see coverage results on Coveralls HOT 1
- Deprecation warning due to invalid escape sequences
- FileNotFoundError for not existing file
- github actions not showing the correct files on coveralls website
- feature request: carryforward flags
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 cpp-coveralls.