flashing: FP5: Occasional Segmentation fault on `fastboot update`
I've seen this a couple of times. I don't know how to reproduce it reliably at the moment.
It happens after formatting, which seems to be something it does twice.
fastboot version 34.0.5-10900879
[...]
[f2fs_write_super_block:1080] Writing super block, at offset 0x00000000
Info: format successful
flash-all.sh: line 92: 39292 Segmentation fault (core dumped) fastboot --skip-reboot -w update image-FP5-ap1a.240305.019.a1.zip
Full log
product: FP5
Sending 'abl_a' (152 KB) OKAY [ 0.007s]
Writing 'abl_a' OKAY [ 0.001s]
Finished. Total time: 0.018s
Sending 'abl_b' (152 KB) OKAY [ 0.007s]
Writing 'abl_b' OKAY [ 0.003s]
Finished. Total time: 0.020s
Sending 'aop_a' (203 KB) OKAY [ 0.008s]
Writing 'aop_a' OKAY [ 0.001s]
Finished. Total time: 0.020s
Sending 'aop_b' (203 KB) OKAY [ 0.008s]
Writing 'aop_b' OKAY [ 0.002s]
Finished. Total time: 0.020s
Sending 'bluetooth_a' (3356 KB) OKAY [ 0.131s]
Writing 'bluetooth_a' OKAY [ 0.008s]
Finished. Total time: 0.153s
Sending 'bluetooth_b' (3356 KB) OKAY [ 0.132s]
Writing 'bluetooth_b' OKAY [ 0.013s]
Finished. Total time: 0.171s
Sending 'cpucp_a' (182 KB) OKAY [ 0.008s]
Writing 'cpucp_a' OKAY [ 0.001s]
Finished. Total time: 0.020s
Sending 'cpucp_b' (182 KB) OKAY [ 0.007s]
Writing 'cpucp_b' OKAY [ 0.002s]
Finished. Total time: 0.020s
Sending 'devcfg_a' (52 KB) OKAY [ 0.003s]
Writing 'devcfg_a' OKAY [ 0.001s]
Finished. Total time: 0.015s
Sending 'devcfg_b' (52 KB) OKAY [ 0.003s]
Writing 'devcfg_b' OKAY [ 0.008s]
Finished. Total time: 0.022s
Sending 'dsp_a' (65536 KB) OKAY [ 2.697s]
Writing 'dsp_a' OKAY [ 0.079s]
Finished. Total time: 2.787s
Sending 'dsp_b' (65536 KB) OKAY [ 2.683s]
Writing 'dsp_b' OKAY [ 0.126s]
Finished. Total time: 2.818s
Sending 'featenabler_a' (84 KB) OKAY [ 0.004s]
Writing 'featenabler_a' OKAY [ 0.001s]
Finished. Total time: 0.017s
Sending 'featenabler_b' (84 KB) OKAY [ 0.004s]
Writing 'featenabler_b' OKAY [ 0.005s]
Finished. Total time: 0.020s
Sending 'hyp_a' (3601 KB) OKAY [ 0.142s]
Writing 'hyp_a' OKAY [ 0.012s]
Finished. Total time: 0.168s
Sending 'hyp_b' (3601 KB) OKAY [ 0.149s]
Writing 'hyp_b' OKAY [ 0.022s]
Finished. Total time: 0.185s
Sending 'imagefv_a' (60 KB) OKAY [ 0.003s]
Writing 'imagefv_a' OKAY [ 0.003s]
Finished. Total time: 0.017s
Sending 'imagefv_b' (60 KB) OKAY [ 0.003s]
Writing 'imagefv_b' OKAY [ 0.024s]
Finished. Total time: 0.038s
Sending 'keymaster_a' (261 KB) OKAY [ 0.011s]
Writing 'keymaster_a' OKAY [ 0.002s]
Finished. Total time: 0.024s
Sending 'keymaster_b' (261 KB) OKAY [ 0.012s]
Writing 'keymaster_b' OKAY [ 0.003s]
Finished. Total time: 0.027s
Sending 'modem_a' (185116 KB) OKAY [ 7.616s]
Writing 'modem_a' OKAY [ 0.616s]
Finished. Total time: 8.373s
Sending 'modem_b' (185116 KB) OKAY [ 7.438s]
Writing 'modem_b' OKAY [ 0.660s]
Finished. Total time: 8.237s
Sending 'multiimgoem_a' (13 KB) OKAY [ 0.001s]
Writing 'multiimgoem_a' OKAY [ 0.001s]
Finished. Total time: 0.014s
Sending 'multiimgoem_b' (13 KB) OKAY [ 0.001s]
Writing 'multiimgoem_b' OKAY [ 0.001s]
Finished. Total time: 0.014s
Sending 'qupfw_a' (55 KB) OKAY [ 0.003s]
Writing 'qupfw_a' OKAY [ 0.021s]
Finished. Total time: 0.035s
Sending 'qupfw_b' (55 KB) OKAY [ 0.003s]
Writing 'qupfw_b' OKAY [ 0.010s]
Finished. Total time: 0.024s
Sending 'shrm_a' (44 KB) OKAY [ 0.003s]
Writing 'shrm_a' OKAY [ 0.010s]
Finished. Total time: 0.034s
Sending 'shrm_b' (44 KB) OKAY [ 0.002s]
Writing 'shrm_b' OKAY [ 0.010s]
Finished. Total time: 0.023s
Sending 'studybk_a' (240 KB) OKAY [ 0.009s]
Writing 'studybk_a' OKAY [ 0.002s]
Finished. Total time: 0.023s
Sending 'studybk_b' (240 KB) OKAY [ 0.010s]
Writing 'studybk_b' OKAY [ 0.003s]
Finished. Total time: 0.024s
Sending 'tz_a' (3585 KB) OKAY [ 0.145s]
Writing 'tz_a' OKAY [ 0.025s]
Finished. Total time: 0.185s
Sending 'tz_b' (3585 KB) OKAY [ 0.140s]
Writing 'tz_b' OKAY [ 0.022s]
Finished. Total time: 0.188s
Sending 'uefisecapp_a' (122 KB) OKAY [ 0.005s]
Writing 'uefisecapp_a' OKAY [ 0.005s]
Finished. Total time: 0.022s
Sending 'uefisecapp_b' (122 KB) OKAY [ 0.005s]
Writing 'uefisecapp_b' OKAY [ 0.003s]
Finished. Total time: 0.019s
Sending 'xbl_a' (3602 KB) OKAY [ 0.143s]
Writing 'xbl_a' OKAY [ 0.017s]
Finished. Total time: 0.174s
Sending 'xbl_b' (3602 KB) OKAY [ 0.147s]
Writing 'xbl_b' OKAY [ 0.013s]
Finished. Total time: 0.175s
Sending 'xbl_config_a' (220 KB) OKAY [ 0.009s]
Writing 'xbl_config_a' OKAY [ 0.004s]
Finished. Total time: 0.026s
Sending 'xbl_config_b' (220 KB) OKAY [ 0.009s]
Writing 'xbl_config_b' OKAY [ 0.004s]
Finished. Total time: 0.025s
Sending 'apdp' (13 KB) OKAY [ 0.001s]
Writing 'apdp' OKAY [ 0.002s]
Finished. Total time: 0.012s
Sending 'ddr' (20 KB) OKAY [ 0.002s]
Writing 'ddr' OKAY [ 0.001s]
Finished. Total time: 0.013s
Sending 'logfs' (16 KB) OKAY [ 0.002s]
Writing 'logfs' OKAY [ 0.001s]
Finished. Total time: 0.012s
Sending 'rtice' (261 KB) OKAY [ 0.010s]
Writing 'rtice' OKAY [ 0.004s]
Finished. Total time: 0.024s
Sending 'storsec' (20 KB) OKAY [ 0.002s]
Writing 'storsec' OKAY [ 0.001s]
Finished. Total time: 0.013s
Sending 'study' (240 KB) OKAY [ 0.010s]
Writing 'study' OKAY [ 0.003s]
Finished. Total time: 0.023s
Sending 'frp' (512 KB) OKAY [ 0.019s]
Writing 'frp' OKAY [ 0.002s]
Finished. Total time: 0.031s
Setting current slot to 'a' OKAY [ 0.008s]
Rebooting into bootloader OKAY [ 0.000s]
Finished. Total time: 0.116s
< waiting for any device >
Erasing 'avb_custom_key' OKAY [ 0.009s]
Finished. Total time: 0.014s
Warning: skip copying avb_custom_key image avb footer (avb_custom_key partition size: 0, avb_custom_key image size: 1032).
Sending 'avb_custom_key' (1 KB) OKAY [ 0.002s]
Writing 'avb_custom_key' OKAY [ 0.007s]
Finished. Total time: 0.023s
--------------------------------------------
Bootloader Version...: FP5.TT46.A.144.20240205
Baseband Version.....: 13
Serial Number........: 81c81e56
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Setting current slot to 'a' OKAY [ 0.001s]
extracting fastboot-info.txt (0 MB) to RAM...
extracting super_empty.img (0 MB) to RAM...
extracting super_empty.img (0 MB) to disk... took 0.000s
extracting odm.img (1 MB) to disk... took 0.007s
[liblp] Partition odm_a will resize from 0 bytes to 1380352 bytes
extracting product.img (1280 MB) to disk... took 5.626s
[liblp] Partition product_a will resize from 0 bytes to 1342312448 bytes
extracting system.img (896 MB) to disk... took 4.658s
[liblp] Partition system_a will resize from 0 bytes to 940142592 bytes
extracting system_ext.img (335 MB) to disk... took 1.706s
[liblp] Partition system_ext_a will resize from 0 bytes to 352251904 bytes
extracting vendor.img (1010 MB) to disk... took 4.912s
[liblp] Partition vendor_a will resize from 0 bytes to 1059696640 bytes
extracting super_empty.img (0 MB) to RAM...
extracting boot.img (96 MB) to disk... took 0.370s
archive does not contain 'boot.sig'
extracting super_empty.img (0 MB) to RAM...
Sending 'boot_a' (98304 KB) OKAY [ 4.024s]
Writing 'boot_a' OKAY [ 0.270s]
extracting super_empty.img (0 MB) to RAM...
extracting dtbo.img (24 MB) to disk... took 0.071s
archive does not contain 'dtbo.sig'
extracting super_empty.img (0 MB) to RAM...
Sending 'dtbo' (24576 KB) OKAY [ 1.016s]
Writing 'dtbo' OKAY [ 0.059s]
extracting super_empty.img (0 MB) to RAM...
extracting vendor_boot.img (96 MB) to disk... took 0.253s
archive does not contain 'vendor_boot.sig'
extracting super_empty.img (0 MB) to RAM...
Sending 'vendor_boot' (98304 KB) OKAY [ 4.067s]
Writing 'vendor_boot' OKAY [ 0.306s]
extracting super_empty.img (0 MB) to RAM...
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
extracting super_empty.img (0 MB) to RAM...
Sending 'vbmeta' (8 KB) OKAY [ 0.002s]
Writing 'vbmeta' OKAY [ 0.001s]
extracting super_empty.img (0 MB) to RAM...
extracting vbmeta_system.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta_system.sig'
extracting super_empty.img (0 MB) to RAM...
Sending 'vbmeta_system' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_system' OKAY [ 0.001s]
Erasing 'userdata' OKAY [ 0.048s]
F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11)
Info: Disable heap-based policy
Info: Debug level = 1
Info: Trim is disabled
Info: Set conf for android
Info: Enable Project quota
Info: not exist /proc/version!
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 448795544 (219138 MB)
Info: zone aligned segment0 blkaddr: 512
Info: add quota type = 0 => 4
Info: add quota type = 1 => 5
Info: add quota type = 2 => 6
Info: format version with
"6.7.10-200.fc39.x86_64"
[f2fs_init_sit_area: 638] Filling sit area at offset 0x00600000
[f2fs_init_nat_area: 672] Filling nat area at offset 0x01600000
[f2fs_add_default_dentry_root:1255] Writing default dentry root, at offset 0x2a800
[f2fs_write_root_inode:1300] Writing root inode (hot node), offset 0x2a200
[f2fs_write_default_quota:1389] Writing quota data, at offset 0002a801, 0002a802
[f2fs_write_qf_inode:1438] Writing quota inode (hot node), offset 0x2a201
[f2fs_write_default_quota:1389] Writing quota data, at offset 0002a803, 0002a804
[f2fs_write_qf_inode:1438] Writing quota inode (hot node), offset 0x2a202
[f2fs_write_default_quota:1389] Writing quota data, at offset 0002a805, 0002a806
[f2fs_write_qf_inode:1438] Writing quota inode (hot node), offset 0x2a203
[f2fs_update_nat_default:1475] Writing nat root, at offset 0x00001600
Info: Overprovision ratio = 0.310%
Info: Overprovision segments = 339 (GC reserved = 329)
[f2fs_write_check_point_pack: 854] Writing main segments, cp at offset 0x00000200
[f2fs_write_check_point_pack: 942] Writing Segment summary for HOT/WARM/COLD_DATA, at offset 0x00000201
[f2fs_write_check_point_pack: 956] Writing Segment summary for HOT_NODE, at offset 0x00000202
[f2fs_write_check_point_pack: 968] Writing Segment summary for WARM_NODE, at offset 0x00000203
[f2fs_write_check_point_pack: 979] Writing Segment summary for COLD_NODE, at offset 0x00000204
[f2fs_write_check_point_pack: 987] Writing cp page2, at offset 0x00000205
[f2fs_write_check_point_pack:1007] Writing NAT bits pages, at offset 0x000003fe
[f2fs_write_check_point_pack:1028] Writing cp page 1 of checkpoint pack 2, at offset 0x00000400
[f2fs_write_check_point_pack:1047] Writing cp page 2 of checkpoint pack 2, at offset 0x00000405
[f2fs_write_super_block:1080] Writing super block, at offset 0x00000000
Info: format successful
extracting super_empty.img (0 MB) to RAM...
Sending 'userdata' (97 KB) OKAY [ 0.004s]
Writing 'userdata' OKAY [ 0.010s]
Erasing 'metadata' OKAY [ 4.588s]
mke2fs 1.46.6 (1-Feb-2023)
128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 4096 4k blocks and 4096 inodes
Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
extracting super_empty.img (0 MB) to RAM...
Sending 'metadata' (44 KB) OKAY [ 0.003s]
Writing 'metadata' OKAY [ 0.004s]
Sending sparse 'super' 1/5 (786428 KB) OKAY [ 32.402s]
Writing 'super' OKAY [ 0.008s]
Sending sparse 'super' 2/5 (786428 KB) OKAY [ 31.992s]
Writing 'super' OKAY [ 0.002s]
Sending sparse 'super' 3/5 (786428 KB) OKAY [ 32.174s]
Writing 'super' OKAY [ 0.007s]
Sending sparse 'super' 4/5 (786428 KB) OKAY [ 32.296s]
Writing 'super' OKAY [ 0.001s]
Sending sparse 'super' 5/5 (463484 KB) OKAY [ 19.139s]
Writing 'super' OKAY [ 0.006s]
Erasing 'userdata' OKAY [ 7.397s]
F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11)
Info: Disable heap-based policy
Info: Debug level = 1
Info: Trim is disabled
Info: Set conf for android
Info: Enable Project quota
Info: not exist /proc/version!
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 448795544 (219138 MB)
Info: zone aligned segment0 blkaddr: 512
Info: add quota type = 0 => 4
Info: add quota type = 1 => 5
Info: add quota type = 2 => 6
Info: format version with
"6.7.10-200.fc39.x86_64"
[f2fs_init_sit_area: 638] Filling sit area at offset 0x00600000
[f2fs_init_nat_area: 672] Filling nat area at offset 0x01600000
[f2fs_add_default_dentry_root:1255] Writing default dentry root, at offset 0x2a800
[f2fs_write_root_inode:1300] Writing root inode (hot node), offset 0x2a200
[f2fs_write_default_quota:1389] Writing quota data, at offset 0002a801, 0002a802
[f2fs_write_qf_inode:1438] Writing quota inode (hot node), offset 0x2a201
[f2fs_write_default_quota:1389] Writing quota data, at offset 0002a803, 0002a804
[f2fs_write_qf_inode:1438] Writing quota inode (hot node), offset 0x2a202
[f2fs_write_default_quota:1389] Writing quota data, at offset 0002a805, 0002a806
[f2fs_write_qf_inode:1438] Writing quota inode (hot node), offset 0x2a203
[f2fs_update_nat_default:1475] Writing nat root, at offset 0x00001600
Info: Overprovision ratio = 0.310%
Info: Overprovision segments = 339 (GC reserved = 329)
[f2fs_write_check_point_pack: 854] Writing main segments, cp at offset 0x00000200
[f2fs_write_check_point_pack: 942] Writing Segment summary for HOT/WARM/COLD_DATA, at offset 0x00000201
[f2fs_write_check_point_pack: 956] Writing Segment summary for HOT_NODE, at offset 0x00000202
[f2fs_write_check_point_pack: 968] Writing Segment summary for WARM_NODE, at offset 0x00000203
[f2fs_write_check_point_pack: 979] Writing Segment summary for COLD_NODE, at offset 0x00000204
[f2fs_write_check_point_pack: 987] Writing cp page2, at offset 0x00000205
[f2fs_write_check_point_pack:1007] Writing NAT bits pages, at offset 0x000003fe
[f2fs_write_check_point_pack:1028] Writing cp page 1 of checkpoint pack 2, at offset 0x00000400
[f2fs_write_check_point_pack:1047] Writing cp page 2 of checkpoint pack 2, at offset 0x00000405
[f2fs_write_super_block:1080] Writing super block, at offset 0x00000000
Info: format successful
flash-all.sh: line 92: 39292 Segmentation fault (core dumped) fastboot --skip-reboot -w update image-FP5-ap1a.240305.019.a1.zip