git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josh ben Jore <jbenjore@whitepages.com>
To: Clemens Buchacher <drizzd@aon.at>
Cc: Git <git@vger.kernel.org>
Subject: Re: Null deref in recursive merge in df73af5f667a479764d2b2195cb0cb60b0b89e3d
Date: Wed, 29 Jul 2009 13:45:00 -0700	[thread overview]
Message-ID: <C69602DC.61D6D%jbenjore@whitepages.com> (raw)
In-Reply-To: <20090729161030.GA3848@localhost>

On 7/29/09 9:10 AM, "Clemens Buchacher" <drizzd@aon.at> wrote:
> Hi,
> 
> On Tue, Jul 28, 2009 at 03:23:00PM -0700, Josh ben Jore wrote:
> [...]
>>   CONFLICT (rename/add): Rename
>> config/conf/target/dev-ubuntu/wpn_rails/appserver.yml->config/conf/target/dev
>> /wpn_rails/appserver.yml
>> in Temporary merge branch 1. config/conf/target/dev/wpn_rails/appse2
>>   Adding as config/conf/target/dev/wpn_rails/appserver.yml~Temporary merge
>> branch 2 instead
>>   Skipped config/conf/target/dev/wpn_rails/appserver.yml (merged same as
>> existing)
> [...]
>>   There are unmerged index entries:
>>   2 config/conf/target/dev/wpn_rails/appserver.yml
>>   3 config/conf/target/dev/wpn_rails/appserver.yml
>>   Merging:
>>   virtual merged tree
>>   e4a886b Adding legacy click log processing scripts
>>   found 1 common ancestor(s):
>>   09fb055 Merge commit 'rel_090630_prod_02'
>> Segmentation fault
> 
> Yeah, if process_entry leaves unmerged entries, write_tree_from_memory will
> return NULL. I can reproduce with the following script (same principle as
> t7405).
> 
> Clemens
> ---
> 
> diff --git a/t/t6035-merge-recursive-ra.sh b/t/t6035-merge-recursive-ra.sh
> new file mode 100755

Thank you for the unit test. It fails as expected but I didn't verify that
it failed with the segfault as I'm experiencing. Your explanation of "There
are unmerged index entries:" is interesting. I've taken that as the focal
point for working around the bug in my repo with the unfixed software.

I've also started getting acquainted with the code in merge_tree to see if I
can identify the problem. I do not understand the se_stage values of 0 vs 2
or 3. These are not defined as constants or documented in the code. I'm
viewing them as magic for now. :-/

Josh

  reply	other threads:[~2009-07-29 20:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28 22:23 Fw: Null deref in recursive merge in df73af5f667a479764d2b2195cb0cb60b0b89e3d Josh ben Jore
2009-07-29 14:11 ` Josh ben Jore
2009-07-30  7:03   ` Junio C Hamano
2009-07-30  7:24     ` Josh ben Jore
2009-07-30  7:54       ` Junio C Hamano
2009-07-31  0:38     ` [PATCH] merge-recursive: don't segfault while handling rename clashes Junio C Hamano
     [not found]     ` <7viqhaipg0.fsf@alter.siamese.dyndns.org>
2009-07-30  8:00       ` Null deref in recursive merge in df73af5f667a479764d2b2195cb0cb60b0b89e3d Johannes Schindelin
2009-08-18 21:35       ` Fredrik Kuivinen
2009-07-29 16:10 ` Fw: " Clemens Buchacher
2009-07-29 20:45   ` Josh ben Jore [this message]
2009-07-30  6:34   ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2009-07-28 21:56 Josh ben Jore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C69602DC.61D6D%jbenjore@whitepages.com \
    --to=jbenjore@whitepages.com \
    --cc=drizzd@aon.at \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).