Timur Iskhodzhanov
2011-08-17 13:19:54 UTC
https://bugs.kde.org/show_bug.cgi?id=280271
--- Comment #1 from Timur Iskhodzhanov <timurrrr google com> 2011-08-17 13:19:53 ---
The report may change slightly:
--------------------
void* thread_func(void *) {
std::string str = "Valgrind";
str += " rocks\n";
printf("Entering!\n");
usleep(100000); // Make sure the thread is killed
printf("Finished!\n");
return 0;
}
--------------------
results in:
==20839== 153 bytes in 1 blocks are possibly lost in loss record 1 of 2
==20839== at 0x4C2B2A6: operator new(unsigned long)
(vg_replace_malloc.c:261)
==20839== by 0x50F6D98: std::string::_Rep::_S_create(...)
(new_allocator.h:89)
==20839== by 0x50F776A: std::string::_Rep::_M_clone(...)
(basic_string.tcc:607)
==20839== by 0x50F829B: std::string::reserve(unsigned long)
(basic_string.tcc:488)
==20839== by 0x50F84E7: std::string::append(...) (basic_string.tcc:309)
==20839== by 0x400BE8: thread_func(void*) (repstr.cpp:11)
==20839== by 0x4E389C9: start_thread (pthread_create.c:300)
==20839== by 0x58E370C: clone (clone.S:112)
--- Comment #1 from Timur Iskhodzhanov <timurrrr google com> 2011-08-17 13:19:53 ---
The report may change slightly:
--------------------
void* thread_func(void *) {
std::string str = "Valgrind";
str += " rocks\n";
printf("Entering!\n");
usleep(100000); // Make sure the thread is killed
printf("Finished!\n");
return 0;
}
--------------------
results in:
==20839== 153 bytes in 1 blocks are possibly lost in loss record 1 of 2
==20839== at 0x4C2B2A6: operator new(unsigned long)
(vg_replace_malloc.c:261)
==20839== by 0x50F6D98: std::string::_Rep::_S_create(...)
(new_allocator.h:89)
==20839== by 0x50F776A: std::string::_Rep::_M_clone(...)
(basic_string.tcc:607)
==20839== by 0x50F829B: std::string::reserve(unsigned long)
(basic_string.tcc:488)
==20839== by 0x50F84E7: std::string::append(...) (basic_string.tcc:309)
==20839== by 0x400BE8: thread_func(void*) (repstr.cpp:11)
==20839== by 0x4E389C9: start_thread (pthread_create.c:300)
==20839== by 0x58E370C: clone (clone.S:112)
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.