Git development
 help / color / mirror / Atom feed
* git merge bus error
@ 2008-08-19 22:23 Lucas Carlson
  2008-08-19 23:49 ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Carlson @ 2008-08-19 22:23 UTC (permalink / raw)
  To: git

/usr/local/bin/git-merge: line 438: 19000 Bus error               git- 
merge-$strategy $common -- "$head_arg" "$@"

I have tried every merge strategy there is. It ends up leaving a .git/ 
index.lock file. I used git 1.5.6 and tried upgrading to 1.6.0. The  
only thing 1.6.0 did was hide this bus error message but I assume it  
still bus errors because there is a .git/index.lock file still.

Unfortunately the source code is proprietary so I can not let you try  
it on your own but let me know what I can run on my machine to help  
you guys track down this bus error.

-Lucas
http://rufy.com/

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

* Re: git merge bus error
  2008-08-19 22:23 git merge bus error Lucas Carlson
@ 2008-08-19 23:49 ` Shawn O. Pearce
  2008-08-20  0:00   ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2008-08-19 23:49 UTC (permalink / raw)
  To: Lucas Carlson; +Cc: git

Lucas Carlson <lucas.carlson@me.com> wrote:
> /usr/local/bin/git-merge: line 438: 19000 Bus error               git- 
> merge-$strategy $common -- "$head_arg" "$@"
>
> I have tried every merge strategy there is. It ends up leaving a .git/ 
> index.lock file. I used git 1.5.6 and tried upgrading to 1.6.0. The only 
> thing 1.6.0 did was hide this bus error message but I assume it still bus 
> errors because there is a .git/index.lock file still.
>
> Unfortunately the source code is proprietary so I can not let you try it 
> on your own but let me know what I can run on my machine to help you guys 
> track down this bus error.

Build git with debugging symbols enabled and run git merge from
1.6.0 under gdb.  If it gets a bus error we'll at least get a stack
trace in gdb and can see where we were when the corruption killed us.
Its a start.

If `gdb git merge` doesn't come up with the corruption then it is
the git-merge-recursive backend.  Try running it from the libexec
directory (see git --exec-path) under gdb and passing into it as
arguments:

	$(git merge-base HEAD $branch) -- HEAD $branch

where $branch is what you were giving to git merge in the first
place.

Again, let us know what the trace is so we can at least narrow
down where the corruption killed it.  Once we know more than just
"it dies" we'll probably be able to ask more interesting questions
to help narrow it down.

-- 
Shawn.

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

* Re: git merge bus error
  2008-08-19 23:49 ` Shawn O. Pearce
@ 2008-08-20  0:00   ` Junio C Hamano
  0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2008-08-20  0:00 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Lucas Carlson, git

"Shawn O. Pearce" <spearce@spearce.org> writes:

> Lucas Carlson <lucas.carlson@me.com> wrote:
>> /usr/local/bin/git-merge: line 438: 19000 Bus error               git- 
>> merge-$strategy $common -- "$head_arg" "$@"
>>
>> I have tried every merge strategy there is. It ends up leaving a .git/ 
>> index.lock file. I used git 1.5.6 and tried upgrading to 1.6.0. The only 
>> thing 1.6.0 did was hide this bus error message but I assume it still bus 
>> errors because there is a .git/index.lock file still.
>>
>> Unfortunately the source code is proprietary so I can not let you try it 
>> on your own but let me know what I can run on my machine to help you guys 
>> track down this bus error.
>
> Build git with debugging symbols enabled and run git merge from
> 1.6.0 under gdb.  If it gets a bus error we'll at least get a stack
> trace in gdb and can see where we were when the corruption killed us.
> Its a start.

With index.lock still present, anything that calls hold_locked_index()
would die().  I am curious how it gets sigbus instead.

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

end of thread, other threads:[~2008-08-20  0:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 22:23 git merge bus error Lucas Carlson
2008-08-19 23:49 ` Shawn O. Pearce
2008-08-20  0:00   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox