Skip to content

valgrind warnings when compiled with gprof #593

@ennorehling

Description

@ennorehling

I have -pg enabled in my gcc options, and get warnings like these. I suspect gprof instrumentation is to be blamed, not our code.

When running s/travis-build locally:

==19259== Use of uninitialised value of size 8
==19259== at 0x5723570: profil_counter (profil.c:42)
==19259== by 0x567519F: ??? (in /lib/x86_64-linux-gnu/libc-2.13.so)
==19259== by 0x572341F: ??? (in /lib/x86_64-linux-gnu/libc-2.13.so)
==19259== by 0x51B755: addtoken (umlaut.c:171)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x48A3C1: init_direction (direction.c:15)
==19259== Uninitialised value was created by a stack allocation
==19259== at 0x48A378: init_direction (direction.c:11)
==19259==
{
<insert_a_suppression_name_here>
Memcheck:Value8
fun:profil_counter
obj:/lib/x86_64-linux-gnu/libc-2.13.so
obj:/lib/x86_64-linux-gnu/libc-2.13.so
fun:addtoken
fun:addtoken
fun:addtoken
fun:addtoken
fun:addtoken
fun:addtoken
fun:addtoken
fun:addtoken
fun:init_direction
}

==19259== Use of uninitialised value of size 8
==19259== at 0x5723570: profil_counter (profil.c:42)
==19259== by 0x567519F: ??? (in /lib/x86_64-linux-gnu/libc-2.13.so)
==19259== by 0x51B595: addtoken (umlaut.c:125)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x51B8ED: addtoken (umlaut.c:209)
==19259== by 0x4E623D: init_locale (config.c:519)
==19259== by 0x41D3EF: test_create_locale (tests.c:103)
==19259== by 0x41D410: test_create_faction (tests.c:110)
==19259== by 0x44E9E6: test_shipowner_goes_to_other_when_empty (ship.test.c:113)
==19259== by 0x51E28A: CuTestRun (CuTest.c:143)
==19259== by 0x51E8C3: CuSuiteRun (CuTest.c:289)
==19259== by 0x41BA22: RunTests (test_eressea.c:45)
==19259== Uninitialised value was created by a stack allocation
==19259== at 0x4E6107: init_locale (config.c:494)
==19259==
{
<insert_a_suppression_name_here>
Memcheck:Value8
fun:profil_counter
obj:/lib/x86_64-linux-gnu/libc-2.13.so
fun:addtoken
fun:addtoken
fun:addtoken
fun:init_locale
fun:test_create_locale
fun:test_create_faction
fun:test_shipowner_goes_to_other_when_empty
fun:CuTestRun
fun:CuSuiteRun
fun:RunTests
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions