Commit 939ed31
authored
fix nil-ptr in
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1b469aa]
goroutine 13874 [running]:
github.com/erigontech/erigon/db/snapcfg.MergeLimitFromCfg(...)
github.com/erigontech/erigon/db/snapcfg/util.go:456
github.com/erigontech/erigon/db/snapshotsync/freezeblocks.chooseSegmentEnd(0x1959420, 0x1960950, 0x0?, 0x0?)
github.com/erigontech/erigon/db/snapshotsync/freezeblocks/block_snapshots.go:132 +0x2a
github.com/erigontech/erigon/db/snapshotsync/freezeblocks.DumpBeaconBlocks({_, _}, {_, _}, _, _, _, {{0xc001a16f50, 0xc}, {0xc001a16f50, ...}, ...}, ...)
github.com/erigontech/erigon/db/snapshotsync/freezeblocks/caplin_snapshots.go:600 +0x179
github.com/erigontech/erigon/cl/antiquary.(*Antiquary).antiquate(0xc0f4c34488)
github.com/erigontech/erigon/cl/antiquary/antiquary.go:315 +0x3a8
github.com/erigontech/erigon/cl/antiquary.(*Antiquary).Loop(0xc0f4c34488)
github.com/erigontech/erigon/cl/antiquary/antiquary.go:257 +0x13b8
github.com/erigontech/erigon/cmd/caplin/caplin1.RunCaplinService.func3()
github.com/erigontech/erigon/cmd/caplin/caplin1/run.go:450 +0xe7
created by github.com/erigontech/erigon/cmd/caplin/caplin1.RunCaplinService in goroutine 779
github.com/erigontech/erigon/cmd/caplin/caplin1/run.go:443 +0x31ae
```DumpBeaconBlocks (#19532)1 parent f3c7817 commit 939ed31
File tree
6 files changed
+56
-32
lines changed- cmd/downloader
- db
- downloader
- downloadercfg
- snapcfg
- snapshotsync/freezeblocks
6 files changed
+56
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | 447 | | |
456 | 448 | | |
457 | 449 | | |
458 | 450 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 451 | | |
474 | 452 | | |
475 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
| 593 | + | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
| 612 | + | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments