Travis CI build fails, but local tests succeed

105 views
Skip to first unread message

karsonn

unread,
Sep 14, 2020, 2:56:29 AM9/14/20
to cmpt-295-sfu
SFU ID: 301362267
Github username: kqrse
Line and file: arraylist.c, LINE: n/a
Expected behavior: n/a
Observed behavior: n/a
Question: Build fails on Travis CI, but is completely fine on local tests using run.sh

The error that Travis CI runs across is:
*** Error in `./Arraylist/arraylist.bin': free(): invalid next size (fast): 0x0000000000d23080 ***


Arrvindh Shriraman

unread,
Sep 14, 2020, 3:05:06 AM9/14/20
to cmpt-295-sfu
You have a memory error. You may be trying to free a pointer that wasn't allocate by malloc etc.
Seek week 2 videos for potential ideas.

Better yet; now might be the time to learn how to use valgrind (should be useful for the future...)

karsonn

unread,
Sep 14, 2020, 3:25:03 AM9/14/20
to cmpt-295-sfu
Thank you.
I checked valgrind and saw that I had no memory leaks, but it turns out I should've paid a little bit more attention to the "78 errors from 15 contexts" part of it.

Reply all
Reply to author
Forward
0 new messages