Ticket #2019 (closed bug: duplicate)

Opened 8 months ago

Last modified 8 months ago

page fault when block writer notifies an invalid hook with an idle event

Reported by: korli Owned by: axeld
Priority: blocker Milestone: R1
Component: System/Kernel Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description

The original error is a pagefault. I added a check with a panic in block_cache.cpp in the function notify_transaction_listeners() just before the hook call (the check was on hook->hook being equals to 0xdeadbeef)

The session log gives details on the cache and the transaction.

Attachments

serial.txt (26.7 kB) - added by korli 8 months ago.
debug session

Change History

Changed 8 months ago by korli

debug session

Changed 8 months ago by korli

I added the following lines for debug purposes :

+               if (hook == (void *)0xdeadbeef || !hook->hook || hook->hook == (void *)0xdeadbeef)
+                       panic("notify_transaction_listeners cache %p transaction %p, hook %p %pi, event %ld\n", cache, transaction, hook, hook->hook, event);
                hook->hook(transaction->id, event, hook->data);

Changed 8 months ago by axeld

  • status changed from new to closed
  • resolution set to duplicate

Thanks for the info, but it's a duplicate of #2008 (as I didn't manage to fix that one correcty on first try).

Note: See TracTickets for help on using tickets.