Skip to contentSkip to conversation

segfault in "blkparse -s"?

DISCUSSION M. Edward (Ed) Borasky 2 participants 3 messages May 18, 2008

lore
Share & tools
lore
#0 lore raw

Environment: Gentoo Linux 2.6.25 kernel, AMD Athlon64 X2 dual core, 4 GB of RAM, single disk drive sda, reiserfs filesystems.

I started up blktrace with "blktrace -d /dev/sda". Version is

$ blktrace -V
blktrace version 0.99.3

Then I recompiled php to generate some I/O. Then I stopped blktrace and ran blkparse. Version is

$ blkparse -V
blkparse version 0.99.3

Both "blkparse sda" and "blkparse -t sda" run fine, but "blkparse -s sda" segfaults:

$ blkparse -s sda > blkparse.out
Segmentation fault

It generates partial output before crashing.

I'm planning to try this again under gdb to get a traceback. The Gentoo "btrace" package is sys-block/btrace-0.0.20071210202527 -- if this is too old, let me know and I'll install something more recent from the repositories.

#1 lore raw
Quoted 18 lines · M. Edward (Ed) Borasky

Environment: Gentoo Linux 2.6.25 kernel, AMD Athlon64 X2 dual core, 4 GB of RAM, single disk drive sda, reiserfs filesystems.

I started up blktrace with "blktrace -d /dev/sda". Version is

$ blktrace -V
blktrace version 0.99.3

Then I recompiled php to generate some I/O. Then I stopped blktrace and ran blkparse. Version is

$ blkparse -V
blkparse version 0.99.3

Both "blkparse sda" and "blkparse -t sda" run fine, but "blkparse -s sda" segfaults:

$ blkparse -s sda > blkparse.out
Segmentation fault
Quoted 6 lines

It generates partial output before crashing.

I'm planning to try this again under gdb to get a traceback. The Gentoo "btrace" package is sys-block/btrace-0.0.20071210202527 -- if this is too old, let me know and I'll install something more recent from the repositories.

Could you send me the blktrace output files so that I can reproduce? You could try self-compiling

http://brick.kernel.dk/snaps/blktrace-git-latest.tar.gz

just to see if it reproduces in current HEAD.

Signature · 1 line
Jens Axboe
#2 lore raw
In reply to M. Edward (Ed) Borasky
Quoted 26 lines · Jens Axboe
Quoted 18 lines · M. Edward (Ed) Borasky

Environment: Gentoo Linux 2.6.25 kernel, AMD Athlon64 X2 dual core, 4 GB of RAM, single disk drive sda, reiserfs filesystems.

I started up blktrace with "blktrace -d /dev/sda". Version is

$ blktrace -V
blktrace version 0.99.3

Then I recompiled php to generate some I/O. Then I stopped blktrace and ran blkparse. Version is

$ blkparse -V
blkparse version 0.99.3

Both "blkparse sda" and "blkparse -t sda" run fine, but "blkparse -s sda" segfaults:

$ blkparse -s sda > blkparse.out
Segmentation fault
Quoted 6 lines

It generates partial output before crashing.

I'm planning to try this again under gdb to get a traceback. The Gentoo "btrace" package is sys-block/btrace-0.0.20071210202527 -- if this is too old, let me know and I'll install something more recent from the repositories.

Quoted 6 lines

Could you send me the blktrace output files so that I can reproduce? You could try self-compiling

http://brick.kernel.dk/snaps/blktrace-git-latest.tar.gz

just to see if it reproduces in current HEAD.

This turned out to be missing notify events, for some (as of yet) undiagnosed reason. I committed a fix to handle those, it's not unlikely that we COULD miss a notify event and we should cope with that anyway.

Signature · 1 line
Jens Axboe