Closed
Description
Commit 461c922 (#3769) introduces a call to assert()
which causes this error when OOM is enabled.
Calls to malloc
and assert
are done in the same cpp file libraries/ESP8266mDNS/ESP8266mDNS.cpp
(by calling seek() from inside UdpContext.h
)
cores/esp8266/umm_malloc/umm_malloc_cfg.h:188:40: error: mem_debug_file causes a section type conflict with __c
#define malloc(s) ({ static const char mem_debug_file[] PROGMEM = __FILE__; malloc_loc(s, mem_debug_file, __LINE__); })
^
libraries/ESP8266mDNS/ESP8266mDNS.cpp:754:36: note: in expansion of macro 'os_malloc'
answer->hostname = (char *)os_malloc(strlen(answerHostName) + 1);
cores/esp8266/pgmspace.h:16:51: note: '__c' was declared here
#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
^
tools/sdk/libc/xtensa-lx106-elf/include/assert.h:17:56: note: in expansion of macro 'PSTR'
# define assert(__e) ((__e) ? (void)0 : __assert_func (PSTR(__FILE__), __LINE__,
libraries/ESP8266WiFi/src/include/UdpContext.h:154:9: note: in expansion of macro 'assert'
assert(isValidOffset(pos));
^
I'm not sure how this can be handled yet.
Metadata
Metadata
Assignees
Labels
No labels