<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Segfault after munmap(kms_sw_dt->ro_mapped)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107098#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Segfault after munmap(kms_sw_dt->ro_mapped)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107098">bug 107098</a>
              from <span class="vcard"><a class="email" href="mailto:andreas.kling@gmail.com" title="Nubosch <andreas.kling@gmail.com>"> <span class="fn">Nubosch</span></a>
</span></b>
        <pre>I can confirm this issue. Using tinydrm display with
weston 4.0.90
linux 4.17.2

KMS-DEBUG: unmapped buffer 2 (was 0x69eaa000)
KMS-DEBUG: unmapped buffer 2 (was (nil))
KMS-DEBUG: destroyed buffer 2

The process shows really weird behavior after this, like missing memory
regions.

<span class="quote">>* adding condition on above munmap() to call it only if ro_mapped is not NULL</span >
This was the solution I went with too, but added it for both pointers ;)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>