Thread (13 messages) flat view 13 messages, 4 authors, 2016-06-15

Re: git-fast-import crashes

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:41

Hi,

On Fri, 12 Oct 2007, Shawn O. Pearce wrote:
Shun Kei Leung [off-list ref] wrote:
quoted
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x64617469
in_window (win=0x5004d0, offset=3501) at sha1_file.c:701
701             off_t win_off = win->offset;
...
quoted
(gdb) print win
$1 = (struct pack_window *) 0x5004d0
(gdb) print *win
$2 = {
  next = 0x64617461,
  base = 0x20333936 <Address 0x20333936 out of bounds>,
  offset = 22523564414626158,
  len = 1685026675,
  last_used = 795894075,
  inuse_cnt = 0
}
Wow.  There's no way that struct pack_window is valid anymore.

[...] 

This looks like it is memory corruption (e.g. someone overwriting a 
free'd segment), but that sort of memory corruption is very hard to 
track down.
I found valgrind invaluable to find such errors.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help