Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

fsvs
Discussion topic

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

Hide all messages in topic

All messages in topic

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2008-03-13 05:12:58 PDT
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User pmarek changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                  Status|STARTED |RESOLVED
--------------------​--------------------​--------------------​--------------------​
              Resolution| |FIXED
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from pmarek at tigris dot org Thu Mar 13 05:12:58 -0700 2008 -------
Sorry, forgot to mark as FIXED.
For 1.1.13 I let the whole test suite run with valgrind; no such bugs are
left.

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-09 00:54:50 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User pmarek changed the following:

                What |Old value |New value
====================​====================​====================​====================​
            Subcomponent|user interface |core
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from pmarek at tigris dot org Fri Nov 9 00:54:49 -0800 2007 -------
Changed the component.

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 05:38:25 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User pmarek changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                     URL|http://lemming.name/?p=566|
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from pmarek at tigris dot org Thu Nov 8 05:38:25 -0800 2007 -------
Using libv6=2.7-0exp8 on debian doesn't show this problem - even if I try to
trigger the realloc logic manually.

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 04:22:01 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 04:22:01 -0800 2007 -------
I've sent details to your e-mailaddress pmarek at tigris dot org

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 03:33:59 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from pmarek at tigris dot org Thu Nov 8 03:33:59 -0800 2007 -------
Hmmm, that could get a bit messy ... I'll have a look whether I can reproduce
that myself; if I don't make it, next choice would be remote debugging (SSH or
IRC) ... doing that via email is too slow.

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 03:15:15 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 03:15:15 -0800 2007 -------
Yes, I do have GDB installed. Could you tell me how to use it?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 02:39:55 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from pmarek at tigris dot org Thu Nov 8 02:39:55 -0800 2007 -------
Do you have GDB, to set a hardware watchpoint on the length field from the
malloc() onwards?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 02:09:32 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 02:09:31 -0800 2007 -------
On the Solaris server, the directory is on a ZFS.

--(askwar@winnb00048​8)-(208/pts/16)-(10:​59:23/2007-11-08)--
--($:/net/Winds06/o​pt/apps/Gentoo/HomeS​mall/rootfs/bauen/va​r/log/portage/elog)-​-
df .
Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
Winds06:/opt/apps/Ge​ntoo/HomeSmall/rootf​s/bauen
                      29594624 1785856 27808768 7%
/net/Winds06/opt/app​s/Gentoo/HomeSmall/r​ootfs/bauen
--(askwar@winnb00048​8)-(209/pts/16)-(11:​07:08/2007-11-08)--
--($:/net/Winds06/o​pt/apps/Gentoo/HomeS​mall/rootfs/bauen/va​r/log/portage/elog)-​-
df -i .
Dateisystem INodes IBenut. IFrei IBen% Eingehängt auf
Winds06:/opt/apps/Ge​ntoo/HomeSmall/rootf​s/bauen
                     55888149 272960 55615189 1%
/net/Winds06/opt/app​s/Gentoo/HomeSmall/r​ootfs/bauen

Reg. what changed in glibc 2.7:
http://sources.redha​t.com/cgi-bin/cvsweb​.cgi/libc/NEWS?rev=1​.180&content-typ​e=text/x-cvsweb-mark​up&cvsroot=glibc​
:)

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 02:06:15 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from pmarek at tigris dot org Thu Nov 8 02:06:15 -0800 2007 -------
There's some logic getting the size of the directory, and using that as a
first estimate how much space is needed for the filenames.

In that directory the heuristic is way off, that's why realloc()s are done at
all..
If I change my direnum.c to use a minimal size at first, and re-run with
several thousand new files, it works. What changed in 2.7?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:58:43 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:58:43 -0800 2007 -------
No, I cannot do a valgrind:

configure: error: Valgrind requires glibc version 2.2 - 2.6

