xfs-masters
[Top] [All Lists]

[Bug 1140] New: xfs_db (git / 4.5.0) bus error on check command (sparc64

To: xfs-masters@xxxxxxxxxxx
Subject: [Bug 1140] New: xfs_db (git / 4.5.0) bus error on check command (sparc64)
From: bugzilla-daemon@xxxxxxxxxxx
Date: Fri, 08 Apr 2016 08:20:02 +0000
Auto-submitted: auto-generated
Delivered-to: xfs-masters@xxxxxxxxxxx
Bug ID 1140
Summary xfs_db (git / 4.5.0) bus error on check command (sparc64)
Product XFS
Version Current
Hardware Sun
OS Linux
Status NEW
Severity normal
Priority P5
Component xfsprogs
Assignee xfs-masters@oss.sgi.com
Reporter matorola@gmail.com
Classification Unclassified

Comment # 1 on bug 1140 from
root@deb4g:/home/mator/xfsprogs# db/xfs_db  -c frag /dev/vdiskd1     
Bus error (core dumped)
root@deb4g:/home/mator/xfsprogs# gdb -c core.xfs_db.233935 
GNU gdb (Debian 7.10-1+b1) 7.10
Core was generated by `db/xfs_db -c frag /dev/vdiskd1'.
Program terminated with signal SIGUSR1, User defined signal 1.
#0  0x00000000001171dc in ?? ()
(gdb) file db/xfs_db
Reading symbols from db/xfs_db...done.
(gdb) set args -c frag /dev/vdiskd1
(gdb) run
Starting program: /home/mator/xfsprogs/db/xfs_db -c frag /dev/vdiskd1
BFD: /usr/lib/debug/.build-id/06/644576383c30fa93bc2f579c36a6a00ea3915e.debug:
unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/06/644576383c30fa93bc2f579c36a6a00ea3915e.debug:
unable to initialize decompress status for section .debug_aranges
warning: File
"/usr/lib/debug/.build-id/06/644576383c30fa93bc2f579c36a6a00ea3915e.debug" has
no build-id, file skipped
BFD: /usr/lib/debug/.build-id/ed/8f44233b09c1489f3f30744505724c78a6cb29.debug:
unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/ed/8f44233b09c1489f3f30744505724c78a6cb29.debug:
unable to initialize decompress status for section .debug_aranges
warning: File
"/usr/lib/debug/.build-id/ed/8f44233b09c1489f3f30744505724c78a6cb29.debug" has
no build-id, file skipped
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc64-linux-gnu/libthread_db.so.1".
BFD: /usr/lib/debug/.build-id/2c/7a3912095136881409f015a4fe8b9e5117a012.debug:
unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/2c/7a3912095136881409f015a4fe8b9e5117a012.debug:
unable to initialize decompress status for section .debug_aranges
warning: File
"/usr/lib/debug/.build-id/2c/7a3912095136881409f015a4fe8b9e5117a012.debug" has
no build-id, file skipped

Program received signal SIGBUS, Bus error.
process_btinode (whichfork=<optimized out>, extmapp=<optimized out>,
dip=0x99c000) at frag.c:261
261                     scan_lbtree(be64_to_cpu(pp[i]),
be16_to_cpu(dib->bb_level),
(gdb) bt
#0  process_btinode (whichfork=<optimized out>, extmapp=<optimized out>,
dip=0x99c000) at frag.c:261
#1  process_fork (dip=0x99c000, whichfork=whichfork@entry=0) at frag.c:295
#2  0x0000000000117830 in process_inode (agf=0x29c000, dip=<optimized out>,
agino=199560) at frag.c:345
#3  scanfunc_ino (block=0x2a1000, level=level@entry=0, agf=agf@entry=0x29c000)
at frag.c:497
#4  0x00000000001174fc in scan_sbtree (agf=agf@entry=0x29c000, root=<optimized
out>, nlevels=nlevels@entry=1, btype=TYP_INOBT, 
    func=0x117528 <scanfunc_ino+4>) at frag.c:424
#5  0x00000000001177c0 in scanfunc_ino (block=0x29ea00, level=level@entry=1,
agf=agf@entry=0x29c000) at frag.c:507
#6  0x00000000001174fc in scan_sbtree (agf=agf@entry=0x29c000, root=<optimized
out>, nlevels=<optimized out>, btype=TYP_INOBT, 
    func=0x117528 <scanfunc_ino+4>) at frag.c:424
#7  0x0000000000117ab8 in scan_ag (agno=0) at frag.c:380
#8  frag_f (argc=<optimized out>, argv=<optimized out>) at frag.c:167
#9  0x0000000000112490 in command (argc=<optimized out>,
argv=argv@entry=0x29bfe0) at command.c:98
#10 0x000000000010513c in main (argc=<optimized out>, argv=<optimized out>) at
init.c:202
(gdb)
Hello!

Using git version of xfsprogs, compiling and trying to run xfs_db check on xfs
filesystem, gives bus error:

root@deb4g:/home/mator/xfsprogs# git log -1
commit 53cefc406eb1047ce9dc85906a0117f8da9f44ca
Author: Dave Chinner <david@fromorbit.com>
Date:   Tue Mar 15 15:25:56 2016 +1100

    xfsprogs: Release v4.5.0

root@deb4g:/home/mator/xfsprogs# uname -a
Linux deb4g 4.5.0-trunk-sparc64-smp #1 SMP Debian 4.5-1~exp1 (2016-03-20)
sparc64 GNU/Linux

root@deb4g:/home/mator/xfsprogs# getconf PAGE_SIZE
8192

XFS filesystem on /dev/vdiskd1 was created using simple mkfs.xfs (default
options)

root@deb4g:/home/mator/xfsprogs# xfs_info /dev/vdiskd1
meta-data=""           isize=512    agcount=4, agsize=655232 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1 spinodes=0
data     =                       ""   blocks=2620928, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

root@deb4g:/home/mator/xfsprogs# db/xfs_db -c check /dev/vdiskd1
Bus error (core dumped)

root@deb4g:/home/mator/xfsprogs# gdb -c core.xfs_db.227612 
GNU gdb (Debian 7.10-1+b1) 7.10
...
(gdb) file db/xfs_db
Reading symbols from db/xfs_db...done.
(gdb) set args -c check /dev/vdiskd1
(gdb) run
Starting program: /home/mator/xfsprogs/db/xfs_db -c check /dev/vdiskd1
BFD: /usr/lib/debug/.build-id/06/644576383c30fa93bc2f579c36a6a00ea3915e.debug:
unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/06/644576383c30fa93bc2f579c36a6a00ea3915e.debug:
unable to initialize decompress status for section .debug_aranges
warning: File
"/usr/lib/debug/.build-id/06/644576383c30fa93bc2f579c36a6a00ea3915e.debug" has
no build-id, file skipped
BFD: /usr/lib/debug/.build-id/ed/8f44233b09c1489f3f30744505724c78a6cb29.debug:
unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/ed/8f44233b09c1489f3f30744505724c78a6cb29.debug:
unable to initialize decompress status for section .debug_aranges
warning: File
"/usr/lib/debug/.build-id/ed/8f44233b09c1489f3f30744505724c78a6cb29.debug" has
no build-id, file skipped
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc64-linux-gnu/libthread_db.so.1".
BFD: /usr/lib/debug/.build-id/2c/7a3912095136881409f015a4fe8b9e5117a012.debug:
unable to initialize decompress status for section .debug_aranges
BFD: /usr/lib/debug/.build-id/2c/7a3912095136881409f015a4fe8b9e5117a012.debug:
unable to initialize decompress status for section .debug_aranges
warning: File
"/usr/lib/debug/.build-id/2c/7a3912095136881409f015a4fe8b9e5117a012.debug" has
no build-id, file skipped

Program received signal SIGBUS, Bus error.
process_btinode (id=0xb97210, dip=dip@entry=0xb94200, type=type@entry=DBM_DATA,
totd=totd@entry=0x7feffffea10, toti=toti@entry=0x7feffffea18,
nex=nex@entry=0x7feffffe9f4, 
    blkmapp=<optimized out>, whichfork=<optimized out>) at check.c:2205
2205                            scan_lbtree(be64_to_cpu(pp[i]),
(gdb) bt
#0  process_btinode (id=0xb97210, dip=dip@entry=0xb94200,
type=type@entry=DBM_DATA, totd=totd@entry=0x7feffffea10,
toti=toti@entry=0x7feffffea18, nex=nex@entry=0x7feffffe9f4, 
    blkmapp=<optimized out>, whichfork=<optimized out>) at check.c:2205
#1  0x0000000000110284 in process_inode (agf=<optimized out>, isfree=<optimized
out>, dip=0xb94200, agino=<optimized out>) at check.c:2820
#2  scanfunc_ino (block=<optimized out>, level=level@entry=0, agf=<optimized
out>, agf@entry=0x29c000, bno=bno@entry=45330, isroot=isroot@entry=0) at
check.c:4498
#3  0x000000000010962c in scan_sbtree (agf=agf@entry=0x29c000, root=<optimized
out>, nlevels=nlevels@entry=1, isroot=isroot@entry=0, func=func@entry=0x10eb60
<scanfunc_ino>, 
    btype=btype@entry=TYP_INOBT) at check.c:4091
#4  0x000000000010ed2c in scanfunc_ino (block=<optimized out>,
level=level@entry=1, agf=<optimized out>, agf@entry=0x29c000,
bno=bno@entry=45412, isroot=isroot@entry=1)
    at check.c:4535
#5  0x000000000010962c in scan_sbtree (agf=agf@entry=0x29c000, root=<optimized
out>, nlevels=<optimized out>, isroot=isroot@entry=1, func=func@entry=0x10eb60
<scanfunc_ino>, 
    btype=btype@entry=TYP_INOBT) at check.c:4091
#6  0x000000000010b5a8 in scan_ag (agno=agno@entry=0) at check.c:3908
#7  0x000000000010de20 in blockget_f (argc=<optimized out>, argv=<optimized
out>) at check.c:806
#8  0x0000000000112490 in command (argc=<optimized out>,
argv=argv@entry=0x29bfe0) at command.c:98
#9  0x000000000010513c in main (argc=<optimized out>, argv=<optimized out>) at
init.c:202


You are receiving this mail because:
  • You are the assignee for the bug.
<Prev in Thread] Current Thread [Next in Thread>