Traffic Server
  1. Traffic Server
  2. TS-370

If you use --enable-debug, the regression tests crash.

    Details

      Description

      If you use the --enable-debug option on configure and then run the -R 1 regression tests, it will crash early in the testing with a seg fault.

        Activity

        Hide
        Alan M. Carroll added a comment -

        Fix for this crash and for the crash in Cache testing that happens without --enable-debug.

        Issues:

        • The int argument versions of r_sequential and r_parallel were not called, the pure variadic forms were always preferred.
        • NULL is a 32 bit value for varargs. If the number of variadic arguments passed was more than could fit in CPU registers, the wrong sized 0 would be stored in the overflow area, leading to bad pointers being stored. A new NULL_PTR define was added to avoid this problem.
        Show
        Alan M. Carroll added a comment - Fix for this crash and for the crash in Cache testing that happens without --enable-debug. Issues: The int argument versions of r_sequential and r_parallel were not called, the pure variadic forms were always preferred. NULL is a 32 bit value for varargs. If the number of variadic arguments passed was more than could fit in CPU registers, the wrong sized 0 would be stored in the overflow area, leading to bad pointers being stored. A new NULL_PTR define was added to avoid this problem.
        Hide
        Leif Hedstrom added a comment -

        I think this is fixed, at least I'm not able to reproduce this any more. Please reopen if this is still an issue.

        Show
        Leif Hedstrom added a comment - I think this is fixed, at least I'm not able to reproduce this any more. Please reopen if this is still an issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Alan M. Carroll
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development