* Worrisome bug trend @ 2007-02-27 12:31 Junio C Hamano 2007-02-27 15:09 ` Randal L. Schwartz ` (5 more replies) 0 siblings, 6 replies; 14+ messages in thread From: Junio C Hamano @ 2007-02-27 12:31 UTC (permalink / raw) To: git I was reviewing the bugs we fixed since v1.5.0 and noticed almost all of them are ancient ones. We do have small number of bugs introduced by recently added commands and options, but I see quite a few that are from 2005. I take that as a sign that git hasn't been exercised well and yet more ancient bugs are sleeping, waiting to be triggered, not as a sign that we are very careful and adding only small number of risky new code in the releases. Which is kind of depressing... The following table shows each bug fixed since v1.5.0, and the commit that introduced the bug. Many bugs are attributed to the first commit that introduced the feature. 20276889 (daemon socksetup() does not set FD_CLOEXEC) a87e8be2 Jul 13 2005 de6f0def (no-trivial-merge) 6ea23343 Mar 18 2006 f4421325 (blame with missing parameter) cee7f245 Oct 19 2006 185c975f (trust_executable_bit not trusting too much) 3e09cdfd Oct 11 2005 256c3fe6 (rev-list commit encoding) 52883fbd Dec 25 2006 75b62b48 (combine-diff broken cast) e702496e Aug 23 2006 (memcpy->hashcpy) funny thing is that another similar cast is correct. 8ab40a20 (show-ref --verify) 26cdd1e7 Dec 17 2006 c06d2daa (format-patch filename length) 0acfc972 Jul 5 2005 50892777 (diff --git a//etc/inittab) 65056021 Apr 28 2006 (first built-in diff) ab242f80 rerere (find_conflict skips adjacent) 658f3650 Dec 20 2006 (inception, C rewrite) 12891727 rerere (find_conflict uses symlinks) 658f3650 Dec 20 2006 (inception, C rewrite) 8389b52b Jan 28 2006 (original Perl version) ffa84ffb (pack-object fixed arglen) 8d1d8f83 Sep 06 2006 308efc10 (merge-index symlink handling) 54dd99a1 Dec 02 2005 17cd29b2 (merge-recursive symlink handling) 3af244ca Jul 27 2006 4fc970c4 (diff --cc symlink while merging) ea726d02 Jan 28 2006 (teach --cc to diff-files) 4e5104c1 (git-remote command did not like dots in name) e194cd1e Jan 03 2007 34fc5cef (mailinfo choke with too long a line) c5f7674a Jul 16 2005 (inception) ee24ee55 (diff --cc int vs size_t) 4fc970c4 Feb 25 2007 63e50d49 (apply fixes whitespace errors of context lines) d0c25035 Sep 23 2006 (inception of feature) ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 12:31 Worrisome bug trend Junio C Hamano @ 2007-02-27 15:09 ` Randal L. Schwartz 2007-02-27 20:22 ` Junio C Hamano 2007-02-27 15:36 ` Andy Parkins ` (4 subsequent siblings) 5 siblings, 1 reply; 14+ messages in thread From: Randal L. Schwartz @ 2007-02-27 15:09 UTC (permalink / raw) To: Junio C Hamano; +Cc: git >>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes: Junio> Which is kind of depressing... Maybe if you looked at who has been reporting the bugs, you'd find a different story. It's quite possible that the "inner circle" all used git in a homogeneous way, not performing every possible advertised operation, but now that git is being used by more people, older bugs are getting revealed because people really are using it out there in some nicely unique (or perhaps boneheaded :) ways. Any quick stats on diversity of bug submitters? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 15:09 ` Randal L. Schwartz @ 2007-02-27 20:22 ` Junio C Hamano 2007-02-27 20:30 ` Johannes Schindelin ` (3 more replies) 0 siblings, 4 replies; 14+ messages in thread From: Junio C Hamano @ 2007-02-27 20:22 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: git merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes: > > Junio> Which is kind of depressing... > > Maybe if you looked at who has been reporting the bugs, you'd > find a different story. It's quite possible that the "inner > circle" all used git in a homogeneous way, not performing > every possible advertised operation, but now that git is being > used by more people, older bugs are getting revealed because > people really are using it out there in some nicely unique (or > perhaps boneheaded :) ways. > > Any quick stats on diversity of bug submitters? I do not know how others noticed them but I am guessing most of them were found out by hitting a breakage in real life use. Annotated list of reporters and context of discovery is attached at the end. Observations. - There are a handful 'missing argument validation and erroring out' bugs. People in the know tend not make such a mistake to trigger these bugs, so it is a sign that git is being used by wider population that these bugs are surfacing now. - A few leaks and hardwired limits are signs that the code was not used for heavy-duty settings back when it was written, but it is now. - Tracking symlinks were added quite early by explicit need to support them in the kernel archive, and the bug was there ever since and nobody noticed. Maybe the need for tracking symlinks in SCM were real but they never got changed by more than one party (not needing merges). - There are a few "diff --cc" fixes. Maybe not as many people perform "interesting" merges as the effort spent on writing the --cc codde. - rerere's skipping adjacent paths were there from the beginning of C-rewrite. It's either rerere is not as widely used, or conflicting merges are not so frequent in real life to trigger this, or maybe a little bit of both. ---------------------------------------------------------------- 20276889 (daemon socksetup() does not set FD_CLOEXEC) a87e8be2 Jul 13 2005 Alex Julliard. f4421325 (blame with missing parameter) cee7f245 Oct 19 2006 Tommi Kyntola. 256c3fe6 (rev-list commit encoding) 52883fbd Dec 25 2006 Fredrik Kuivinen. 8ab40a20 (show-ref --verify) 26cdd1e7 Dec 17 2006 Dmitry V Levin. c06d2daa (format-patch filename length) 0acfc972 Jul 5 2005 Robin Rosenberg, presumaby by noticing breakage while dealing with a foreign SCM import. ffa84ffb (pack-object fixed arglen) 8d1d8f83 Sep 06 2006 Roland Dreier, by noticing breakage. 4e5104c1 (git-remote command did not like dots in name) e194cd1e Jan 03 2007 Many, by noticing breakage in real use. 34fc5cef (mailinfo choke with too long a line) c5f7674a Jul 16 2005 (inception) Linus and Eric Biederman, by noticing breakage. ee24ee55 (diff --cc int vs size_t) 4fc970c4 Feb 25 2007 Jim Meyering, code inspection. de6f0def (no-trivial-merge) 6ea23343 Mar 18 2006 Me, while working on merge-subtree, by noticing breakage. 185c975f (trust_executable_bit not trusting too much) 3e09cdfd Oct 11 2005 Johannes Sixt, presumably while working on MinGW port. 75b62b48 (combine-diff broken cast) e702496e Aug 23 2006 (memcpy->hashcpy) funny thing is that another similar cast is correct. Johannes Schindelin. 50892777 (diff --git a//etc/inittab) 65056021 Apr 28 2006 (first built-in diff) Me, while looking at recent "diff --no-index" series, by noticing breakage. ab242f80 rerere (find_conflict skips adjacent) 658f3650 Dec 20 2006 (inception, C rewrite) Me, while diagnosing 12891727 below, by code inspection. 12891727 rerere (find_conflict uses symlinks) 658f3650 Dec 20 2006 (inception, C rewrite) 8389b52b Jan 28 2006 (original Perl version) Me, while merging 'maint' into 'master', by noticing breakage. 308efc10 (merge-index symlink handling) 54dd99a1 Dec 02 2005 Me, while merging 'maint' into 'master', by noticing breakage. 17cd29b2 (merge-recursive symlink handling) 3af244ca Jul 27 2006 Me, while merging 'maint' into 'master', by noticing breakage. 4fc970c4 (diff --cc symlink while merging) ea726d02 Jan 28 2006 (teach --cc to diff-files) Me, while merging 'git-gui' into git.git, by noticing breakage. 63e50d49 (apply fixes whitespace errors of context lines) d0c25035 Sep 23 2006 (inception of feature) Me, while applying clean-up series from Nico last night, by noticing breakage. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 20:22 ` Junio C Hamano @ 2007-02-27 20:30 ` Johannes Schindelin 2007-02-27 20:41 ` Alexandre Julliard ` (2 subsequent siblings) 3 siblings, 0 replies; 14+ messages in thread From: Johannes Schindelin @ 2007-02-27 20:30 UTC (permalink / raw) To: Junio C Hamano; +Cc: Randal L. Schwartz, git Hi, On Tue, 27 Feb 2007, Junio C Hamano wrote: > 75b62b48 (combine-diff broken cast) > e702496e Aug 23 2006 (memcpy->hashcpy) > funny thing is that another similar cast is correct. > > Johannes Schindelin. ... while working on some diff --no-index code. (Strangely enough.) Ciao, Dscho ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 20:22 ` Junio C Hamano 2007-02-27 20:30 ` Johannes Schindelin @ 2007-02-27 20:41 ` Alexandre Julliard 2007-02-27 21:30 ` Dmitry V. Levin 2007-03-03 2:28 ` Jakub Narebski 3 siblings, 0 replies; 14+ messages in thread From: Alexandre Julliard @ 2007-02-27 20:41 UTC (permalink / raw) To: Junio C Hamano; +Cc: Randal L. Schwartz, git Junio C Hamano <junkio@cox.net> writes: > 20276889 (daemon socksetup() does not set FD_CLOEXEC) > a87e8be2 Jul 13 2005 > > Alex Julliard. ... by noticing breakage when upgrading to 1.5.0. -- Alexandre Julliard julliard@winehq.org ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 20:22 ` Junio C Hamano 2007-02-27 20:30 ` Johannes Schindelin 2007-02-27 20:41 ` Alexandre Julliard @ 2007-02-27 21:30 ` Dmitry V. Levin 2007-03-03 2:28 ` Jakub Narebski 3 siblings, 0 replies; 14+ messages in thread From: Dmitry V. Levin @ 2007-02-27 21:30 UTC (permalink / raw) To: git [-- Attachment #1: Type: text/plain, Size: 235 bytes --] On Tue, Feb 27, 2007 at 12:22:43PM -0800, Junio C Hamano wrote: [...] > 8ab40a20 (show-ref --verify) > 26cdd1e7 Dec 17 2006 > > Dmitry V Levin. ... while playing with new utilities (introduced after v1.4.4.x). -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 20:22 ` Junio C Hamano ` (2 preceding siblings ...) 2007-02-27 21:30 ` Dmitry V. Levin @ 2007-03-03 2:28 ` Jakub Narebski 3 siblings, 0 replies; 14+ messages in thread From: Jakub Narebski @ 2007-03-03 2:28 UTC (permalink / raw) To: git Junio C Hamano wrote: > 50892777 (diff --git a//etc/inittab) > 65056021 Apr 28 2006 (first built-in diff) > > Me, while looking at recent "diff --no-index" series, by noticing > breakage. By the way, I'm not sure if it is _not_ an error, a way to distinguish between in-tree path that begins from top of repository, and absolute out of tree path which beings in root '/'. But perhaps /etc/inittab instead of a//etc/inttab or a/etc/inittab would be better. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 12:31 Worrisome bug trend Junio C Hamano 2007-02-27 15:09 ` Randal L. Schwartz @ 2007-02-27 15:36 ` Andy Parkins 2007-02-27 16:00 ` Linus Torvalds ` (3 subsequent siblings) 5 siblings, 0 replies; 14+ messages in thread From: Andy Parkins @ 2007-02-27 15:36 UTC (permalink / raw) To: git; +Cc: Junio C Hamano On Tuesday 2007 February 27 12:31, Junio C Hamano wrote: > Which is kind of depressing... Maybe not. It's my feeling that the traffic on the git list has taken a significant jump lately. There have been a lot of new users asking questions. Could it be that more users equals more bug reports? Could it also be that new users tend to use git (let's put this politely) "outside of the box". The users popping up on the list will be a small percentage of actually using/adopting git. I think it's great, not depressing. I'm a relatively new user of git, and just in the time I've been lurking the bugs/issues that affect me have dropped significantly. As the philosopher says: don't worry, be happy. :-) Andy -- Dr Andy Parkins, M Eng (hons), MIET andyparkins@gmail.com ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 12:31 Worrisome bug trend Junio C Hamano 2007-02-27 15:09 ` Randal L. Schwartz 2007-02-27 15:36 ` Andy Parkins @ 2007-02-27 16:00 ` Linus Torvalds 2007-02-27 20:00 ` Johannes Schindelin ` (2 subsequent siblings) 5 siblings, 0 replies; 14+ messages in thread From: Linus Torvalds @ 2007-02-27 16:00 UTC (permalink / raw) To: Junio C Hamano; +Cc: git On Tue, 27 Feb 2007, Junio C Hamano wrote: > > I take that as a sign that git hasn't been exercised well and > yet more ancient bugs are sleeping, waiting to be triggered, not > as a sign that we are very careful and adding only small number > of risky new code in the releases. I'd say that it's good news. I'd be a lot more worried if there is a big rash of *new* bugs being introduced, rather than small and subtle *old* bugs being fixed. There were a number of "December, 2006" bugs there, and I'd worry more about those. The old bugs were all fairly obscure (face it, nobody actually uses SCM's to track symlinks, because symlinks are not historically tracked by most SCM's). And the _really_ old bugs (eg the mailinfo one) were either features that you'd never use on Unix anyway (trust_executable_bit) and thus haven't gotten any testing, or were about over-long buffers that mostly wouldn't realistically trigger in practice (ie lack of coverage). Finding bugs is good. Some of it may well be due to just having more users. And much of it is probably because everybody has bugs - but absolutely none of the bugs on that list looked even remotely like a "we'd screw up the repository". They were all pretty much harmless details. Linus ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 12:31 Worrisome bug trend Junio C Hamano ` (2 preceding siblings ...) 2007-02-27 16:00 ` Linus Torvalds @ 2007-02-27 20:00 ` Johannes Schindelin 2007-02-27 20:25 ` Sam Vilain 2007-02-27 21:07 ` Robin Rosenberg 5 siblings, 0 replies; 14+ messages in thread From: Johannes Schindelin @ 2007-02-27 20:00 UTC (permalink / raw) To: Junio C Hamano; +Cc: git Hi, On Tue, 27 Feb 2007, Junio C Hamano wrote: > I was reviewing the bugs we fixed since v1.5.0 and noticed almost all of > them are ancient ones. We do have small number of bugs introduced by > recently added commands and options, but I see quite a few that are from > 2005. I tend to agree with all the answers that this trend is to be expected. Especially since we seem to attract more and more users who are unable or unwilling to fix the bugs themselves (up until recently, most bug reports seemed to me to be accompanied by patches). So, it does not appear worrisome to me. However, I would like to see people thinking about how to teach "sparse" to catch those kind of errors so that we can actually learn in an efficient way from our mistakes. For example, I refuse to believe that an error like checking int against ssize_t cannot be found by "sparse". Ciao, Dscho ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 12:31 Worrisome bug trend Junio C Hamano ` (3 preceding siblings ...) 2007-02-27 20:00 ` Johannes Schindelin @ 2007-02-27 20:25 ` Sam Vilain 2007-02-27 20:42 ` Junio C Hamano 2007-02-27 21:07 ` Robin Rosenberg 5 siblings, 1 reply; 14+ messages in thread From: Sam Vilain @ 2007-02-27 20:25 UTC (permalink / raw) To: Junio C Hamano; +Cc: git Junio C Hamano wrote: > I take that as a sign that git hasn't been exercised well and > yet more ancient bugs are sleeping, waiting to be triggered, not > as a sign that we are very careful and adding only small number > of risky new code in the releases. > No! It's a sign that there aren't enough tests :) Maybe investigate the coverage of the test suite? Sam. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 20:25 ` Sam Vilain @ 2007-02-27 20:42 ` Junio C Hamano 2007-02-27 20:44 ` Johannes Schindelin 0 siblings, 1 reply; 14+ messages in thread From: Junio C Hamano @ 2007-02-27 20:42 UTC (permalink / raw) To: Sam Vilain; +Cc: git Sam Vilain <sam@vilain.net> writes: > Junio C Hamano wrote: >> I take that as a sign that git hasn't been exercised well and >> yet more ancient bugs are sleeping, waiting to be triggered, not >> as a sign that we are very careful and adding only small number >> of risky new code in the releases. >> > > No! It's a sign that there aren't enough tests :) > > Maybe investigate the coverage of the test suite? I know we cover most of the success (expected) cases for things we care about, but at the same time I personally find that tests for failure cases (insane input, dataset expected to fail) are missing. We do not need investigation. We need a volunteer. And perhaps a new patch/feature acceptance criteria that requires both expected behaviour and expected failure tests, but I am lazy ;-). ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 20:42 ` Junio C Hamano @ 2007-02-27 20:44 ` Johannes Schindelin 0 siblings, 0 replies; 14+ messages in thread From: Johannes Schindelin @ 2007-02-27 20:44 UTC (permalink / raw) To: Junio C Hamano; +Cc: Sam Vilain, git Hi, On Tue, 27 Feb 2007, Junio C Hamano wrote: > Sam Vilain <sam@vilain.net> writes: > > > Junio C Hamano wrote: > >> I take that as a sign that git hasn't been exercised well and > >> yet more ancient bugs are sleeping, waiting to be triggered, not > >> as a sign that we are very careful and adding only small number > >> of risky new code in the releases. > >> > > > > No! It's a sign that there aren't enough tests :) > > > > Maybe investigate the coverage of the test suite? > > I know we cover most of the success (expected) cases for things > we care about, but at the same time I personally find that tests > for failure cases (insane input, dataset expected to fail) are > missing. > > We do not need investigation. We need a volunteer. Maybe a Summer of Code project? > And perhaps a new patch/feature acceptance criteria that requires both > expected behaviour and expected failure tests, but I am lazy ;-). I think that's okay. Many, many new features and bug fixes come with tests. I think that we do not have _few_ tests. At least not comparing to other projects (especially commercial ones...). Ciao, Dscho ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Worrisome bug trend 2007-02-27 12:31 Worrisome bug trend Junio C Hamano ` (4 preceding siblings ...) 2007-02-27 20:25 ` Sam Vilain @ 2007-02-27 21:07 ` Robin Rosenberg 5 siblings, 0 replies; 14+ messages in thread From: Robin Rosenberg @ 2007-02-27 21:07 UTC (permalink / raw) To: Junio C Hamano; +Cc: git tisdag 27 februari 2007 13:31 skrev Junio C Hamano: > I was reviewing the bugs we fixed since v1.5.0 and noticed > almost all of them are ancient ones. We do have small number of > bugs introduced by recently added commands and options, but I > see quite a few that are from 2005. > > I take that as a sign that git hasn't been exercised well and > yet more ancient bugs are sleeping, waiting to be triggered, not > as a sign that we are very careful and adding only small number > of risky new code in the releases. > > Which is kind of depressing... When bugs gets fixed and reappear, that's the time to start worry. That old bugs gets fixed is a very good sign. It means Git is being tested by users that care. Git is very feature rich and considering that, it's amazing that is isn't completly bugridden with a 10K known unfixed bugs. That would be depressing, the current state isn't. -- robin ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-03-03 2:36 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-02-27 12:31 Worrisome bug trend Junio C Hamano 2007-02-27 15:09 ` Randal L. Schwartz 2007-02-27 20:22 ` Junio C Hamano 2007-02-27 20:30 ` Johannes Schindelin 2007-02-27 20:41 ` Alexandre Julliard 2007-02-27 21:30 ` Dmitry V. Levin 2007-03-03 2:28 ` Jakub Narebski 2007-02-27 15:36 ` Andy Parkins 2007-02-27 16:00 ` Linus Torvalds 2007-02-27 20:00 ` Johannes Schindelin 2007-02-27 20:25 ` Sam Vilain 2007-02-27 20:42 ` Junio C Hamano 2007-02-27 20:44 ` Johannes Schindelin 2007-02-27 21:07 ` Robin Rosenberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).