Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6481

Failure to retrieve the command line parameters via procfs causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • operating system : FreeBSD [8.0p2]
      CPU architecture : x86
      ant os name/arch : FreeBSD/i386
      hosting Java : 1.6.0_07 (The FreeBSD Foundation)
    • Patch Available
    • Novice

    Description

      If the crash handler fails to open the procfs file relating to the command line then this will leave a variable (g_cmdline) in the default state of NULL. Upon rendering a crash report, the variable is not checked for being NULL and will cause the crash report deference a NULL pointer.

      I'm not sure if you may unmount procfs on Linux, if you may move the procfs mount point from /proc, nor under which conditions opening the current process's command line would fail. Under FreeBSD (by default) doesn't have procfs mounted, and to mount procfs is generally considered an excessive security risk.

      Attachments

        1. harmony-drlvm-ch-cmdln.diff
          1.0 kB
          Mark Eschbach

        Activity

          People

            Unassigned Unassigned
            meschbach Mark Eschbach
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: