wasi-libc icon indicating copy to clipboard operation
wasi-libc copied to clipboard

Port the fix from #377 to emmmalloc.

Open sunfishcode opened this issue 2 years ago • 6 comments

Avoid using sbrk(0) in emmalloc too.

sunfishcode avatar Jan 09 '23 17:01 sunfishcode

Unfortunately this is causing applications to trap with an out of bounds access.

jedisct1 avatar Jan 09 '23 18:01 jedisct1

Ah, that's unfortunate. Any help anyone might be able to provide in debugging this would be appreciated!

sunfishcode avatar Jan 09 '23 18:01 sunfishcode

Unfortunately this is causing applications to trap with an out of bounds access.

Is that with or without the __heap_base symbol? i.e. which llvm version are you using?

sbc100 avatar Jan 09 '23 18:01 sbc100

This is with LLVM 15.0.6.

jedisct1 avatar Jan 09 '23 19:01 jedisct1

__heap_base is defined but not __heap_end.

jedisct1 avatar Jan 09 '23 19:01 jedisct1

(irrelevant nit: the commit message and title of this PR have too many 'm's)

cuviper avatar Jun 15 '23 22:06 cuviper