Subject: Re: bug#35858: Null pointer error when partitioning with the graphical installer

From: Mathieu Othacehe <[email-masked]>
Date: Wed, 29 May 2019 09:35:24 +0200

Hello Vivien,

Thank you very much for the detailed report and sorry about all those
errors :(

> In unknown file:
>            0 (make-stack #t)
> ice-9/eval.scm:159:9: Unhandled ext2 fs-type

So this one is easy, it's yet another unsupported fs type. Maybe the fix
would be to get rid of libparted fs types -> <user-partition> fs types
conversions like discussed with Danny.

Otherwise, we'll have to maintain conversions for every kind of
partitions in user-fs-type-name, user-fs-type->mount-type and
partition-filesystem-user-type procedures.

> Then I go to create a single root partition (with the idea of
> re-installing guix with the default cryptsetup options once the ext2
> partition is forgotten), but then I get another "null pointer
> dereference" exception -- this one is longer :(
>
> In ice-9/boot-9.scm:
>     829:9 19 (catch _ _ #<procedure 2ebbf50 at
> ./gnu/installer/steps.scm:144:7 (key c)> _)
>     829:9 18 (catch _ _ #<procedure 2ebbf00 at
> ./gnu/installer/steps.scm:144:7 (key c)> _)
>     829:9 17 (catch _ _ #<procedure 186ba00 at
> ./gnu/installer/steps.scm:144:7 (key c)> _)
> In ./gnu/installer/steps.scm:
>    182:21 16 (_)
> In ./gnu/installer/newt/partition.scm:
>    763:40 15 (run-partitioning-page)
>    714:40 14 (run-disk-page _ _ #:guided? _)
>    429:10 13 (run-partition-page _ #:default-item _)
> In ./gnu/installer/newt/page.scm:
>    384:15 12 (run-listbox-selection-page #:info-text _ #:title _
> #:info-textbox-width _ #:listbox-items _ #:listbox-item->text _
> #:listbox-height _ #:listbox-default-item _ # _ # _
> #:allow-delete? ...)
> In ./gnu/installer/newt/partition.scm:
>    400:23 11 (button-action)
> In ./gnu/installer/parted.scm:
>    771:25 10 (mkpart #<<disk> bytestructure: #<bytestructure
> 0x19c60c0>> _ #:previous-partition _)
> In parted/structs.scm:
>    552:19  9 (pointer->partition _)
>     132:3  8 (pointer->bytestructure _
> #<bytestructure-descriptor 0x3234740>)
> In unknown file:
>            7 (pointer->bytevector #<pointer 0x0> 88 #<undefined>

Not sure what happened here :(

Mathieu