`text_plain_as_html` fails with memory overallocation on 64-bit big-endian architectures
For 3.35.90 on ppc64 and s390x debian build daemons, engine/Geary.RFC822.MessageTest/text_plain_as_html
fails with a huge memory overallocation:
…
ok 208 /engine/Geary.RFC822.MessageTest/duplicate_message_id
ok 209 /engine/Geary.RFC822.MessageTest/text_plain_as_plain
Bail out! GLib-FATAL-ERROR: ../../../glib/gmem.c:105: failed to allocate 438086664556 bytes
--- stderr ---
geary-Message: 01:40:42.330: imap-db-database.vala:122: Garbage collection of IMAP database /tmp/geary-imap-db-database-test-6053G0/geary-0.6-db/geary.db failed: Operation was cancelled
(/<<PKGBUILDDIR>>/obj-s390x-linux-gnu/test/test-engine:9272): GLib-ERROR **: 01:40:43.041: ../../../glib/gmem.c:105: failed to allocate 438086664556 bytes
-------
5/5 client-tests FAIL 2.64 s (killed by signal 6 SIGABRT)
--- command ---
01:40:40 /<<PKGBUILDDIR>>/obj-s390x-linux-gnu/test/test-client
--- stdout ---
# random seed: R02S7b2f0f44df52a18e5722bb250dde1564
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation memory (GMemorySettingsBackend) for ‘gsettings-backend’
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
# GLib-DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
# GLib-DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
# GLib-DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
# GLib-DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
1..68
…
test/engine/rfc822-message-test.vala
contains:
…
add_test("duplicate_message_id", duplicate_message_id);
add_test("text_plain_as_plain", text_plain_as_plain);
add_test("text_plain_as_html", text_plain_as_html);
…
so we can see that text_plain_as_plain
succeeds but the next test (text_plain_as_html
) crashes.
The same thing seems to be happening on 3.34.2 on s390x and on ppc64 as well.
But text_plain_as_html
succeeds on the big-endian 32-bit powerpc.