Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411907 - dev-libs/glib-2.32.1 fails /contenttype/guess test
Summary: dev-libs/glib-2.32.1 fails /contenttype/guess test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2012-04-14 06:25 UTC by Hans de Graaff
Modified: 2013-08-05 18:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,490.52 KB, text/plain)
2012-04-14 06:25 UTC, Hans de Graaff
Details
emerge --info (emerge-info.txt,16.31 KB, text/plain)
2012-04-14 06:26 UTC, Hans de Graaff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2012-04-14 06:25:28 UTC
Created attachment 308847 [details]
build.log

I'm getting the following test failure with dev-libs/glib-2.32.1:

TEST: contenttype... (pid=13562)
  /contenttype/guess:                                                  FAIL
GTester: last random seed: R02Sbad8975595b540f5fe12259dfda1ca07
/bin/sh: line 1:  5098 Terminated              G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose io-stream memory-input-stream memory-output-stream readwrite g-file g-file-info converter-stream data-input-stream data-output-stream g-icon buffered-input-stream buffered-output-stream sleepy-stream filter-streams volumemonitor simple-async-result srvtarget contexts gsettings gschema-compile async-close-output-stream gdbus-addresses network-address gdbus-message socket pollable tls-certificate tls-interaction cancellable vfs network-monitor fileattributematcher gmenumodel resources actions gdbus-close-pending gdbus-connection gdbus-connection-flush gdbus-connection-loss gdbus-connection-slow gdbus-names gdbus-proxy gdbus-proxy-threads gdbus-proxy-well-known-name gdbus-introspection gdbus-threading gdbus-export gdbus-error gdbus-peer gdbus-exit-on-close gdbus-non-socket gdbus-bz627724 appinfo contenttype mimeapps file live-g-file desktop-app-info unix-fd unix-streams gapplication basic-application gdbus-test-codegen gdbus-serialization
make[6]: *** [test-nonrecursive] Error 143
make[6]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/gio/tests'
Comment 1 Hans de Graaff gentoo-dev Security 2012-04-14 06:26:16 UTC
Created attachment 308849 [details]
emerge --info
Comment 2 Hans de Graaff gentoo-dev Security 2012-04-20 06:57:20 UTC
Starting program: /var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/gio/tests/.libs/contenttype 
[Thread debugging using libthread_db enabled]
/contenttype/guess: 
Program received signal SIGSEGV, Segmentation fault.
cache_magic_matchlet_compare_to_data (len=18446744073709551615, data=0x401c40, offset=<optimized out>, cache=<optimized out>)
    at xdgmimecache.c:199
199		      if (((unsigned char *)cache->buffer)[data_offset + j] != ((unsigned char *) data)[j + i])
(gdb) bt
#0  cache_magic_matchlet_compare_to_data (len=18446744073709551615, data=0x401c40, offset=<optimized out>, cache=<optimized out>)
    at xdgmimecache.c:199
#1  cache_magic_matchlet_compare (cache=<optimized out>, offset=<optimized out>, data=0x401c40, len=18446744073709551615)
    at xdgmimecache.c:225
#2  0x00007ffff760a212 in cache_magic_compare_to_data (prio=<optimized out>, len=18446744073709551615, data=0x401c40, 
    offset=64104, cache=0x6118f0) at xdgmimecache.c:257
#3  cache_magic_lookup_data (prio=<optimized out>, len=18446744073709551615, data=0x401c40, cache=0x6118f0, 
    mime_types=<optimized out>, n_mime_types=<optimized out>) at xdgmimecache.c:293
#4  cache_get_mime_type_for_data (n_mime_types=0, mime_types=0x0, result_prio=0x7fffffffd31c, len=18446744073709551615, 
    data=0x401c40) at xdgmimecache.c:710
#5  __gio_xdg_cache_get_mime_type_for_data (data=0x401c40, len=18446744073709551615, result_prio=0x7fffffffd31c)
    at xdgmimecache.c:740
#6  0x00007ffff7557a71 in g_content_type_guess (filename=0x401a04 "foo", 
    data=0x401c40 "[Desktop Entry]\nType=Application\nName=appinfo-test\nExec=./appinfo-test --option\n", 
    data_size=18446744073709551615, result_uncertain=0x7fffffffd36c) at gcontenttype.c:939
