xfs
[Top] [All Lists]

Re: xfs_repair segfaut in stage 6

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: xfs_repair segfaut in stage 6
From: Bartosz Cisek <bartosz.cisek@xxxxxxxxxxxxxx>
Date: Wed, 14 Sep 2011 17:10:02 +0200
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, Michael Monnerie <michael.monnerie@xxxxxxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <4E70C0C5.1080100@xxxxxxxxxxx>
References: <4E69D1B9.8070201@xxxxxxxxxxxxxx> <201109091401.31422@xxxxxx> <4E6A2B73.50503@xxxxxxxxxxxxxx> <20110912161215.GA17798@xxxxxxxxxxxxx> <4E707624.9030703@xxxxxxxxxxxxxx> <20110914142430.GA28049@xxxxxxxxxxxxx> <4E70C0C5.1080100@xxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110818 Iceowl/1.0b1 Icedove/3.0.11
W dniu 14.09.2011 16:57, Eric Sandeen pisze:
> If it worked for Christoph and not for Bartosz ....
> 
> Is the -DDEBUG / -DNDEBUG type setting the same in both cases?
> Maybe Fedora is the only one doing -DNDEBUG :( but maybe worth
> checking.

Tested both. I was wodering why I got 'value optimized out' in gdb, so
compiled with DEBUG=-DNDBEUG and DEBUG=-DDEBUG. Both crashed, both had
'optimized out' values in gdb backtrace.

I found two placed where DEBUG may be overwritten:

hd-slave5 ~/devel/xfsprogs # ack-grep NDEBUG
libxfs/Makefile
39:DEBUG = -DNDEBUG

libxlog/Makefile
16:DEBUG = -DNDEBUG

When I changed -DNDEBUG to -DDEBUG/ compilation failed.

xfs_ialloc.c: In function ‘xfs_imap’:
xfs_ialloc.c:1122: warning: implicit declaration of function
‘xfs_stack_trace’
    [CC]     xfs_inode.lo
xfs_inode.c: In function ‘xfs_validate_extents’:
xfs_inode.c:45: warning: implicit declaration of function ‘get_unaligned’
xfs_inode.c: In function ‘xfs_imap_to_bp’:
xfs_inode.c:149: warning: implicit declaration of function
‘XFS_BUFTARG_NAME’
xfs_inode.c: In function ‘xfs_iextents_copy’:
xfs_inode.c:1012: warning: implicit declaration of function ‘xfs_isilocked’
xfs_inode.c:1012: error: ‘XFS_ILOCK_SHARED’ undeclared (first use in
this function)
xfs_inode.c:1012: error: (Each undeclared identifier is reported only once
xfs_inode.c:1012: error: for each function it appears in.)
-- 
Bartosz Cisek
Admin

email: bartosz.cisek@xxxxxxxxxxxxxx
tel: +48 519 300 122

Nasza Klasa Sp. z o.o.,
ul. Gen. J. Bema 2, 50-265 Wrocław

Sąd Rejonowy dla Wrocławia - Fabrycznej we Wrocławiu,
VI Wydział Gospodarczy Krajowego Rejestru Sądowego,
nr KRS:0000289629, NIP:898-21-22-104 REGON:020586020,
Kapitał zakładowy: 67 850,00 PLN

<Prev in Thread] Current Thread [Next in Thread>