Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194973 - sys-libs/glibc-2.6: random Assertion m==cnt errors on ARM with swap turned on
Summary: sys-libs/glibc-2.6: random Assertion m==cnt errors on ARM with swap turned on
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Highest enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 203813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-07 09:52 UTC by Vladimir Smirnov (RETIRED)
Modified: 2014-06-14 22:14 UTC (History)
4 users (show)

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


Attachments
arm-longlong.patch (arm-longlong.patch,2.34 KB, patch)
2007-10-07 09:53 UTC, Vladimir Smirnov (RETIRED)
Details | Diff
arm-memcpy.patch (arm-memcpy.patch,16.56 KB, patch)
2007-10-07 09:54 UTC, Vladimir Smirnov (RETIRED)
Details | Diff
dl-cache-libcmp.patch (dl-cache-libcmp.patch,367 bytes, patch)
2007-10-07 09:54 UTC, Vladimir Smirnov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Smirnov (RETIRED) gentoo-dev 2007-10-07 09:52:08 UTC
Glibc with bare gentoo patchset is unusable on arm (a lot of runtime errors like "assertion m == cmt failed"). With few patches from openembedded it works well and seems to be stable.
Links to patches:
http://www.openembedded.org/repo/org.openembedded.dev/packages/glibc/glibc-cvs/arm-longlong.patch
http://www.openembedded.org/repo/org.openembedded.dev/packages/glibc/glibc-cvs/arm-memcpy.patch
http://www.openembedded.org/repo/org.openembedded.dev/packages/glibc/glibc-cvs/dl-cache-libcmp.patch

They need a bit monotonous modification to apply to glibc-2.6.1
Comment 1 Vladimir Smirnov (RETIRED) gentoo-dev 2007-10-07 09:53:10 UTC
Created attachment 132798 [details, diff]
arm-longlong.patch
Comment 2 Vladimir Smirnov (RETIRED) gentoo-dev 2007-10-07 09:54:05 UTC
Created attachment 132799 [details, diff]
arm-memcpy.patch

In fact is in't needed to run glibc, but it gives some performance boost.
Comment 3 Vladimir Smirnov (RETIRED) gentoo-dev 2007-10-07 09:54:39 UTC
Created attachment 132801 [details, diff]
dl-cache-libcmp.patch

Main patch. It fixes cmp assertion failure
Comment 4 Alexey Shvetsov archtester gentoo-dev 2007-10-07 11:55:25 UTC
arm-longlong patch seems to breake compatibility with oreviosliy compiled packages, because it changes size of longlong
it can be resolved by recompiling entry system =)
Comment 5 Alexey Shvetsov archtester gentoo-dev 2007-10-11 19:58:42 UTC
patches works fine
at least we have no assertion m == cmt failed
so this patches needed for arm =)
Comment 6 SpanKY gentoo-dev 2008-01-27 07:39:11 UTC
*** Bug 203813 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2008-01-28 09:03:29 UTC
Comment on attachment 132798 [details, diff]
arm-longlong.patch

i'm not adding something that isnt from upstream and breaks ABI
Comment 8 SpanKY gentoo-dev 2008-01-28 09:04:59 UTC
can you explain how/when you see the assert message ?  that change affects everyone, not just arm.  i'm running glibc-2.7 on arm right now and havent seen any assert messages.
Comment 9 Alexey Shvetsov archtester gentoo-dev 2008-02-02 16:17:28 UTC
i'm running arm with eabi on hx4700
assertion happens very rare but it breaks compilation =)
I'm can only see this message during compilation while running glibc-2.6 with gentoo patchset
Comment 10 Alexey Shvetsov archtester gentoo-dev 2008-03-07 18:49:05 UTC
glibc-2.7 works fine w gentoo patchest 1.6 + arm-memcpy.patch + dl-cache-libcmp.patch

hx4700 ~ # /lib/libc-2.7.so
GNU C Library stable release version 2.7, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.2.3 (Gentoo 4.2.3 p1.0).
Compiled on a Linux >>2.6.21-hh19<< system on 2008-03-07.
Available extensions:
        C stubs add-on version 2.1.2
        crypt add-on version 2.1 by Michael Glad and others
        Gentoo patchset 1.6.1
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


Comment 11 Alexey Shvetsov archtester gentoo-dev 2008-03-15 12:55:41 UTC
mit-frame-pointer -MT cfbtileoddC.lo -MD -MP -MF .deps/cfbtileoddC.Tpo -c -o cfbtileoddC.lo cfbtileoddC.c
Inconsistency detected by ld.so: ../elf/dl-sysdep.c: 456: _dl_important_hwcaps: Assertion `m == cnt' failed!

assertion message that i get during emergeing xorg-server
Comment 12 Alexey Shvetsov archtester gentoo-dev 2008-04-15 07:13:44 UTC
(In reply to comment #11)
> mit-frame-pointer -MT cfbtileoddC.lo -MD -MP -MF .deps/cfbtileoddC.Tpo -c -o
> cfbtileoddC.lo cfbtileoddC.c
> Inconsistency detected by ld.so: ../elf/dl-sysdep.c: 456: _dl_important_hwcaps:
> Assertion `m == cnt' failed!
> 
> assertion message that i get during emergeing xorg-server
> 
Deleting existing files for mesa module ... Inconsistency detected by ld.so: ../elf/dl-sysdep.c: 456: _dl_important_hwcaps: Assertion `m == cnt' failed!
DONE                            

another assertion message =)
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2009-01-15 21:43:19 UTC
Is this still needed? wfm on armv5tel-softfloat-linux-gnueabi...
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2009-03-30 15:35:23 UTC
glibc-2.8 is now stable...still getting this stuff, or can we close this bug?
Comment 15 Vladimir Smirnov (RETIRED) gentoo-dev 2009-04-29 09:15:37 UTC
Still random assertions with glibc 2.8 and 2.9 with swap on armv5te-softfloat-linux-gnueabi.
Comment 16 Mark Loeser (RETIRED) gentoo-dev 2009-08-08 22:44:18 UTC
@arm: Can anyone reproduce this?  If it were a widespread issue, I'm sure we would have seen more bugs by now.
Comment 17 Robert Piasek (RETIRED) gentoo-dev 2009-08-09 06:20:36 UTC
I couldn't reproduce it on armv7a. Unfortunately I don't have armv5tel to test.
Comment 18 Vitaly Minko 2009-08-10 11:49:38 UTC
I can reproduce this issue on
XScale-PXA270 rev 7 (v51) (Sharp Akita)
gcc-4.3.2-r4
glibc-2.8_p20080602-r1
-march=iwmmxt

The issue is not reproducible with -march=armv5te instead of iwmmxt.
Comment 19 Enrico Scholz 2010-06-22 17:05:42 UTC
some analysis at http://article.gmane.org/gmane.linux.ports.arm.general/11795
Comment 20 Raúl Porcel (RETIRED) gentoo-dev 2010-08-15 14:43:41 UTC
(In reply to comment #18)
> I can reproduce this issue on
> XScale-PXA270 rev 7 (v51) (Sharp Akita)
> gcc-4.3.2-r4
> glibc-2.8_p20080602-r1
> -march=iwmmxt
> 
> The issue is not reproducible with -march=armv5te instead of iwmmxt.
> 

Ah, that would explain why i don't get it, i don't have an iwmmxt capable processor...

Enrico, according to your report, its not related to the userland, so its something hard to fix, then. Definitely those patches attached here that mean recompiling the system aren't going to be applied..