Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valgrind warnings when compiled with gprof #593

Open
ennorehling opened this issue Oct 16, 2016 · 0 comments
Open

valgrind warnings when compiled with gprof #593

ennorehling opened this issue Oct 16, 2016 · 0 comments
Assignees

Comments

@ennorehling
Copy link
Member

ennorehling commented Oct 16, 2016

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
}

@ennorehling ennorehling self-assigned this Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant