libera/#devuan-arm/ Friday, 2024-10-04

drizztbstrap: ~/work ---# unxz control.tar.xz00:41
drizztSegmentation fault00:41
drizzt(debian sid on arm64, fresh try to debootstrap)00:41
drizztgot exactly the same on devuan ceres of course00:45
Hurgotrondrizzt: just that one file? Do other tools work? (xzcat, xz...)01:17
drizztxzcat is a symlink to xz01:19
drizztas is unxz01:19
drizzt# xz -d control.tar.xz01:20
drizztSegmentation fault01:20
drizztsame for compression01:21
HurgotronThought so. But that means the file is bad? segfault as an error message is always bad, but it is known that xz has less error checking / recovery compared to other compression formats01:36
drizztit has nothing to do with the archive being good or bad01:44
drizzta segfault is a critical bug in the programm itself, or in the libraries used by that programm01:44
gnarfacein this case could it be caused by running out of system ram? i know that xz can have very high ram requirements depending on the compression settings....01:45
drizztnope01:45
drizztit does not yeld a segfault01:46
drizztand I have plenty RAM available01:46
gnarfaceoh01:46
rrqdrizzt: try LD_DEBUG=all xz -d control.tar.xz |& tee /tmp/LOG01:47
drizzta segfault means that the program code tries to access some memory region which it is not alowed to, either because it tries to read address 0, or a random adress by using an uninitialized pointer01:47
drizztrrq I already straced, xz starts fine01:48
gnarfaceso it's... probably just a library version mismatch? stuff gets out of sync on ceres all the time01:48
rrqrun in gdb ?01:49
drizztgnarface: it xas present on 3 of august, two months ago01:49
gnarfacehmmm01:49
drizztrrq : currently trying to run older versions, and to run with older libc and liblzma01:50
drizztto know where to look for and allow the second stage of debootstrap to run01:51
drizztgdb is not installed, not easy to install either, and I xz is production version, as is libc, so there's no debug symbols01:52
rrqI just made an arm64/ceres installer and is trying that in qemu ... should run into same problem I guess when it comes to installing base system01:52
drizztrrq : yep01:52
drizztrunning on real hardware here01:52
rrqfor armhf there was an issue with the ext4 filesystem ... not sure if that plays in here01:53
drizztof course I tested other hardware, and have a daedalus running fine on the hardware01:53
rrq(the dir_index attribute)01:53
drizztnope, got a ceres running find on armhf, recently updated01:53
drizztthe problem is specific to arm6401:54
drizzts/find/fine/01:54
drizzt(if it was present on amd64 it would have gotten fixed even before being packaged01:54
drizztI think it's something that went untested as there must not be that many people running ceres or sid on arm6401:55
drizzta change which runs fine on other archs but crashes on arm6401:56
drizztrrq: https://www.techno-innov.fr/NotShared/LOG02:00
drizztmind that dpkg crashes too, but not directly dpkg : it calls tar, which seems to call something else, which fails to extract the package content02:03
drizztbut it does not use xz02:03
drizztdebootstrap does not install xz (but has liblzma)02:04
rrqtried removing /etc/ld.so.cache ?02:04
drizztI installed xz by hand in order to run the test02:04
drizztrrq, did not, but did it right now and same segfault02:05
drizztthe first time this happened I was having a running system, and it crashed during the upgrade02:06
drizztand then dpkg is unable to install anything02:06
drizztI also tried dist-upgrade from a daedalus (running fine) to excalibur -> crashes02:07
rrqhmmm.. ok. (my arm64 installer is still installing ... configuring 45%.. can try repeating soon)02:07
rrqwill be a qemu virt system with cortex-5302:08
drizztand now, it is a debootstrap for which I ran the first stage on my x86 host, then flashed an SD card, booted with init=/bin/bash, and trying to run "/debootstrap/debootstrap --second-stage"02:08
drizztand when this tries to call dpkg, it crashes02:08
rrqwas devuan's debootstrap ?02:09
drizztrrq: tested two different arm64 boards, with different processors, and crashes all the same02:09
drizztrrq: should be02:10
drizztwhy ?02:10
rrq(it's different from debian's debootstrap)02:10
drizztthe problem is not from debootstrap, first occurence was when upgrading a running ceres02:11
rrqwas that a minbase system or a "default" ?02:11
drizztand happens when dist-upgrading a runing daedalus to excalibur02:11
drizztit was a system I've been using for 3 or 4 years02:12
rrqsorry abotu question; I'm just learning about "the enevelope"02:12
drizztrrq: no problem02:12
rrqI'm using my "bespoke-installer" which created an arm64/ceres installer (as kernel+initrd) on an amd64, and now I'm running that on qemu-systemaarch using virt and cortex-5302:14
rrqstill installing.. but no issues yet... (using busybox dpkg so far).02:15
rrqit'll go into local dpkg soonish02:15
rrqstill installing the kernel.. it's the initramfs building that takes time02:26
rrq(slow... now upgrading from network .. fidning the slow debian mirrors)02:53
rrqit seems fastly is slowly here02:53
drizztok, running unxz from package xz-utils_5.4.1-02 : runs fine03:10
drizzt(with lib liblzma5_5.4.1-0.2)03:10
drizztcurrent is xz-utils_5.6.2-2 (with liblzma 5.6.2-2 too)03:12
drizztbut ... # /debootstrap/debootstrap --second-stage03:12
drizztW: Failure trying to run:  dpkg-deb -f /var/cache/apt/archives/dpkg_1.22.11_arm64.deb Version03:12
drizztbut as I stated, dpkg/tar is not using xz03:13
drizztthough I thought it was using liblzma03:13
drizztwell, it's not tar : tar xf data.tar.xz is now running fine03:15
drizztso dpkg is doing it differently03:15
drizztdpkg-deb is linked to liblzma, so it calls decompression directly03:17
drizztand I chnaged the lib version under his feets ... he may not be happy with it :(03:17
rrqhmm I got liblzma5_5.4.1-0.2_arm64.deb for ceres03:21
drizztgot 5.6.2-2 on my x86_64 host03:22
drizztand on the ceres debootstrap liblzma5 is 5.6.2-203:23
rrqsame here for amd64/ceres03:24
rrqbut liblzma5_5.4.1-0.2 for arm64/ceres03:24
drizztthat's strange03:25
drizztwhat are the dependencies of your dpkg package (and it's version) ?03:25
drizztdpkg_1.22.11_arm64 here03:26
rrqdpkg=1.21.22 .. pre-depends liblzma5 (>= 5.4.0)03:27
rrqthat's from the dists/ceres/main/binary-arm64/Packages file downloaded some 4 hours ago03:28
drizztliblzma5 (>= 5.4.0) here too03:29
rrqand it has liblzma5=5.4.1-0.203:29
drizzterf, this is the 1.21.2203:29
rrqI got Packages form deb.devuan.org; not sure which actual server03:30
drizztwell 1.22.11 also has liblzma5 (>= 5.4.0)03:30
rrqand https://pkginfo.devuan.org/ agrees too03:31
drizztdeb https://deb.debian.org/debian sid main03:32
drizzt(this is the test on the debian debootstrap)03:32
rrqthat's debian sid's version03:32
drizztyep03:33
rrqyou will want to use devuan's installer and ceres versions (?)03:33
drizztsomeone suggested me to test debian too03:33
drizztto check if it was the same03:33
drizztgonna check back devuan, but tomorrow !03:34
drizztgonna try to get some sleep03:34
drizzt(3:34 am here)03:34
rrqg'night03:34
gnarfaceCenturion_Dan: you don't happen to know where the rpi3 build scripts are, do you?08:46
gnarfaceor anyone else here, for that matter?08:47
yetinot I.  I install Debian and transgrade it to Devuan.  In the last weeks I did that on Pi1,2,4 ... no 3 yet.08:54
jjakobwhat's the build process for arm images? I want to customize images for rpi3's08:56
jjakobI saw mention of devuan arm-sdk and pyavitz/rpi-img-builder in https://arm-files.devuan.org/README.txt08:57
yetiDo devuan PI images now get kernel updates?08:57
yetiI switched to go the frankendevuan route because in that process deBIan's kernel upgrades still work after transgrading08:58
yetiand the last Pi4 image I tried contained customised blingbling and even unapackaged changes e.g. a MC theme...08:58
yetithat's as if they play artist instead of IT08:58
yetiI am not happy with the state of devuans PI images.  unless there are news that I still havent seen.08:59
jjakobfrankendevuan? transgrading?08:59
yetiinstalling debian and turning that into devuan08:59
jjakobI suspected it was that09:00
yetihttps://www.devuan.org/os/documentation/install-guides/daedalus/bookworm-to-daedalus09:00
yetifor PCs that makes only sense to migrate existing installs.  the x86/amd64 installers are ok09:01
jjakobi don't need kernel updates really cause I want to make rootfs read-only anyway (with a rw overlay in ram)09:01
gnarfacewell, we don't really consider it a case of "frankendevuan" unless you screw it up during the process :)09:01
jjakobif I want to update I'll just build a new image and write it to the sd card09:01
yetiid you only want  chroot then just debootstrap it09:01
yetiif*09:01
jjakobcause it's gonna be a iot-like thing that I wouldn't want to upgrade the kernel remotely anyway or it might not boot09:02
yetimy PIs typically run headless and survived kernel updates09:03
jjakobyears ago I used https://github.com/TheSin-/rpi-img-builder09:03
yetihttps://salsa.debian.org/raspi-team/image-specs <<< feeding this with devuan repos might work09:05
yetiand modified packages lists... sure you dont want systemd on devuan09:05
yetiseems they are looking for someone to jump in there because the PI images maintainer has no tme now.  turnig this into a builder for debian and devuan could make sense.09:07
jjakobif that's the case I'd rather fix the rpi-img-builder fork I made years ago to work with devuan, cause it has a better (to me) way of customizing the image with "plugins"09:15
yetiirc.oftc.net #debian-raspberrypi is the related channel09:16
yetivery low traffic.  but they may have even better ideas.09:16
jjakobyou can install the raspberry pi kernel package on devuan? from raspbian's repos or does devuan have it?09:16
yetiI haven't tried that.09:17
jjakobdebootstrap devuan, install debian's rpi kernel, change cmdline and such appropriately, optionally install the extra raspi packages, and it would work?09:19
yetibetter look into a debian images's fat partition first09:19
jjakobif the builder produces working debian images surely it does the right stuff already09:21
yetikernel=vmlinuz-6.1.0-25-arm6409:21
yetino idea wether raspios still names everything just kernel.img09:22
yetiusing debian's kernels will fit09:22
drizztback14:02
rrqson bedtime here :) I'm still in progress of getting my arm64/ceres installer to run to completion14:09
rrq(it has problems using a squasfs rather than iso9660 media)14:10
drizztrrq: got a (planned) power outage this morning, which I had forgotten about ... but my UPS is down and did not cover the few seconds requiered ... have to restart everything I had "running" :(14:13
drizztand there's another one in the afternoon, so I do'nt think I'll reopen everything to close it again in two hours14:14
rrqok.. when (if?) my installer completes, it'll prepare a "pure" devuan ceres installtion filesystem14:15
rrqI'll targeting one without desktop initially; just console and ssh access.14:16
drizztback once again17:17
drizztrrq: there's also vim which segfaults17:23
drizzt(at least on the original system)17:24
drizztI'm moving back to devuan ceres (instead of debian sid) as the problem is the same on both (I didn't think it would yield different result, but it was worth the try)17:26

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!