Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63616

Fail early on OSX when > 512 dylibs

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Dev Platform 2022-05-30, Dev Platform 2022-06-13, Dev Platform 2022-06-27

      We keep getting issues related to SERVER-30955 popping up over and over again, and it's very confusing when it does because we get an unhelpful error message from the dynamic loader during startup:

      The problem is due to a hard-coded limit in the MacOS dynamic loader at src/ImageLoader.cpp@87:

      	if ( libCount > 512 )
      		dyld::throwf("too many dependent dylibs in %s", path);
      

      Since this is a hard-coded limit, we should be able to determine during build that we are about to breach it and fail with a more helpful message. After implementing, re-enable dynamic builds for OSX.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: