Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-523

Memory corruption happens consistently during the access of any CFURL API's of CoreFoundation framework

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 3.5.0, 3.6.0, 3.7.0, 3.8.0
    • None
    • Build Support, CMS Impl, Decaf
    • None
    • Mac OS X - 10.8.5 (Mountain Lion)

      Application that uses CoreFoundation.framework (from Mac OS SDK 10.7) and activemq library together.

    Description

      Steps to recreate the issue.

      Step 1 :- Download the activemq-cpp-library-3.8.1-src.tar file from activemq website.

      Step 2 :- Build the library on Mac OS X 10.8.5 as per instructions given in ReadMe.txt file

      Step 3 :- Build will be successful and you could get static and dynamic binaries.

      Step 4:- Create a sample cmd-line application in XCode 4.4.1 and use the activemq static library along with the usage of CoreFoundation.framework from Mac OS 10.7 SDK.

      Step 5 :- Define the structure to createa linked list as follows

      typedef struct myList {
      char name[128];
      struct myList *next;
      } myListType;

      void functiontocrash() {
      myListType namelist[100] =

      {0}

      ;

      CFStringRef pathRef = CFSTR("MyLib:Apache:ActiveMQ:"); // it could be any folder path in HFS notion.
      CFURLRef urlRef = CFURLCreateWithFileSystemPath(NULL, pathRef, 2, TRUE);

      }

      Step 6: Build the application. It would be successful.

      Step 7: Run the application, then it crashes

      You could get the following crash consistently

      Thread 11 Crashed:
      0 com.apple.CoreFoundation 0x00007fff8ccd6f04 __CFStringCreateImmutableFunnel3 + 20
      1 com.apple.CoreFoundation 0x00007fff8ccebccb CFStringCreateWithBytes + 59
      2 com.apple.CoreFoundation 0x00007fff8ccf1a6c CFURLCreateFromFileSystemRepresentation + 428
      3 com.apple.CoreFoundation 0x00007fff8ccebdfb CFURLCreateWithFileSystemPath + 283

      Attachments

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              ssahayaraj Sahayaraj
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: