Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducible Access Violation while reindexing with litecoin-qt.exe on windows #945

Open
ridilculous opened this issue Mar 10, 2024 · 1 comment

Comments

@ridilculous
Copy link

ridilculous commented Mar 10, 2024

I'm trying to reindex with the following command

litecoin-qt.exe -reindex

or

litecoind.exe -reindex

and the process deterministically crashes with

Exception thrown at 0x0000000000DA9A23 in litecoin-qt.exe: 0xC0000005: Access violation reading location 0x0000000000000004.

and the state:

  • Number of blocks left: 1386142
  • Last block time: So Aug 20 08:10:39 2017
  • Progress: 6.33%

I'll try to downgrade the client and will add info here.

Expected behavior
No access violation

Actual behavior
Exception thrown at 0x0000000000DA9A23 in litecoin-qt.exe: 0xC0000005: Access violation reading location 0x0000000000000004.

in state:

  • Number of blocks left: 1386142
  • Last block time: So Aug 20 08:10:39 2017
  • Progress: 6.33%

with both, v0.21.2.2 and v0.21.2

To reproduce
run the command
litecoin-qt.exe -reindex

Can reliably reproduce every time.

litecoin.conf is empty.

System information
Tested so far with

  • Litecoin Core v0.21.2.2 Release
  • Litecoin Core v0.21.2 Release

from https://github.com/litecoin-project/litecoin/releases

on

Edition	Windows 11 Pro
Version	22H2
OS build	22621.3155
Experience	Windows Feature Experience Pack 1000.22684.1000.0

Processor	AMD Ryzen 9 7950X 16-Core Processor               4.50 GHz
Installed RAM	64.0 GB (63.1 GB usable)
System type	64-bit operating system, x64-based processor

KINGSTON SFYRD4000G

extra info
The debug.log doesn't show the exception.
Its last entry is
2024-03-10T15:43:40Z UpdateTip: new best=fd4bc7ebe60a72248aa218de4caf82f6fd32a9613331f34beea9980059b7b00d height=1261660 version=0x20000000 log2_work=67.564697 tx=11494846 date='2017-08-20T12:34:02Z' progress=0.063369 cache=85.4MiB(227175txo)

The process just silently dies. I looked at the dumps and attached Visual Studio to see the exception.
It might be helpful to get the PDBs of the build to narrow down the location but i couldn't find them and haven't succeeded creating my own build yet.

Couldn't find the config.log.

@ridilculous
Copy link
Author

Reindexing with v0.17.1 seemed to work well.

Also opening afterwards with v0.21.2.2 worked but debug.log showed errors which don't look good:

2024-03-10T19:46:14Z LoadBlockIndexDB: last block file = 1098
2024-03-10T19:46:15Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=713, size=129547238, heights=2647011...2647726, time=2024-03-09...2024-03-10)
...
2024-03-10T19:46:16Z Loaded best chain: hashBestChain=0442256f8cb958fc65f58a32e2770b3d707d8a1bb76946debb84358c8ff13134 height=2647726 date=2024-03-10T19:42:50Z progress=0.999999
...
2024-03-10T19:46:18Z No coin database inconsistencies in last 24 blocks (13729 transactions)
...
2024-03-10T19:46:18Z ERROR: DeserializeFileDB: Failed to open file ...\ltc\anchors.dat
...
2024-03-10T19:46:19Z InvalidChainFound: invalid block=f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195  height=2647727  log2_work=76.016256  date=2024-03-10T19:45:40Z
2024-03-10T19:46:19Z InvalidChainFound:  current best=0442256f8cb958fc65f58a32e2770b3d707d8a1bb76946debb84358c8ff13134  height=2647726  log2_work=76.016253  date=2024-03-10T19:42:50Z
2024-03-10T19:46:19Z ERROR: ConnectTip: ConnectBlock f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 failed, invalid-hogex-input, First input of HogEx does not point to previous HogEx
2024-03-10T19:46:19Z InvalidChainFound: invalid block=f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195  height=2647727  log2_work=76.016256  date=2024-03-10T19:45:40Z
2024-03-10T19:46:19Z InvalidChainFound:  current best=0442256f8cb958fc65f58a32e2770b3d707d8a1bb76946debb84358c8ff13134  height=2647726  log2_work=76.016253  date=2024-03-10T19:42:50Z
2024-03-10T19:46:36Z New outbound peer connected: version: 70016, blocks=2647727, peer=1 (full-relay)
2024-03-10T19:46:37Z ERROR: AcceptBlockHeader: block f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 is marked invalid
2024-03-10T19:46:37Z Disconnecting and discouraging peer 1!
2024-03-10T19:46:37Z New outbound peer connected: version: 70016, blocks=2647727, peer=2 (full-relay)
2024-03-10T19:46:37Z ERROR: AcceptBlockHeader: block f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 is marked invalid
2024-03-10T19:46:37Z Disconnecting and discouraging peer 2!
2024-03-10T19:46:43Z New outbound peer connected: version: 70016, blocks=2647727, peer=3 (full-relay)
2024-03-10T19:46:43Z ERROR: AcceptBlockHeader: block f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 is marked invalid
2024-03-10T19:46:43Z Disconnecting and discouraging peer 3!
2024-03-10T19:46:49Z New outbound peer connected: version: 70016, blocks=2647727, peer=4 (full-relay)
2024-03-10T19:46:49Z ERROR: AcceptBlockHeader: block f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 is marked invalid
2024-03-10T19:46:49Z Disconnecting and discouraging peer 4!
2024-03-10T19:48:11Z ERROR: AcceptBlockHeader: prev block invalid
2024-03-10T19:48:11Z Disconnecting and discouraging peer 0!
2024-03-10T19:49:18Z New outbound peer connected: version: 70016, blocks=2647728, peer=5 (full-relay)
2024-03-10T19:49:18Z ERROR: AcceptBlockHeader: block f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 is marked invalid
2024-03-10T19:49:18Z Disconnecting and discouraging peer 5!
2024-03-10T19:51:19Z Loading addresses from DNS seed dnsseed.koin-project.com
2024-03-10T19:51:30Z Loading addresses from DNS seed seed-a.litecoin.loshan.co.uk
2024-03-10T19:51:30Z Loading addresses from DNS seed dnsseed.litecoinpool.org
2024-03-10T19:51:30Z Waiting 300 seconds before querying DNS seeds.
2024-03-10T19:51:48Z New outbound peer connected: version: 70016, blocks=2647730, peer=6 (full-relay)
2024-03-10T19:55:51Z Potential stale tip detected, will try using extra outbound peer (last tip update: 540 seconds ago)
2024-03-10T19:56:19Z New outbound peer connected: version: 70016, blocks=2647730, peer=7 (full-relay)
2024-03-10T19:56:19Z ERROR: AcceptBlockHeader: block f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 is marked invalid
2024-03-10T19:56:19Z Disconnecting and discouraging peer 7!
2024-03-10T19:56:30Z Loading addresses from DNS seed dnsseed.thrasher.io
2024-03-10T19:56:30Z Loading addresses from DNS seed dnsseed.litecointools.com
2024-03-10T19:56:30Z 0 addresses found from DNS seeds
2024-03-10T19:56:30Z dnsseed thread exit
2024-03-10T19:56:31Z New outbound peer connected: version: 70016, blocks=2647730, peer=8 (full-relay)
2024-03-10T19:58:51Z Potential stale tip detected, will try using extra outbound peer (last tip update: 720 seconds ago)

Rolling back to the data from after reindexing with v0.17.1 and trying with v0.18.1.

No errors but a lot of warnings in the debug.log:

2024-03-10T20:02:22Z Loaded best chain: hashBestChain=0442256f8cb958fc65f58a32e2770b3d707d8a1bb76946debb84358c8ff13134 height=2647726 date=2024-03-10T19:42:50Z progress=0.999998
...
2024-03-10T20:02:39Z UpdateTip: new best=f19c2c004c66de0443137b2e9978b56a0d08848c57c3998992fa49ab07c79195 height=2647727 version=0x20000000 log2_work=76.016256 tx=232397555 date='2024-03-10T19:45:40Z' progress=0.999998 cache=0.3MiB(2143txo) warning='23 of last 100 blocks have unexpected version.'
2024-03-10T20:02:39Z UpdateTip: new best=a425952d4a14837c9483d7be1579b5687848320ae191d3f018ea033b728af8c3 height=2647728 version=0x20000000 log2_work=76.016259 tx=232397972 date='2024-03-10T19:48:05Z' progress=0.999999 cache=0.4MiB(3152txo) warning='23 of last 100 blocks have unexpected version.'
2024-03-10T20:02:39Z UpdateTip: new best=8a8703e1e213af0b320f653b1413f5253521651126e59873fa527b4e9ba54b34 height=2647729 version=0x20000014 log2_work=76.016262 tx=232398239 date='2024-03-10T19:49:10Z' progress=0.999999 cache=0.5MiB(3794txo) warning='24 of last 100 blocks have unexpected version.'
2024-03-10T20:02:39Z UpdateTip: new best=629247f3ff29da6f96e3343ae51655e90d5ead1577e998def36c33e531cc8e49 height=2647730 version=0x20000000 log2_work=76.016265 tx=232398298 date='2024-03-10T19:49:34Z' progress=0.999999 cache=0.5MiB(3959txo) warning='24 of last 100 blocks have unexpected version.'
2024-03-10T20:02:39Z UpdateTip: new best=12126634d3df6cc373bfd460746b6f77a091c5ca8b9b3df9cba878cbef1fd807 height=2647731 version=0x20000000 log2_work=76.016268 tx=232399868 date='2024-03-10T19:58:37Z' progress=1.000000 cache=1.1MiB(8368txo) warning='24 of last 100 blocks have unexpected version.'
2024-03-10T20:02:39Z Pre-allocating up to position 0x1400000 in rev01098.dat
2024-03-10T20:02:39Z UpdateTip: new best=2eccb25e9154db175317879f9014cffc896221b89e974427d48f015c4c8ab56e height=2647732 version=0x20000014 log2_work=76.016271 tx=232400219 date='2024-03-10T20:00:22Z' progress=1.000000 cache=1.2MiB(9114txo) warning='25 of last 100 blocks have unexpected version.'
2024-03-10T20:02:39Z New outbound peer connected: version: 70016, blocks=2647732, peer=1
2024-03-10T20:02:45Z New outbound peer connected: version: 70015, blocks=2647732, peer=2
2024-03-10T20:02:46Z New outbound peer connected: version: 70015, blocks=2647732, peer=3
2024-03-10T20:02:51Z New outbound peer connected: version: 70016, blocks=2647732, peer=4
2024-03-10T20:02:52Z New outbound peer connected: version: 70015, blocks=2647732, peer=5
2024-03-10T20:02:52Z New outbound peer connected: version: 70016, blocks=2647732, peer=6
2024-03-10T20:02:53Z New outbound peer connected: version: 70016, blocks=2647732, peer=7
2024-03-10T20:02:59Z New outbound peer connected: version: 70016, blocks=2647732, peer=8
2024-03-10T20:02:59Z New outbound peer connected: version: 70016, blocks=2647732, peer=9
2024-03-10T20:03:11Z UpdateTip: new best=f608591ca89199cafc552cfdf1d39c7b4207addcaed127be950d0f6668caf195 height=2647733 version=0x20000000 log2_work=76.016274 tx=232400675 date='2024-03-10T20:02:58Z' progress=1.000000 cache=1.4MiB(11030txo) warning='25 of last 100 blocks have unexpected version.'
2024-03-10T20:03:12Z New outbound peer connected: version: 70015, blocks=2647733, peer=10
2024-03-10T20:03:40Z UpdateTip: new best=a6ed39b94655638ee28476573ea4e3433527763c6f61228dca869db91fdd7f5c height=2647734 version=0x20000014 log2_work=76.016277 tx=232400771 date='2024-03-10T20:03:10Z' progress=1.000000 cache=1.5MiB(11221txo) warning='26 of last 100 blocks have unexpected version.'

The GUI also shows a warning below the menu:

Warning: unknown new rules activated (versionbit 2)

Shutting down and trying with the direct jump from v0.17.1 to v0.21.2

Same errors in the debug.log again:

2024-03-10T20:08:55Z Loaded best chain: hashBestChain=a6ed39b94655638ee28476573ea4e3433527763c6f61228dca869db91fdd7f5c height=2647734 date=2024-03-10T20:03:10Z progress=0.999998
...
2024-03-10T20:08:57Z ERROR: DeserializeFileDB: Failed to open file ...\ltc\anchors.dat
...
2024-03-10T20:08:58Z New outbound peer connected: version: 70016, blocks=2647734, peer=0 (full-relay)
2024-03-10T20:09:09Z New outbound peer connected: version: 70016, blocks=2647734, peer=1 (full-relay)
2024-03-10T20:09:10Z New outbound peer connected: version: 70016, blocks=2647734, peer=2 (full-relay)
2024-03-10T20:09:14Z InvalidChainFound: invalid block=3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8  height=2647735  log2_work=76.016279  date=2024-03-10T20:08:44Z
2024-03-10T20:09:14Z InvalidChainFound:  current best=a6ed39b94655638ee28476573ea4e3433527763c6f61228dca869db91fdd7f5c  height=2647734  log2_work=76.016277  date=2024-03-10T20:03:10Z
2024-03-10T20:09:14Z ERROR: ConnectTip: ConnectBlock 3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8 failed, invalid-hogex-input, First input of HogEx does not point to previous HogEx
2024-03-10T20:09:14Z InvalidChainFound: invalid block=3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8  height=2647735  log2_work=76.016279  date=2024-03-10T20:08:44Z
2024-03-10T20:09:14Z InvalidChainFound:  current best=a6ed39b94655638ee28476573ea4e3433527763c6f61228dca869db91fdd7f5c  height=2647734  log2_work=76.016277  date=2024-03-10T20:03:10Z
2024-03-10T20:09:14Z ERROR: AcceptBlockHeader: block 3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8 is marked invalid
2024-03-10T20:09:14Z Disconnecting and discouraging peer 2!
2024-03-10T20:09:16Z ERROR: AcceptBlockHeader: prev block invalid
2024-03-10T20:09:16Z Disconnecting and discouraging peer 0!
2024-03-10T20:09:16Z ERROR: AcceptBlockHeader: prev block invalid
2024-03-10T20:09:16Z Disconnecting and discouraging peer 1!
2024-03-10T20:09:32Z New outbound peer connected: version: 70016, blocks=2647736, peer=3 (full-relay)
2024-03-10T20:09:32Z ERROR: AcceptBlockHeader: block 3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8 is marked invalid
2024-03-10T20:09:32Z Disconnecting and discouraging peer 3!
2024-03-10T20:09:38Z New outbound peer connected: version: 70016, blocks=2647736, peer=4 (full-relay)
2024-03-10T20:09:38Z ERROR: AcceptBlockHeader: block 3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8 is marked invalid
2024-03-10T20:09:38Z Disconnecting and discouraging peer 4!
2024-03-10T20:09:56Z New outbound peer connected: version: 70016, blocks=2647736, peer=5 (full-relay)
2024-03-10T20:09:56Z ERROR: AcceptBlockHeader: block 3452a9739017e31012e151200897bc10356430c47537e90814818676009888e8 is marked invalid
2024-03-10T20:09:56Z Disconnecting and discouraging peer 5!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant