Re: What's cooking in git.git (Oct 2013, #07; Mon, 28)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Karsten

Junio C Hamano <gitster@xxxxxxxxx> writes:

> * kb/fast-hashmap (2013-10-22) 12 commits
>  - remove old hash.[ch] implementation
>  - read-cache.c: fix memory leaks caused by removed cache entries

I found more valgrind breakage related to this commit, in t2101.[3567]
(sorry for only reporting them so late, I probably missed them in the
last run).  E.g. I get this:

  $ ./t2101-update-index-reupdate.sh --valgrind-only=3
  ok 1 - update-index --add
  ok 2 - update-index --again

  expecting success: git update-index --remove --again &&
           git ls-files -s >current &&
           cmp current expected
  ==21665== Invalid read of size 1
  ==21665==    at 0x4C2C762: __GI_strlen (mc_replace_strmem.c:405)
  ==21665==    by 0x484B0E: update_one (update-index.c:305)
  ==21665==    by 0x485466: do_reupdate (update-index.c:582)
  ==21665==    by 0x4858FB: reupdate_callback (update-index.c:696)
  ==21665==    by 0x4EB5E7: get_value (parse-options.c:96)
  ==21665==    by 0x4EBEC5: parse_long_opt (parse-options.c:302)
  ==21665==    by 0x4EC5CD: parse_options_step (parse-options.c:474)
  ==21665==    by 0x486115: cmd_update_index (update-index.c:824)
  ==21665==    by 0x405999: run_builtin (git.c:314)
  ==21665==    by 0x405B2C: handle_internal_command (git.c:477)
  ==21665==    by 0x405C46: run_argv (git.c:523)
  ==21665==    by 0x405DE2: main (git.c:606)
  ==21665==  Address 0x5bee774 is 84 bytes inside a block of size 90 free'd
  ==21665==    at 0x4C2ACDA: free (vg_replace_malloc.c:468)
  ==21665==    by 0x4F9360: remove_index_entry_at (read-cache.c:482)
  ==21665==    by 0x4F9536: remove_file_from_index (read-cache.c:522)
  ==21665==    by 0x4841DF: remove_one_path (update-index.c:68)
  ==21665==    by 0x48422E: process_lstat_error (update-index.c:83)
  ==21665==    by 0x4846BB: process_path (update-index.c:211)
  ==21665==    by 0x484AC2: update_one (update-index.c:301)
  ==21665==    by 0x485466: do_reupdate (update-index.c:582)
  ==21665==    by 0x4858FB: reupdate_callback (update-index.c:696)
  ==21665==    by 0x4EB5E7: get_value (parse-options.c:96)
  ==21665==    by 0x4EBEC5: parse_long_opt (parse-options.c:302)
  ==21665==    by 0x4EC5CD: parse_options_step (parse-options.c:474)
  [...]
  not ok 3 - update-index --remove --again
  #       git update-index --remove --again &&
  #                git ls-files -s >current &&
  #                cmp current expected

  ok 4 - first commit
  ok 5 - update-index again
  ok 6 - update-index --update from subdir
  ok 7 - update-index --update with pathspec
  # failed 1 among 7 test(s)
  1..7

The errors for tests 5-7 look like they're the same piece of code
breaking.

-- 
Thomas Rast
tr@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]