Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2014 15:17:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 192115] New: Demangling issues with libcxxrt.so.1
Message-ID:  <bug-192115-15@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: ikosarev@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192115-15>