git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] tig-0.14

From
TSTilo Schwarz <tilo@tilo-schwarz.de>
Date
Feb 21, 2009, 17:35 UTC
Message-ID
<op.uppptmu7a8ed4e@dellschleppa>
In-Reply-To
<2c6b72b30902201535q2466b8fbtce746a5263ebf320@mail.gmail.com>

On Sat, 21 Feb 2009 00:35:59 +0100, Jonas Fonseca <jonas.fonseca@gmail.com> wrote:

[...]
> OK, I have added the begining structure for a branch view, bound to
> 'H' by default. It does not support any actions besides refreshing and
> viewing the branch history. So there is still some work to achieve the
> easy access to branch commands.
That's really nice!
>> BTW, is the git list the right list to discuss bugs / patches for tig?
>
> Yes please.
Ok, here we go ;-).

I can trigger a SIGSEGV in da8b99da8f4dc5512c23154ec6c0aa7d3c313555 like this, using the tig repo itself:

- Start ./tig --all
- Enter the new branch view pressing 'H'
- Add a new branch foo using git checkout -b foo on some
   console or in tig using ':checkout -b foo'
- Press F5 in the branch view to reload
- Move cursor on the new branch foo
- Press ENTER
Then I get a SIGSEGV in line
6150                            if (ref->head)

(gdb) print *ref Cannot access memory at address 0x2d676974

#0 0x08056427 in main_draw (view=0x8060500, line=0x9b61638, lineno=0) at tig.c:6150 #1 0x0804d19d in draw_view_line (view=0x8060500, lineno=0) at tig.c:2111 #2 0x0804d269 in redraw_view_from (view=0x8060500, lineno=0) at tig.c:2141 #3 0x0804d2bf in redraw_view (view=0x8060500) at tig.c:2152 #4 0x0804f70b in open_view (prev=0x8062fa8, request=REQ_VIEW_MAIN, flags=OPEN_SPLIT) at tig.c:3055 #5 0x08053241 in branch_request (view=0x8062fa8, request=REQ_ENTER, line=0x9b6b038) at tig.c:4783 #6 0x0804f9df in view_driver (view=0x8062fa8, request=REQ_ENTER) at tig.c:3142 #7 0x080594a3 in main (argc=Cannot access memory at address 0x3

I tried to track this down, but was not successful yet (having seen tig.c the first time today). I looked in get_refs and read_ref, but couldn't nail it down up to now. It feels, as if the refresh does find and update the new branch foo, but the corresponding commit->refs are not properly updated (just guessing).

Best regards & thank you for tig!
     Tilo
Previous: Jonas FonsecaNext: Jonas Fonseca
Message 62 of 69 in “[ANNOUNCE] tig-0.14”
  1. Jonas FonsecaFeb 5, 2009
  2. bill lamFeb 6, 2009
  3. Jonas FonsecaFeb 6, 2009
  4. Sitaram ChamartyFeb 6, 2009
  5. Jonas FonsecaFeb 8, 2009
  6. showing SHA1 of parent commit in tig [was Re: [ANNOUNCE] tig-0.14Sitaram Chamarty, Feb 11, 2009
  7. Jonas FonsecaFeb 12, 2009
  8. Sitaram ChamartyFeb 12, 2009
  9. Jeff KingFeb 6, 2009
  10. Jonas FonsecaFeb 6, 2009
  11. Jakub NarebskiFeb 6, 2009
  12. Jonas FonsecaFeb 8, 2009
  13. Jeff KingFeb 7, 2009
  14. Junio C HamanoFeb 7, 2009
  15. david@lang.hmFeb 7, 2009
  16. Jonas FonsecaFeb 8, 2009
  17. Jonas FonsecaFeb 8, 2009
  18. Jeff KingFeb 8, 2009
  19. Jonas FonsecaFeb 8, 2009
  20. Jeff KingFeb 7, 2009
  21. Jonas FonsecaFeb 8, 2009
  22. Jeff KingFeb 8, 2009
  23. Jonas FonsecaFeb 8, 2009
  24. Mikael MagnussonFeb 7, 2009
  25. Peter BaumannFeb 9, 2009
  26. Jeff KingFeb 9, 2009
  27. Peter BaumannFeb 9, 2009
  28. Jonas FonsecaFeb 10, 2009
  29. Jari AaltoFeb 10, 2009
  30. Ted PavlicFeb 10, 2009
  31. Jonas FonsecaFeb 10, 2009
  32. Brian GernhardtFeb 10, 2009
  33. Stefan KarpinskiFeb 10, 2009
  34. Jonas FonsecaFeb 10, 2009
  35. Brian GernhardtFeb 10, 2009
  36. Jonas FonsecaFeb 10, 2009
  37. Brian GernhardtFeb 10, 2009
  38. Ted PavlicFeb 11, 2009
  39. Jonas FonsecaFeb 12, 2009
  40. Ted PavlicFeb 11, 2009
  41. Ted PavlicFeb 20, 2009
  42. Jonas FonsecaFeb 20, 2009
  43. Ted PavlicFeb 20, 2009
  44. Jonas FonsecaFeb 20, 2009
  45. Jonas FonsecaFeb 25, 2009
  46. Ted PavlicFeb 11, 2009
  47. Ted PavlicFeb 11, 2009
  48. Ted PavlicFeb 11, 2009
  49. Jonas FonsecaFeb 12, 2009
  50. Tilo SchwarzFeb 12, 2009
  51. Jonas FonsecaFeb 12, 2009
  52. Tilo SchwarzFeb 12, 2009
  53. Jonas FonsecaFeb 15, 2009
  54. Sitaram ChamartyFeb 16, 2009
  55. Jonas FonsecaFeb 16, 2009
  56. Sitaram ChamartyFeb 16, 2009
  57. Thomas AdamFeb 16, 2009
  58. Jonas FonsecaFeb 16, 2009
  59. Marco CostalbaFeb 17, 2009
  60. Tilo SchwarzFeb 16, 2009
  61. Jonas FonsecaFeb 20, 2009
  62. Tilo SchwarzFeb 21, 2009
  63. Jonas FonsecaFeb 21, 2009
  64. Tilo SchwarzFeb 21, 2009
  65. Tilo SchwarzFeb 16, 2009
  66. bill lamFeb 13, 2009
  67. Jonas FonsecaFeb 13, 2009
  68. bill lamFeb 14, 2009
  69. Jonas FonsecaFeb 15, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.