Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6640608

Infinite Loops as Error-Handling in CMM sync.c

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0u14
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      other
    • OS:
      generic

      Description

      OPERATING SYSTEM(S):
      All - common code.

      FULL JDK VERSION(S):
      Present in sync.c versions up to and including 1.17 (Java 5)

      DESCRIPTION:

      In several places in the CMM sync.c code (from Kodak) unexpected errors are handled with "for(;;);" - which sends the system into a screaming loop.

      These constructs cause compiler warnings and are poor programming practise. If a system encounters one for any reason we get no documentation or error messages - just an unresponsive system consuming all system CPU.

      In sync.c version 1.17 the offending lines are:

      * 673
      * 688
      * 728
      * 845
      * 857

      An abort() would be a more useful way to cope with these conditions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              elarsen Erik Larsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: