xadisk
  1. xadisk
  2. XADISK-149

JVM (stack guard) warning while loading xadisk native library.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: filesystem
    • Labels:
      None

      Description

      Thanks to George for identifying this through this thread: https://groups.google.com/forum/#!topic/xadisk/Hc4iZv8_6mk

      The JVM reports the following warning while starting xadisk:

      "Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/xadisk/native/unix_32_xadisk.native which might have disabled stack guard. The VM will try to fix the stack guard now.
      It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'."

        Activity

        Hide
        gastaldi added a comment -

        As stated in the Forum thread, the solution is to change the enum to this:

        private enum NATIVE_LIB_NAMES {
                unix_64_xadisk, unix_32_xadisk,
                windows_64_xadisk,windows_32_xadisk,
                mac_64_xadisk, mac_32_xadisk,
                placeholder_xadisk
        };
        
        Show
        gastaldi added a comment - As stated in the Forum thread, the solution is to change the enum to this: private enum NATIVE_LIB_NAMES { unix_64_xadisk, unix_32_xadisk, windows_64_xadisk,windows_32_xadisk, mac_64_xadisk, mac_32_xadisk, placeholder_xadisk };

          People

          • Assignee:
            Nitin Verma
            Reporter:
            Nitin Verma
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: