make[3]: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build/dbus' Making all in examples make[3]: Entering directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build/dbus/examples' /bin/sh ../../libtool --mode=execute ../../dbus/dbus-binding-tool --prefix=some_object --mode=glib-server --output=example-service-glue.h /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/examples/example-service.xml /bin/sh ../../libtool --mode=execute ../../dbus/dbus-binding-tool --prefix=test_object --mode=glib-server --output=example-signal-emitter-glue.h /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/examples/example-signal-emitter.xml (process:2111): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed ================================================================= (process:2110): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed (process:2110): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed ==2111==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60c000000900 at pc 0x7efe5561c527 bp 0x7fff9fb8d510 sp 0x7fff9fb8ccb8 (process:2110): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed READ of size 2047 at 0x60c000000900 thread T0 (process:2110): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed (process:2110): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed (process:2110): GLib-CRITICAL **: 09:45:42.512: g_string_insert_c: assertion '(gsize) pos <= string->len' failed AddressSanitizer:DEADLYSIGNAL ================================================================= ==2110==ERROR: AddressSanitizer: SEGV on unknown address 0x000000001d50 (pc 0x7f2cbf6448f2 bp 0x603000000eb0 sp 0x7ffc082056f0 T0) ==2110==The signal is caused by a READ memory access. #0 0x7efe5561c526 in __interceptor_memcpy (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libasan.so.6+0x3a526) #1 0x7efe55234aad in memcpy /usr/include/bits/string_fortified.h:29 #2 0x7efe55234aad in g_string_insert_len ../glib-2.72.0/glib/gstring.c:486 #3 0x7efe55204464 in g_io_channel_write_chars ../glib-2.72.0/glib/giochannel.c:2314 #4 0x55d223821f86 in write_marshaller /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:828 #5 0x7efe551fdaff in g_hash_table_foreach ../glib-2.72.0/glib/ghash.c:2092 #6 0x55d223827d7f in dbus_binding_tool_output_glib_server /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:869 #7 0x55d223821584 in main /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-glib-tool.c:421 #8 0x7efe54fb934b in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #9 0x7efe54fb93fb in __libc_start_main_impl ../csu/libc-start.c:392 #10 0x55d223821d60 in _start (/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build/dbus/.libs/dbus-binding-tool+0xdd60) 0x60c000000900 is located 0 bytes to the right of 128-byte region [0x60c000000880,0x60c000000900) allocated by thread T0 here: #0 0x7efe55698128 in __interceptor_realloc (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libasan.so.6+0xb6128) #0 0x7f2cbf6448f2 in type_set_qdata_W ../glib-2.72.0/gobject/gtype.c:3786 #1 0x7f2cbf6448f2 in g_type_set_qdata ../glib-2.72.0/gobject/gtype.c:3832 #1 0x7efe55216a07 in g_realloc ../glib-2.72.0/glib/gmem.c:190 SUMMARY: AddressSanitizer: heap-buffer-overflow (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libasan.so.6+0x3a526) in __interceptor_memcpy Shadow bytes around the buggy address: 0x0c187fff80d0: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x0c187fff80e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa 0x0c187fff80f0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c187fff8100: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x0c187fff8110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c187fff8120:[fa]fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c187fff8130: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x0c187fff8140: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c187fff8150: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x0c187fff8160: 00 00 00 00 00 00 05 fa fa fa fa fa fa fa fa fa 0x0c187fff8170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==2111==ABORTING #2 0x557bd566f706 in register_specialized_instance /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-gtype-specialized.c:825 #3 0x557bd566f706 in lookup_or_register_specialized /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-gtype-specialized.c:850 #4 0x557bd56741ef in signature_iter_to_g_type_struct /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-gsignature.c:136 #5 0x557bd56741ef in _dbus_gtype_from_signature_iter /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-gsignature.c:177 #6 0x557bd56743df in _dbus_gtype_from_signature /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-gsignature.c:199 #7 0x557bd5667499 in compute_gsignature /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:223 #8 0x557bd5669ab5 in compute_marshaller /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:269 #9 0x557bd5669ab5 in gather_marshallers /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:386 #10 0x557bd56699a2 in gather_marshallers_list /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:341 #11 0x557bd56699a2 in gather_marshallers /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:356 #12 0x557bd566ca97 in dbus_binding_tool_output_glib_server /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-binding-tool-glib.c:858 #13 0x557bd5666584 in main /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112/dbus/dbus-glib-tool.c:421 #14 0x7f2cbf2cf34b in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #15 0x7f2cbf2cf3fb in __libc_start_main_impl ../csu/libc-start.c:392 #16 0x557bd5666d60 in _start (/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build/dbus/.libs/dbus-binding-tool+0xdd60) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV ../glib-2.72.0/gobject/gtype.c:3786 in type_set_qdata_W ==2110==ABORTING make[3]: *** [Makefile:814: example-signal-emitter-glue.h] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [Makefile:811: example-service-glue.h] Error 1 make[3]: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build/dbus/examples' make[2]: *** [Makefile:1050: all-recursive] Error 1 make[2]: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build/dbus' make[1]: *** [Makefile:537: all-recursive] Error 1 make[1]: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build' make: *** [Makefile:437: all] Error 2 make: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-libs/dbus-glib-0.112/work/dbus-glib-0.112-.arm-build' * ERROR: dev-libs/dbus-glib-0.112::gentoo failed (compile phase): * emake failed