Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 9D7B678193C for <~alpine/apk-tools@lists.alpinelinux.org>; Mon, 17 Feb 2020 09:12:04 +0000 (UTC) Received: by mail-lj1-f193.google.com with SMTP id y6so17972810lji.0 for <~alpine/apk-tools@lists.alpinelinux.org>; Mon, 17 Feb 2020 01:12:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x8p+irLpWK9SVBUJUPAhmIFNhLmqgbpMSm3zzrcrH5Y=; b=cRT+kdZrz+3oExlYE9zwoM1pg7IuWpJQR8LnU2zYye5ueoYXLGs9dz/QYX62s3ycKZ tE03w8chJqsETbbPBNTHq+kcUPliyC56UwcAiaRavRHJi9scVw7akBUoyJOeAnOJeLV1 KcWNY6kOAfoPbqS1GsTFjS8SQuOWljq7erVaNxSbJv2KL8VXQDlgw41SP9ZV/vHskg3P 2fFmZdozrPCAToL2T//PuYAVyujtj81+Zfnh66RTO04nX8mTICD7KCcKLqla/FUd+Ty2 fo3Qf7vscCWKRO88Yj90XEguCW9lGUfrq4sWn8n/EaHrLQGvXIQSBlAzw+OU/Qy9go8L 7ORQ== X-Gm-Message-State: APjAAAWewlDSkjwJWMeKQ1i+//P9osb5eGhDUe0jYenvFADQKlsvrcXF R1HYZXu7+16LkhydEpt9fkRPb1X+0ao= X-Google-Smtp-Source: APXvYqwuwcksvDNJyEpwDy3hUGbMVZYOLXaSSB88WVWqDYgpyU9zaoG3dq8zyGJxewbDentmpLmiDw== X-Received: by 2002:a2e:7816:: with SMTP id t22mr9406185ljc.161.1581930724039; Mon, 17 Feb 2020 01:12:04 -0800 (PST) Received: from vostro.wlan (dtc5qkyyyyyyyyyyyyx9y-3.rev.dnainternet.fi. [2001:14ba:80b2:d400::4fa]) by smtp.gmail.com with ESMTPSA id y8sm8251500lji.56.2020.02.17.01.12.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 01:12:03 -0800 (PST) Date: Mon, 17 Feb 2020 11:12:00 +0200 From: Timo Teras To: Carl Chave Cc: ~alpine/apk-tools@lists.alpinelinux.org Subject: Re: APK Package Name Issue on armel port Message-ID: <20200217111200.08405b9c@vostro.wlan> In-Reply-To: References: <20200214105215.6873e402@vostro.wlan> <62f21c96-ff43-83e4-5b7f-2e65e6d72729@adelielinux.org> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, On Mon, 17 Feb 2020 00:59:10 -0500 Carl Chave wrote: > The odd results of a few more tests and then I'll stop spamming the > list for help on an unsupported architecture: >[snip] Those sound really weird. > uname -a for comparison: > Working chroot: Linux sodpro 5.3.9-300.fc31.x86_64 #1 SMP Wed Nov 6 > 16:13:19 UTC 2019 armv7l Linux > Bare metal: Linux localhost 5.4.18-m300-alps-5 #1 PREEMPT Sat Feb 8 > 01:59:41 UTC 2020 armv5tel Linux But it does seem to be related to target hardware. The one you have is definitely older box (armv5tel). Perhaps you could show the /proc/cpuinfo on it too? But it does start to sound like the ARM boxes of the older kind and does not support unaligned memory access. And seems to be giving undefined behaviour instead of e.g. giving a trap. Reviewing the code in apk, it seems that the murmur hashing code is not properly accounting for alignment. So the symptoms do match. The hash lookup does not work (well, works randomly based on few things), but when enumerating all packages (by using the wildcard in lookups) it'll show everything. We have not really supported these old arm boxes. But perhaps it's better to fix the murmur hash anyway. Or just use some other hash if unaligned access does not work. See: https://www.kernel.org/doc/Documentation/arm/mem_alignment So to verify this, you could: echo 2 > /proc/cpu/alignment If things start to work magically, it's the alignment issue. To verify that no other program is suffering from this, you probably want initial testing runs to be done using: echo 4 > /proc/cpu/alignment That causes application to be killed with SIGBUS when it's trying to access unaligned data. Cheers, Timo