beckus / qemu_stm32

QEMU with an STM32 microcontroller implementation
http://beckus.github.io/qemu_stm32/
Other
527 stars 144 forks source link

trace: remove malloc tracing #29

Closed kousu closed 5 years ago

kousu commented 5 years ago

I get these errors when using qemu_stm32:

(process:58911): GLib-WARNING **: 00:10:36.293: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
(process:58912): GLib-WARNING **: 00:10:36.578: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
(process:58913): GLib-WARNING **: 00:10:37.258: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
(process:58914): GLib-WARNING **: 00:10:37.941: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
(process:58915): GLib-WARNING **: 00:10:38.627: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
(process:58916): GLib-WARNING **: 00:10:39.301: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
LED Off
(process:58918): GLib-WARNING **: 00:10:41.889: ../glib/gmem.c:490: custom memory allocation vtable not supported
LED Off
LED Off

it turns out they were already fixed upstream: https://github.com/qemu/qemu/commit/98cf48f60aa4999f5b2808569a193a401a390e6a

This backports the fix. I redid it manually instead of cherry-picking because cherry-picking pulled in a few other lines of change from the 35k commits qemu has had since the fork and I didn't want to mess around with figuring out what should be kept or not.

beckus commented 5 years ago

Thank you for addressing this (and making sure to only pull the applicable lines). At some point, those 35k commits need to be merged into the fork. This is on my todo list....