<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - systemd-udevd and udevadm segfault on MSB platforms"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58067">58067</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-udevd and udevadm segfault on MSB platforms
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eric@ecks.ca
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=71250" name="attach_71250" title="Patch to fix issue with hwdb on MSB platforms">attachment 71250</a> <a href="attachment.cgi?id=71250&action=edit" title="Patch to fix issue with hwdb on MSB platforms">[details]</a></span>
Patch to fix issue with hwdb on MSB platforms

I recently upgraded to udev-196-r1 (systemd-196) on Gentoo Linux on SPARC, and
observed (with USE=hwdb and the database created) systemd-udevd and udevadm to
be causing segfaults. Further investigation (tested on PowerPC) and some
debugging reveals this to be an endianness issue. The attached patch appears to
correct the issue, but may not be the most elegant fix.

Note that node->values_count is also referenced at libudev-hwdb.c:239, though
in my testing was not reached. It may be similarly affected.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>