On Sat, Oct 01, 2016 at 06:00:06PM +0200, Christoph Biedl wrote:
>
> Using the binary packages at snapshot.d.o leads to the assumption this
> was introduced in 1.42.9-3 (1.42.9-2 is okay) and fixed in 1.43-1
> (1.43~WIP.2016.03.15-2 still fails). I could not reproduce this by
> compiling e2fsck from git, so I could not use git bisect to identify
> the actual changes. A diff of the sources did not reveal anything
> obvious.
>
> Using gdb on a re-build of 1.42.12-2 gave the following backtrace:
Hmm.... so if you build e2fsprogs 1.42.12 or 1.42.13 out of git, you
can't reproduce it. But if you build 1.42.12-2 from the debian soures
(presumably using dpkg-buildpackage) it does reproduce? Is that correct?
> So I fear some previous statements disturb an internal buffer. And
> as long as the actual cause is unknown, I am concerned this bug still
> might be there, just no longer manifests this way. And I'm interested
> in getting this fixed in an upcoming stable point release.
Two experiments if you could try them.
1) Create a file, debian/rules.custom which contains the singe line
"SKIP_DIETLIBC = yes". Then rebuild 1.42.12-2 and see if the problem
goes away.
One of the things which we dropped in 1.43's debian rules file was
trying to use dietlibc to make the installation and e2fsck.static
binaries smaller. As I recall it was due to random failures on
different architectures.
2) If the problem is still reproducing, can you try using "valgrind"
to see if that shows up something useful.
> Also I am willing to do further tests as long as they are feasible: A
> full dpkg-buildpackage takes some 30 minutes so I'd like to avoid
> having to do this ten times in a row.
It's possible to speed up dpkg-buildpackage by creating a
debian/rules.custom file that contains:
SKIP_BF = yes
SKIP_UDEB = yes
(You could also add "SKIP_STATIC = yes", but that will probably make
the problem go away, and result in an e2fsck.static which (a) doesn't
use dietlibc, but which (b) still links dynamically with libc
--- although not the other e2fsprogs libaries.)
Cheers,
- Ted