On Wed, Jun 14, 2023, 20:38 Joshua Branson <jbra...@dismail.de> wrote:
> Then I added this line above line 107 in extfs:
> ../../libdiskfs/disk-pager.c
>
> if (scp->sc_error != EKERN_MEMORY_ERROR)
>     fprintf(stderr, "error %d\n", scp->sc_error);
>
> Then I build the hurd via
> cd hurd-09.git<NUMBERS>/
> dpkg-buildpackage -us -uc -nc -b -rfakeroot
> sudo dpkg -i ../*deb
>
> Then I rebooted.  Then I shut down the hurd, and I got the same error
> message:
>
>
> error 2
> extfs: ../../libdiskfs/disk-pager.c:112: fault_handler: Assertion
> 'scp->sc_error = 10' failed.
> startup: halting Hurd...

Error code 2 is KERN_PROTECTION_FAILURE, most likely writing to
read-only memory. You should also print the faulting instruction
address (scp->sc_eip) and the faulting address (sigcode). See how it's
done in the error () call above.

It would be easier for you to debug if you add an infinite loop after
the fprintf, so the system would just hang at that point. Then you
could attach GDB and inspect things.

Sergey

Reply via email to