Comment 16 for bug 367545

Revision history for this message
Rune Philosof (olberd) wrote :

Finally got around to recompiling without optimizations.

Starting program: /usr/bin/python /usr/bin/bzr branch ~/test.bzr.2/data test3data
[Thread debugging using libthread_db enabled]
- Fetching revisions:Get stream source
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff22f2af9 in pack_delta_index (hash=0x7ffcef822010, hsize=33554432,
    num_entries=115046781, old_index=0x7ffddaf1e010) at bzrlib/diff-delta.c:344
344 *packed_entry++ = entry->entry;
(gdb) l
339 *packed_entry++ = *old_entry;
340 }
341 }
342 }
343 for (entry = hash[i]; entry; entry = entry->next) {
344 *packed_entry++ = entry->entry;
345 }
346 /* TODO: At this point packed_entry - packed_hash[i] is the number of
347 * records that we have inserted into this hash bucket.
348 * We should *really* consider doing some limiting along the
(gdb) p *packed_entry
$2 = {ptr = 0x7ffd65a55fd0 "\004\232Z\207\377\177", src = 0x7ffd10721d70,
  val = 416214768}
(gdb) p i
$3 = 9909109
(gdb) p hsize
$4 = 33554432
(gdb) p entry
$5 = (struct unpacked_index_entry *) 0x4df1237bff2c999c
(gdb) p *entry
Cannot access memory at address 0x4df1237bff2c999c
(gdb) p *hash[i]
$7 = {entry = {
    ptr = 0x8e3089a7b28697c2 <Address 0x8e3089a7b28697c2 out of bounds>,
    src = 0x7854880e606623e0, val = 834984091}, next = 0x4df1237bff2c999c}
(gdb) p *(packed_entry-1)
$9 = {ptr = 0x8e3089a7b28697c2 <Address 0x8e3089a7b28697c2 out of bounds>,
  src = 0x7854880e606623e0, val = 834984091}