git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] git bisect visualize crash
@ 2008-12-03 11:20 Alejandro Riveira
  2008-12-04 14:34 ` [PATCH] gitk: fix 'can't read "notflag"' Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Riveira @ 2008-12-03 11:20 UTC (permalink / raw)
  To: git

i'm using ubuntu 8.10 and git bisect visualize is crashing.
Noticed when bisecting the kernel but it is easily reproducible

in git repository as of today

$ git bisect bad
$ git bisect good HEAD~20

$ git bisect visualize                                                                  (03-12 12:16)
Error in startup script: can't read "notflag": no such variable
    while executing
"expr {!$notflag}"
    ("--not" arm line 2)
    invoked from within
"switch -glob -- $arg {
            "-d" -
            "--date-order" {
                set vdatemode($n) 1
                # remove from origargs in case we hit an unknown option
                set origarg..."
    (procedure "parseviewargs" line 21)
    invoked from within
"parseviewargs $view $args"
    (procedure "start_rev_list" line 27)
    invoked from within
"start_rev_list $curview"
    (procedure "getcommits" line 5)
    invoked from within
"getcommits {}"
    (file "/usr/local/bin/gitk" line 10897)

$ git --version
git version 1.6.1.rc1
$

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] gitk: fix 'can't read "notflag"'
  2008-12-03 11:20 [BUG] git bisect visualize crash Alejandro Riveira
@ 2008-12-04 14:34 ` Johannes Schindelin
  2008-12-04 15:09   ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2008-12-04 14:34 UTC (permalink / raw)
  To: Paul Mackerras, Alejandro Riveira; +Cc: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 973 bytes --]


Sometimes, when calling git bisect visualize, parameters including
a "--not" are passed to gitk, triggering an uninitialized-variable bug
introduced in ee66e089(gitk: Make updates go faster).

Noticed by Alejandro Riveira Fernández.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---

	On Wed, 3 Dec 2008, Alejandro Riveira wrote:

	> $ git bisect visualize                                                                  (03-12 12:16)
	> Error in startup script: can't read "notflag": no such variable

	Alejandro was good enough to test this fix.

 gitk-git/gitk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index 3353f4a..b18bdf0 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -139,6 +139,7 @@ proc parseviewargs {n arglist} {
     set origargs $arglist
     set allknown 1
     set filtered 0
+    set notflag 0
     set i -1
     foreach arg $arglist {
 	incr i
-- 
1.6.0.4.1189.g8876f

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitk: fix 'can't read "notflag"'
  2008-12-04 14:34 ` [PATCH] gitk: fix 'can't read "notflag"' Johannes Schindelin
@ 2008-12-04 15:09   ` Johannes Schindelin
  2008-12-04 15:59     ` Johannes Sixt
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2008-12-04 15:09 UTC (permalink / raw)
  To: Paul Mackerras, Alejandro Riveira; +Cc: git

Hi,

On Thu, 4 Dec 2008, Johannes Schindelin wrote:

> diff --git a/gitk-git/gitk b/gitk-git/gitk

D'oh.  Please apply with -p2.

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitk: fix 'can't read "notflag"'
  2008-12-04 15:09   ` Johannes Schindelin
@ 2008-12-04 15:59     ` Johannes Sixt
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Sixt @ 2008-12-04 15:59 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Paul Mackerras, Alejandro Riveira, git

Johannes Schindelin schrieb:
> On Thu, 4 Dec 2008, Johannes Schindelin wrote:
> 
>> diff --git a/gitk-git/gitk b/gitk-git/gitk
> 
> D'oh.  Please apply with -p2.

No; pull -s subtree before you write this patch ;) It's already fixed in
upstream gitk.

-- Hannes

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-04 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 11:20 [BUG] git bisect visualize crash Alejandro Riveira
2008-12-04 14:34 ` [PATCH] gitk: fix 'can't read "notflag"' Johannes Schindelin
2008-12-04 15:09   ` Johannes Schindelin
2008-12-04 15:59     ` Johannes Sixt

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).