Code Monkey home page Code Monkey logo

Comments (8)

eddyxu avatar eddyxu commented on July 17, 2024

From your output, it seems just a segment fault in your test code? It seems no related to cpp-coveralls.

from cpp-coveralls.

crondaemon avatar crondaemon commented on July 17, 2024

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.

eddyxu avatar eddyxu commented on July 17, 2024

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.

crondaemon avatar crondaemon commented on July 17, 2024

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.

crondaemon avatar crondaemon commented on July 17, 2024

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.

eddyxu avatar eddyxu commented on July 17, 2024

@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.

crondaemon avatar crondaemon commented on July 17, 2024

It worked! Thanks a lot for your help!

from cpp-coveralls.

kevingranade avatar kevingranade commented on July 17, 2024

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)

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.