Content-Length: 228974 | pFad | https://github.com/adafruit/circuitpython/issues/9381

71 [panic report] sys_timeout: timeout != NULL, pool MEMP_SYS_T · Issue #9381 · adafruit/circuitpython · GitHub
Skip to content

[panic report] sys_timeout: timeout != NULL, pool MEMP_SYS_T #9381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tommycusick opened this issue Jun 28, 2024 · 1 comment
Open

[panic report] sys_timeout: timeout != NULL, pool MEMP_SYS_T #9381

tommycusick opened this issue Jun 28, 2024 · 1 comment
Labels
Milestone

Comments

@tommycusick
Copy link

CircuitPython version

Adafruit CircuitPython 9.0.5 on 2024-05-22; Raspberry Pi Pico W with rp2040

Code/REPL

import os

import asyncio
import board
import digitalio

import biplane


server = biplane.Server()


@server.route("/", "GET")
def root(query_parameters, headers, body):
  return biplane.Response("<b>Hello, world!</b>", content_type="text/html")


async def run_server():
  for _ in server.circuitpython_start_wifi_station(
     os.getenv('CIRCUITPY_WIFI_SSID'),
     os.getenv('CIRCUITPY_WIFI_PASSWORD'),
     os.getenv('BIPLANE_MDNS_HOSTNAME')):
    await asyncio.sleep(0)  # let other tasks run


async def blink_builtin_led(pin, blink_hz=10):
  with digitalio.DigitalInOut(pin) as led:
    led.switch_to_output(value=False)
    while True:
      led.value = not led.value
      await asyncio.sleep(1. / blink_hz)


if __name__ == '__main__':
    asyncio.run(
       asyncio.gather(
          blink_builtin_led(board.LED),
          run_server(),
        )
    )

Behavior

Code stopped by auto-reload. Reloading soon.
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
starting mDNS at kittyfood.local (IP address 10.0.1.200)

*** PANIC ***

sys_timeout: timeout != NULL, pool MEMP_SYS_T

Description

No response

Additional information

No response

@jepler
Copy link

jepler commented Jul 1, 2024

static void
#if LWIP_DEBUG_TIMERNAMES
sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name)
#else /* LWIP_DEBUG_TIMERNAMES */
sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg)
#endif
{
  struct sys_timeo *timeout, *t;

  timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
  if (timeout == NULL) {
    LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
    return;
  }

An allocation inside of lwip is failing, and this leads to an assertion failure.

You could pursue this by trying to determine whether this define (in ports/raspberrypi/lwip_inc/lwipopts.h) is wrong or inadequate (I probably committed this but don't remember how I determined the value)

#define MEMP_NUM_SYS_TIMEOUT        (8 + 3 * (LWIP_IPV4 + LWIP_IPV6))

@dhalbert dhalbert added this to the 9.x.x milestone Jul 3, 2024
@dhalbert dhalbert added network rp2040 Raspberry Pi RP2040 labels Jul 3, 2024
@dhalbert dhalbert modified the milestones: 9.x.x, 10.0.0 Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/adafruit/circuitpython/issues/9381

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy