Inferno on Ubuntu Noble Numbat

25 views
Skip to first unread message

Caerwyn Jones

unread,
Aug 4, 2024, 5:44:10 PMAug 4
to inferno-os
Hi,

Running into an issue with compiling and running inferno on ubuntu noble.  Has anyone else ran into this and know of a workaround?

emu/port/alloc.c defines its own malloc and free.

LibX11 in this ubuntu version now  calls  XInitThreads() in  the startup constructor for the dynamic library.  So it gets called before main() during the C runtime setup. XInitThreads() calls malloc() which uses the emu/port/alloc.c version, which I'm guessing is not ready to be called yet.

If I use the GNU linker's wrap feature for malloc and free, I'l later get X11 errors when calling free() that it's been passed an invalid pointer.

Any ideas?

Thanks
Caerwyn


Valery Ushakov

unread,
Aug 4, 2024, 7:13:22 PMAug 4
to inferno-os
Reply all
Reply to author
Forward
0 new messages