Skip to content

crash when assign to Aws::string #1446

Closed
@JalySN

Description

@JalySN

Confirm by changing [ ] to [x] below:

Platform/OS/Hardware/Device
What are you running the sdk on?

compile source code like this

cmake -DSTATIC_LINKING=1 -DCUSTOM_MEMORY_MANAGEMENT=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3" -DAUTORUN_UNIT_TESTS=OFF

Describe the question

    Aws::Client::ClientConfiguration cfg;
    cfg.endpointOverride = "fs-ceph-s.test.sg"; //coredump

Logs/output
0x00000000004823ef in std::basic_string<char, std::char_traits, Aws::Allocator >::_M_disjunct (__s=0xa97f5a "fs-ceph-s.test.sg", this=0x7fffffffd410) at /usr/include/c++/5/bits/basic_string.h:2747
2747 || less<const _CharT*>()(_M_data() + this->size(), __s));
(gdb) bt
#0 0x00000000004823ef in std::basic_string<char, std::char_traits, Aws::Allocator >::_M_disjunct (__s=0xa97f5a "fs-ceph-s.test.sg", this=0x7fffffffd410) at /usr/include/c++/5/bits/basic_string.h:2747
#1 std::basic_string<char, std::char_traits, Aws::Allocator >::assign (this=this@entry=0x7fffffffd410, __s=__s@entry=0xa97f5a "fs-ceph-s.test.sg", __n=__n@entry=18) at /usr/include/c++/5/bits/basic_string.tcc:707
#2 0x0000000000480e81 in std::basic_string<char, std::char_traits, Aws::Allocator >::assign (__s=0xa97f5a "fs-ceph-s.test.sg", this=0x7fffffffd410) at /usr/include/c++/5/bits/basic_string.h:3547
#3 std::basic_string<char, std::char_traits, Aws::Allocator >::operator= (__s=0xa97f5a "fs-ceph-s.test.sg", this=0x7fffffffd410) at /usr/include/c++/5/bits/basic_string.h:2959

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions