All pastes #716228 Raw Edit

hdh

public text v1 · immutable
#716228 ·published 2007-09-26 17:11 UTC
rendered paste body
System: Kubuntu 7.10, amd64, fuse 2.7.0, zfs-fuse trunk

ZFS-fuse installation:
 hg clone http://www.wizy.org/mercurial/zfs-fuse/trunk zfs-fuse
 cd zfs-fuse/src
 scons
 sudo scons install # will install into /usr/local/sbin
 sudo zfs-fuse # --no-daemon switch to run as nondaemon process
 sudo zpool create tank /tmp/zfs-tank # any file will do
 sudo zfs create tank/Music
 sudo zfs mount tank/Music  # will be mounted as /tank/Music

Test file:
#include <cstdio>
#include <QtCore>

int main()
{
  QDir dir("/");
  printf("%d\n", dir.count());

  dir.cd("tank/Music");  // /tank/Music is on ZFS-fuse
  printf("%d\n", dir.count());

  return 0;
}

Backtrace:
$ gdb ./testcase
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase
[Thread debugging using libthread_db enabled]
[New Thread 47545564020256 (LWP 28902)]
38
*** glibc detected *** /home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase: free(): invalid next size (fast): 0x00000000006044d0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b3e0fe2db0a]
/lib/libc.so.6(cfree+0x8c)[0x2b3e0fe316fc]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4[0x2b3e0e602f3a]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4[0x2b3e0e5fd017]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4[0x2b3e0e5c48f0]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4(_ZN12QDirIterator4nextEv+0x38)[0x2b3e0e5c4cb4]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4(_ZNK19QAbstractFileEngine9entryListE6QFlagsIN4QDir6FilterEERK11QStringList+0x9e)[0x2b3e0e5b8db4]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4(_ZNK13QFSFileEngine9entryListE6QFlagsIN4QDir6FilterEERK11QStringList+0x3e)[0x2b3e0e5fb6b8]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4[0x2b3e0e5c2bf0]
/home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtCore.so.4(_ZNK4QDir5countEv+0x22)[0x2b3e0e5bebf8]
/home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase(__gxx_personality_v0+0x1c9)[0x400b39]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b3e0fdd9b44]
/home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase(__gxx_personality_v0+0x89)[0x4009f9]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:06 881021                             /home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase
00601000-00602000 rw-p 00001000 08:06 881021                             /home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase
00602000-00623000 rw-p 00602000 00:00 0                                  [heap]
2b3e0bb85000-2b3e0bba2000 r-xp 00000000 08:01 2007702                    /lib/ld-2.6.1.so
2b3e0bba2000-2b3e0bba5000 rw-p 2b3e0bba2000 00:00 0
2b3e0bda1000-2b3e0bda3000 rw-p 0001c000 08:01 2007702                    /lib/ld-2.6.1.so
2b3e0bda3000-2b3e0c690000 r-xp 00000000 08:06 609086                     /home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtGui.so.4.3.1
2b3e0c690000-2b3e0c88f000 ---p 008ed000 08:06 609086                     /home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtGui.so.4.3.1
2b3e0c88f000-2b3e0c8d0000 rw-p 008ec000 08:06 609086                     /home/hdh/e1/path/64/KDE4/qt-copy/lib/libQtGui.so.4.3.1
2b3e0c8d0000-2b3e0c8d1000 rw-p 2b3e0c8d0000 00:00 0
2b3e0c8d1000-2b3e0c8f5000 r-xp 00000000 08:01 510244                     /usr/lib/libpng12.so.0.15.0
2b3e0c8f5000-2b3e0caf5000 ---p 00024000 08:01 510244                     /usr/lib/libpng12.so.0.15.0
2b3e0caf5000-2b3e0caf6000 rw-p 00024000 08:01 510244                     /usr/lib/libpng12.so.0.15.0
2b3e0caf6000-2b3e0cafe000 r-xp 00000000 08:01 510073                     /usr/lib/libSM.so.6.0.0
2b3e0cafe000-2b3e0ccfd000 ---p 00008000 08:01 510073                     /usr/lib/libSM.so.6.0.0
2b3e0ccfd000-2b3e0ccfe000 rw-p 00007000 08:01 510073                     /usr/lib/libSM.so.6.0.0
2b3e0ccfe000-2b3e0ccff000 rw-p 2b3e0ccfe000 00:00 0
2b3e0ccff000-2b3e0cd16000 r-xp 00000000 08:01 510071                     /usr/lib/libICE.so.6.3.0
2b3e0cd16000-2b3e0cf16000 ---p 00017000 08:01 510071                     /usr/lib/libICE.so.6.3.0
2b3e0cf16000-2b3e0cf17000 rw-p 00017000 08:01 510071                     /usr/lib/libICE.so.6.3.0
2b3e0cf17000-2b3e0cf1b000 rw-p 2b3e0cf17000 00:00 0
2b3e0cf1b000-2b3e0cf23000 r-xp 00000000 08:01 510105                     /usr/lib/libXi.so.6.0.0
2b3e0cf23000-2b3e0d123000 ---p 00008000 08:01 510105                     /usr/lib/libXi.so.6.0.0
2b3e0d123000-2b3e0d124000 rw-p 00008000 08:01 510105                     /usr/lib/libXi.so.6.0.0
2b3e0d124000-2b3e0d12d000 r-xp 00000000 08:01 510067                     /usr/lib/libXrender.so.1.3.0
2b3e0d12d000-2b3e0d32c000 ---p 00009000 08:01 510067                     /usr/lib/libXrender.so.1.3.0
2b3e0d32c000-2b3e0d32d000 rw-p 00008000 08:01 510067                     /usr/lib/libXrender.so.1.3.0
2b3e0d32d000-2b3e0d32e000 rw-p 2b3e0d32d000 00:00 0
2b3e0d32e000-2b3e0d335000 r-xp 00000000 08:01 510166                     /usr/lib/libXrandr.so.2.1.0
2b3e0d335000-2b3e0d534000 ---p 00007000 08:01 510166                     /usr/lib/libXrandr.so.2.1.0
2b3e0d534000-2b3e0d535000 rw-p 00006000 08:01 510166                     /usr/lib/libXrandr.so.2.1.0
2b3e0d535000-2b3e0d53a000 r-xp 00000000 08:01 510010                     /usr/lib/libXfixes.so.3.1.0
2b3e0d53a000-2b3e0d739000 ---p 00005000 08:01 510010                     /usr/lib/libXfixes.so.3.1.0
2b3e0d739000-2b3e0d73a000 rw-p 00004000 08:01 510010                     /usr/lib/libXfixes.so.3.1.0
2b3e0d73a000-2b3e0d744000 r-xp 00000000 08:01 510246
Program received signal SIGABRT, Aborted.
[Switching to Thread 47545564020256 (LWP 28902)]
0x00002b3e0fded765 in raise () from /lib/libc.so.6
(gdb) bt full
#0  0x00002b3e0fded765 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00002b3e0fdef1c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00002b3e0fe2660b in ?? () from /lib/libc.so.6
No symbol table info available.
#3  0x00002b3e0fe2db0a in ?? () from /lib/libc.so.6
No symbol table info available.
#4  0x00002b3e0fe316fc in free () from /lib/libc.so.6
No symbol table info available.
#5  0x00002b3e0e602f3a in QFSFileEngineIterator::advance (this=0x60c980)
    at io/qfsfileengine_iterator_unix.cpp:83
