[Bug 192115] New: Demangling issues with libcxxrt.so.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jul 25 15:17:46 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192115
Bug ID: 192115
Summary: Demangling issues with libcxxrt.so.1
Product: Base System
Version: 9.2-RELEASE
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: standards
Assignee: freebsd-standards at FreeBSD.org
Reporter: ikosarev at accesssoftek.com
This test program:
---
#include <stdlib.h>
#include <stdio.h>
char* __cxa_demangle(const char* mangled_name,
char* buf,
size_t* n,
int* status);
void test(const char *mangled)
{
int status = 0;
char *DemangledName = __cxa_demangle(mangled, NULL, NULL, &status);
printf("%s: status %d", mangled, status);
if(status == 0) {
printf("; demangled: '%s'", DemangledName);
}
free(DemangledName);
printf("\n");
}
int main() {
test("_ZN8DeepFreeILi17EE4freeEPc");
return 0;
}
---
when linked against libcxxrt.so.1 on x86-64 FreeBSD 9.2 print:
---
_ZN8DeepFreeILi17EE4freeEPc: status 0; demangled: 'DeepFree<17E>::free(char*)'
---
Note the extra 'E' in 'DeepFree<17E>'.
'DeepFree<17>' is expected.
This bug affects passing LLVM's address sanitizers tests on FreeBSD.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list