NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/54944: sysinst SIGSEGV with gpt partitioned disk
>Number: 54944
>Category: bin
>Synopsis: sysinst SIGSEGV when access a gpt partitions disk
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 06 12:30:00 +0000 2020
>Originator: Frank Kardel
>Release: NetBSD 9.99.45
>Organization:
>Environment:
System: NetBSD pip.kardel.name 9.99.45 NetBSD 9.99.45 (PIPGEN) #7: Wed Feb 5 19:24:51 CET 2020 kardel%pip.kardel.name@localhost:/src/NetBSD/act/src/obj.amd64/sys/arch/amd64/compile/PIPGEN amd64
Architecture: x86_64
Machine: amd64
>Description:
Run sysinst on live 9.99.45 system:
b) Upgrade NetBSD on a hard disk
b) Yes
â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? â?? Available disks â?? â?? â?? â??>a: current system â??
â?? b: ld0 (954G) â?? â?? c: EFI System (dk0@ld0) â?? â?? d: NVME root (dk1@ld0) â?? â?? e: NVME user (dk2@ld0) â?? â?? f: wd0 (2.7T)
â?? â?? g: boot00 (dk3@wd0) â?? â?? h: root00 (dk4@wd0) â?? â?? i: swap00 (dk5@wd0) â?? â?? j: raid00 (dk6@wd0) â??
â?? k: wd1 (932G) â?? â?? l: wd2 (932G) â?? â?? m: wd3 (2.7T) â?? â?? n: boot01 (dk7@wd3) â??
â?? o: root01 (dk8@wd3) â?? â?? p: swap01 (dk9@wd3) â?? â?? x: Exit â?? â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??
b) => SIGSEGV
[New process 1]
Core was generated by `sysinst'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000001f221f35b in target_already_root () at /src/NetBSD/act/src/usr.sbin/sysinst/arch/amd64/../../target.c:187
187 for (ptn = 0; ptn < parts->num_part; ptn++) {
(gdb) bt
#0 0x00000001f221f35b in target_already_root () at /src/NetBSD/act/src/usr.sbin/sysinst/arch/amd64/../../target.c:187
#1 0x00000001f2218013 in mount_disks (install=install@entry=0x7f7fffcda1a8) at /src/NetBSD/act/src/usr.sbin/sysinst/arch/amd64/../../disks.c:1833
#2 0x00000001f2212385 in do_upgrade () at /src/NetBSD/act/src/usr.sbin/sysinst/arch/amd64/../../upgrade.c:90
#3 0x00000001f220e5f3 in opt_act_2_1 (m=<optimized out>, arg=<optimized out>) at menu_defs.c:251
#4 0x00000001f22100e5 in process_menu (num=<optimized out>, arg=0x0) at menu_defs.c:3114
#5 0x00000001f2233649 in main (argc=<optimized out>, argv=<optimized out>) at /src/NetBSD/act/src/usr.sbin/sysinst/arch/amd64/../../main.c:267
# gpt show -a ld0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 2014 Unused
2048 32768 1 GPT part - EFI System
Type: efi
TypeID: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
GUID: ab6a672d-87b3-472c-84ef-06218f8cbe5c
Size: 16384 K
Label: EFI System
Attributes: None
34816 419430400 2 GPT part - NetBSD FFSv1/FFSv2
Type: ffs
TypeID: 49f48d5a-b10e-11dc-b99b-0019d1879648
GUID: 17bbbb05-fc33-4598-af59-28e65eae4d26
Size: 200 G
Label: NVME root
Attributes: bootme
419465216 1580944015 3 GPT part - NetBSD FFSv1/FFSv2
Type: ffs
TypeID: 49f48d5a-b10e-11dc-b99b-0019d1879648
GUID: 8de05891-7cb5-4754-b915-84bd3dd0e745
Size: 754 G
Label: NVME user
Attributes: None
2000409231 32 Sec GPT table
2000409263 1 Sec GPT header
64k label information is available on request.
Additionally when I try dk1@ld0 I get "No root partition defined. Cannot continue".
The fstab on dk1 is fine though for normal boot (parsing issue?):
/etc/fstab:
NAME=NVME\ root / ffs rw 1 1
NAME=NVME\ user /fs/nvme0user ffs rw 1 2
kernfs /kern kernfs rw
ptyfs /dev/pts ptyfs rw
procfs /proc procfs rw
/dev/cd0a /cdrom cd9660 ro,noauto
tmpfs /var/shm tmpfs rw,-m1777,-sram%25
>How-To-Repeat:
see above...
>Fix:
check for NULL pointer in parts?
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index