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

Infinite Loops as Error-Handling in CMM sync.c

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0u14
    • client-libs
    • 2d
    • other
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: