lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #51990] Calling select() from different threads with M


From: David Lockyer
Subject: [lwip-devel] [bug #51990] Calling select() from different threads with MPU enabled triggers memory protection fault
Date: Mon, 11 Sep 2017 05:58:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?51990>

                 Summary: Calling select() from different threads with MPU
enabled triggers memory protection fault
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: david_lockyer
            Submitted on: Mon 11 Sep 2017 09:58:09 AM UTC
                Category: sockets/netconn
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.0.2

    _______________________________________________________

Details:

Calling select from different threads with MPU enabled triggers an memory
access violation exception in lwip_select(), despite LWIP_MPU_COMPATIBLE being
set to 1. This is due to structure select_cb being on the stack, as opposed to
in a memory pool.

Attached git patch set against the STABLE-2_0_0 branch for potential fix.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 11 Sep 2017 09:58:09 AM UTC  Name: mpu_lwip_select.patch  Size:
10KiB   By: david_lockyer

<http://savannah.nongnu.org/bugs/download.php?file_id=41779>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?51990>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]