No locals.
#6  0x00002b3e0e5fd017 in QFSFileEngineIterator::next (this=0x60c980)
    at io/qfsfileengine_iterator.cpp:58
No locals.
---Type <return> to continue, or q <return> to quit---
#7  0x00002b3e0e5c48f0 in QDirIteratorPrivate::advance (this=0x603300)
    at io/qdiriterator.cpp:223
        it = (class QAbstractFileEngineIterator *) 0x60c980
        filePath = {static null = {<No data fields>}, static shared_null = {
    ref = {value = 44}, alloc = 0, size = 0, data = 0x2b3e0e8f237a, clean = 0,
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,
    reserved = 0, array = {0}}, static shared_empty = {ref = {value = 1},
    alloc = 0, size = 0, data = 0x2b3e0e8f239a, clean = 0, simpletext = 0,
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}},
  d = 0x7fff9ef21a70, static codecForCStrings = 0x0}
        foundValidEntry = false
#8  0x00002b3e0e5c4cb4 in QDirIterator::next (this=0x7fff9ef21b90)
    at io/qdiriterator.cpp:467
No locals.
#9  0x00002b3e0e5b8db4 in QAbstractFileEngine::entryList (this=0x6022e0,
    filters=@0x7fff9ef21c30, filterNames=@0x6022a0)
---Type <return> to continue, or q <return> to quit---
    at io/qabstractfileengine.cpp:606
        ret = (QStringList &) @0x7fff9ef21c70: {<QList<QString>> = {{p = {
        static shared_null = {ref = {value = 3}, alloc = 0, begin = 0,
          end = 0, sharable = 1, array = {0x0}}, d = 0x6108e0},
      d = 0x6108e0}}, <No data fields>}
        ret = {<QList<QString>> = {{p = {static shared_null = {ref = {
            value = 3}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {
            0x0}}, d = 0x7fff9ef21bc0}, d = 0x7fff9ef21bc0}}, <No data fields>}
        it = {_vptr.QDirIterator = 0x2b3e0e8ebad0, d = 0x603300}
#10 0x00002b3e0e5fb6b8 in QFSFileEngine::entryList (this=0x6022e0,
    filters=@0x7fff9ef21c80, filterNames=@0x6022a0) at io/qfsfileengine.cpp:730
No locals.
#11 0x00002b3e0e5c2bf0 in QDirPrivate::updateFileLists (this=0x602270)
    at io/qdir.cpp:307
        l = {<QList<QString>> = {{p = {static shared_null = {ref = {
            value = 3}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {
---Type <return> to continue, or q <return> to quit---
            0x0}}, d = 0x6108e0}, d = 0x6108e0}}, <No data fields>}
#12 0x00002b3e0e5bebf8 in QDir::count (this=0x7fff9ef21d00) at io/qdir.cpp:1292
        d = (const QDirPrivate * const) 0x602270
#13 0x0000000000400b39 in main () at testcase.cpp:10
        dir = {d_ptr = 0x602270}
(gdb)