We're updating the issue view to help you get more done. 

memcheck valgrind failure (inappropriate it appears or compiler bug)

Description

on ununtu 1904 and 1810

 

==12320== Conditional jump or move depends on uninitialised value(s)

==12320== at 0x1407E3: Stroika::Foundation::IO::Network::UniformResourceIdentification::Authority::ThreeWayComparer::operator()(Stroika::Foundation::IO::Network::UniformResourceIdentification::Authority const&, Stroika::Foundation::IO::Network::UniformResourceIdentification::Authority const&) const [clone .constprop.205] (in /home/lewis/Sandbox/Stroika-Build-Dir-Ubuntu1904_x86_64/Builds/g++-valgrind-release-SSLPurify-NoBlockAlloc/Tests/Test41)

==12320== by 0x18D9E4: (anonymous namespace)::Test1_DEPRECATED_URL_Parsing_::Private_::BasicTests_AsOf21d22_() [clone .lto_priv.805] (in /home/lewis/Sandbox/Stroika-Build-Dir-Ubuntu1904_x86_64/Builds/g++-valgrind-release-SSLPurify-NoBlockAlloc/Tests/Test41)

==12320== by 0x136519: main (in /home/lewis/Sandbox/Stroika-Build-Dir-Ubuntu1904_x86_64/Builds/g++-valgrind-release-SSLPurify-NoBlockAlloc/Tests/Test41)

==12320== Uninitialised value was created by a stack allocation

==12320== at 0x154850: Stroika::Foundation::IO::Network::URL::Parse(Stroika::Foundation::Characters::String const&, Stroika::Foundation::IO::Network::URL::ParseOptions) (in /home/lewis/Sandbox/Stroika-Build-Dir-Ubuntu1904_x86_64/Builds/g++-valgrind-release-SSLPurify-NoBlockAlloc/Tests/Test41)

==12320==

[Succeeded] (1 seconds) [41] Foundation::IO::Network (valgrind -q --track-origins=yes --tool=memcheck --leak-check=full --suppressions=Valgrind-MemCheck-Common.supp ../Builds/g++-valgrind-release-SSLPurify-NoBlockAlloc/Tests/Test41)

 

 

{

<insert_a_suppression_name_here>

Memcheck:Cond

fun:_ZNK7Stroika10Foundation2IO7Network29UniformResourceIdentification9Authority16ThreeWayComparerclERKS4_S7_.constprop.205

fun:_ZN12_GLOBAL__N_129Test1_DEPRECATED_URL_Parsing_8Private_21BasicTests_AsOf21d22_Ev.lto_priv.805

fun:main

}

 

Code there looks very safe, and what it calls immediately also appears to be safe.

Status

Assignee

Lewis Pringle

Reporter

Lewis Pringle

Labels

None

Priority

Medium