#7  0x000000000040142c in test_guess () at contenttype.c:43
#8  0x00007ffff7b26c14 in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007ffff7b26d9e in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007ffff7b270db in g_test_run_suite () from /usr/lib64/libglib-2.0.so.0
#11 0x0000000000401810 in main (argc=1, argv=0x7fffffffd688) at contenttype.c:200
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 07:33:04 UTC
(In reply to comment #2)

Please report this upstream (https://bugzilla.gnome.org/enter_bug.cgi?product=glib) and add gnome@gentoo.org to the CC list.
Comment 4 Patrick Lauer gentoo-dev 2012-04-25 02:49:00 UTC
  /thread/thread3:                                                     **
ERROR:thread.c:147:test_thread4: assertion failed: (thread == NULL)
OK
  /thread/thread4:                                                     FAIL
GTester: last random seed: R02Sc73ee5d6beea0a9cc961c5b0be5a7e69
/bin/sh: line 1: 26051 Terminated              G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose testing option-context option-argv0 keyfile fileutils test-printf protocol rand strfuncs string markup-parse markup-collect markup-escape markup-subparser array-test bytes hostutils gvariant mem-overflow utf8-performance utils regex base64 sequence scannerapi shell collate utf8-pointer utf8-validate utf8-misc unicode checksum hmac hash cache date node convert list slist queue tree uri dir pattern logging error bookmarkfile gdatetime timeout environment mappedfile dataset sort atomic bitlock mutex rec-mutex rwlock once cond thread slice hook mainloop private asyncqueue 1bit-mutex 642026 642026-ec 1bit-emufutex spawn-multithreaded spawn-singlethread gwakeup gwakeup-fallback unix-multithreaded unix unix-nothreads include
make[4]: *** [test-nonrecursive] Error 143
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib'
make: *** [check-recursive] Error 1
 * ERROR: dev-libs/glib-2.32.1 failed (test phase):
Comment 5 Pacho Ramos gentoo-dev 2012-05-01 20:25:36 UTC
(In reply to comment #4)
>   /thread/thread3:                                                     **
> ERROR:thread.c:147:test_thread4: assertion failed: (thread == NULL)
> OK
>   /thread/thread4:                                                     FAIL
> GTester: last random seed: R02Sc73ee5d6beea0a9cc961c5b0be5a7e69
> /bin/sh: line 1: 26051 Terminated              G_DEBUG=gc-friendly
> MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester
> --verbose testing option-context option-argv0 keyfile fileutils test-printf
> protocol rand strfuncs string markup-parse markup-collect markup-escape
> markup-subparser array-test bytes hostutils gvariant mem-overflow
> utf8-performance utils regex base64 sequence scannerapi shell collate
> utf8-pointer utf8-validate utf8-misc unicode checksum hmac hash cache date
> node convert list slist queue tree uri dir pattern logging error
> bookmarkfile gdatetime timeout environment mappedfile dataset sort atomic
> bitlock mutex rec-mutex rwlock once cond thread slice hook mainloop private
> asyncqueue 1bit-mutex 642026 642026-ec 1bit-emufutex spawn-multithreaded
> spawn-singlethread gwakeup gwakeup-fallback unix-multithreaded unix
> unix-nothreads include
> make[4]: *** [test-nonrecursive] Error 143
> make[4]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib/tests'
> make[3]: *** [check-am] Error 2
> make[3]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib/tests'
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.32.1/work/glib-2.32.1/glib'
> make: *** [check-recursive] Error 1
>  * ERROR: dev-libs/glib-2.32.1 failed (test phase):

I just hit this failure, I think you should open a separate bug for this and also an upstream report if you are able to (I don't have time just now :S)
Comment 6 Hans de Graaff gentoo-dev Security 2012-05-03 06:05:27 UTC
(In reply to comment #0)
> Created attachment 308847 [details]
> build.log
> 
> I'm getting the following test failure with dev-libs/glib-2.32.1:

Also happens with glib 2.32.2.
Comment 7 Pacho Ramos gentoo-dev 2013-07-26 20:43:15 UTC
Please retry with 2.36.3-r1, it passes all tests for me
Comment 8 Hans de Graaff gentoo-dev Security 2013-08-05 18:04:35 UTC
Fix confirmed for me.