Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 367351

Summary: sys-devel/crossdev causes miscompilation of dev-libs/glib on 32-bit platform (config.site misreports glib_cv_sizeof_gmutex)
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: [OLD] DevelopmentAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal CC: gnome, johan.ymerson, nao.nakashima, pageexec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-15 12:19:09 UTC
/usr/share/crossdev/include/site/linux reports

glib_cv_sizeof_gmutex=40

but the variable should rather be 24 at least on i386; the size it reports is the size of pthread_mutex_t which is arch-dependent.

The problem is that since this is overridden when crossdev is installed, you have a nastily broken glib that, among other things, would make VMware crash (as reported by PaX Team).

The value should probably be moved to x86_64-linux-gnu, rather than linux only, and separated for other platforms.

@GNOME: you _might_ want to add a blocker on the current version of crossdev for glib, just to be on the safe side.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-15 14:27:24 UTC
Fixed this on the crossdev git repository, Mike can you please take care of the release?
Comment 2 Johan Ymerson 2011-06-10 07:01:40 UTC
Why is this bug marked resolved?
It is _not_ resolved. There is no new ebuild in portage.
A new, clean, install of Gentoo with crossdev still get this problem.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-01 06:01:45 UTC
For completeness, it was fixed in:

commit b9e79cff4175e6fa745ed4deac247302db42efb4
Author: Diego Elio Pettenò <flameeyes@gmail.com>
Date:   Sun May 15 16:25:38 2011 +0200

    site: don't force 64-bit pthread_mutex_t size on other arches

    URL: http://bugs.gentoo.org/show_bug.cgi?id=367351
    Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>

and it landed in many crossdev tags since.