That's with: dev-util/valgrind-3.2.3-r1

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:52:04 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:52:04 -0800 2007 -------
If you'd please tell me what I'd exactly need to do to run valgrind, I'd be more
than happy to do just that ;)

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:50:52 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:50:52 -0800 2007 -------
With glibc 2.6 (on Gentoo), I did also not have this problem. Could you try to
update your system glibc 2.7 (you'll need to take care of
https://bugs.gentoo.​org/show_bug.cgi?id=​196926 - ie. download patched ebuild
from https://bugs.gentoo.​org/attachment.cgi?i​d=135427 and patch from
https://bugs.gentoo.​org/attachment.cgi?i​d=135428) and try again?

This is the /var/log/portage/elog directory, btw. Filesystem: nfs (from a Sun
Solaris 10 Sparc server).

When I mount a ext2 filesystem on that directory, I don't have this problem (?).
How can that happen?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 01:50:22 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from pmarek at tigris dot org Thu Nov 8 01:50:22 -0800 2007 -------
Could you do a valgrind run?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 01:44:58 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from pmarek at tigris dot org Thu Nov 8 01:44:57 -0800 2007 -------
I can't reproduce that with 2.6.1-6; 5411 new entries committed, commit, 2650
changed, commit, everything ok.

What filesystem is that? The directory is 391 bytes long ("."), but has that
many entries with such long names?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:35:06 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User alexs77 changed the following:

                What |Old value |New value
====================​====================​====================​====================​
         Attachment data| |Created an attachment (id=
                        | |2)
"ls -la" output of the
                        | |directory where fsvs st -d
                        | | crashes

--------------------​--------------------​--------------------​--------------------​




------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:35:06 -0800 2007 -------
Created an attachment (id=2)
"ls -la" output of the directory where fsvs st -d crashes

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:34:30 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:34:30 -0800 2007 -------
The attaced file contains the output of "fsvs status -d" from a small directory.
In total, there are only 389 files in that directory.

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:33:30 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User alexs77 changed the following:

                What |Old value |New value
====================​====================​====================​====================​
         Attachment data| |Created an attachment (id=
                        | |1)
fsvs st -d output

--------------------​--------------------​--------------------​--------------------​




------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:33:30 -0800 2007 -------
Created an attachment (id=1)
fsvs st -d output

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author pmarek
Full name P.Marek
Date 2007-11-08 01:29:50 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User pmarek changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                  Status|NEW |STARTED
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from pmarek at tigris dot org Thu Nov 8 01:29:50 -0800 2007 -------
Could you please show (or privately send) the output of "fsvs st -d"?

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:26:27 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:26:27 -0800 2007 -------
It also happens when I do a "commit". But I noticed, that this seems to be
related to the size of the transaction I'm doing.

With this, I mean that I don't have this problem, when I do a "status" on a
directory with not that many changes (like /boot).

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:21:46 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:21:46 -0800 2007 -------
Still happens with revision 1209.

.mC. 4828 etc/make.conf
*** glibc detected *** fsvs: realloc(): invalid next size: 0x0829e1f0 ***
Abgebrochen
--(askwar@winnb00048​8)-(54/pts/16)-(10:1​8:43/2007-11-08)--
--($:/net/Winds06/o​pt/apps/Gentoo/HomeS​mall/rootfs/bauen)--​ fsvs -V
FSVS (licensed under the GPLv2), (C) by Ph. Marek; version trunk:1124

Shouldn't that say "version trunk:1209"? Anyway, I build that from a SVN
checkout I did a few moments ago.

[Issue 1] glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 01:01:19 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1



User alexs77 changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                     URL| |http://lemming.name/?p=566
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from alexs77 at tigris dot org Thu Nov 8 01:01:19 -0800 2007 -------
You certainly might know that better than I, but I found something on
http://lemming.name/?p=566 reg. that glibc problem. It states, that different
data types have been used in a malloc() call and a realloc() call.

[Issue 1] New - glibc 2.7: *** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***

Author alexs77
Full name Alexander Skwar
Date 2007-11-08 00:58:42 PST
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=1
                 Issue #|1
                 Summary|glibc 2.7: *** glibc detected *** fsvs: realloc(): inv
                        |alid next size: 0x082838f0 ***
               Component|fsvs
                 Version|1.1
                Platform|Linux
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|user interface
             Assigned to|pmarek
             Reported by|alexs77






------- Additional comments from alexs77 at tigris dot org Thu Nov 8 00:58:42 -0800 2007 -------
Today, I upgraded to glibc 2.7 on my Gentoo Linux system. When I run

  SVN_SSH="ssh -i /home/askwar/.ssh/fs​vs-root@winnb000488"​ sudo fsvs status

it ends with:

N... 0 etc/xml/.keep_app-te​xt_docbook-xml-dtd-4​.4
N... 10979 etc/xml/docbook
N... 1095 etc/xml/catalog
.mC. dir etc
.mC. 4828 etc/make.conf
*** glibc detected *** fsvs: realloc(): invalid next size: 0x082838f0 ***
Abgebrochen

I have since then recompiled fsvs, but I still get that error. I did not have
this issue with glibc 2.6.


--($:/net/Winds06/o​pt/apps/Gentoo/HomeS​mall/rootfs/bauen)--​ fsvs -V
FSVS (licensed under the GPLv2), (C) by Ph. Marek; version fsvs-1.1.10:1124
Messages per page: