Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1230

ARG_MAX causing build errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.4
    • Build, Packaging
    • None
    • Ubuntu 11.4 with 3.0.0 kernel, make 3.81-8ubuntu1, libc-bin 2.13-0ubuntu13.1

    Description

      getconf ARG_MAX is used to size static arrays inside Main.cc and LocalManager.cc by way of the configure script. However, getconf ARG_MAX is returning inconsistent results based on how it is run. Below is an example from the environment above:

      $ cat Makefile 
      all:
      	getconf ARG_MAX
      
      
      $ make
      getconf ARG_MAX
      4611686018427387903
      $ getconf ARG_MAX
      2097152
      
      

      The results is that static arrays based on ARG_MAX in Main.cc and LocalManager.cc can vary based on whether the build is done manually or via make based packaging scripts. In the case of an outlandish return value, this can cause failure at link time.

      Attachments

        Activity

          People

            wanderingbort Bart
            wanderingbort Bart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: