Skip to content

intel11 has a memory error when using a stringstream? #15

@cwsmith

Description

@cwsmith
==32149== Invalid read of size 8
==32149==    at 0x488258: __intel_sse2_strlen (in /lore/cwsmith/develop/streamInMem/phastaChef/buildIntelMpich312/phasta/bin/phIOreadheaderFtn)
==32149==    by 0x40A147: readheader_ (phastaIO.cc:1429)
==32149==    by 0x4063A4: sync_readheader(int*, char const*, void*, int*, char const*, char const*) (phio_sync.cc:60)
==32149==    by 0x4053CC: phio_readheader (phIO.cc:17)
==32149==    by 0x405243: MAIN__ (phIOreadheader.f:35)
==32149==    by 0x404D6B: main (in /lore/cwsmith/develop/streamInMem/phastaChef/buildIntelMpich312/phasta/bin/phIOreadheaderFtn)
==32149==  Address 0x6b4c098 is 40 bytes inside a block of size 43 alloc'd
==32149==    at 0x4C24DFA: operator new(unsigned long) (vg_replace_malloc.c:261)
==32149==    by 0x5DBDB28: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.13)
==32149==    by 0x5DBE824: ??? (in /usr/lib/libstdc++.so.6.0.13)
==32149==    by 0x5DBE8E9: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*>(char*, char*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.13)
==32149==    by 0x5DBC47D: std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::str() const (in /usr/lib/libstdc++.so.6.0.13)
==32149==    by 0x406376: sync_readheader(int*, char const*, void*, int*, char const*, char const*) (phio_sync.cc:59)
==32149==    by 0x4053CC: phio_readheader (phIO.cc:17)
==32149==    by 0x405243: MAIN__ (phIOreadheader.f:35)
==32149==    by 0x404D6B: main (in /lore/cwsmith/develop/streamInMem/phastaChef/buildIntelMpich312/phasta/bin/phIOreadheaderFtn)

Metadata

Metadata

Assignees

No one assigned

    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