Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"What man has done, man can aspire to do." -- Jerry Pournelle, about space flight


computers / comp.sys.raspberry-pi / Pi3B+ illegal instruction in python3 STUR

SubjectAuthor
* Pi3B+ illegal instruction in python3 STURMarco Moock
+- Re: Pi3B+ illegal instruction in python3 STURAndy Burns
+* Re: Pi3B+ illegal instruction in python3 STURdruck
|`* Re: Pi3B+ illegal instruction in python3 STURMarco Moock
| +- Re: Pi3B+ illegal instruction in python3 STURdruck
| `- Re: Pi3B+ illegal instruction in python3 STURRobert Riches
`- Re: Pi3B+ illegal instruction in python3 STURRichard Kettlewell

1
Pi3B+ illegal instruction in python3 STUR

<uq02nu$1eral$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9232&group=comp.sys.raspberry-pi#9232

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usene...@dorfdsl.de (Marco Moock)
Newsgroups: comp.sys.raspberry-pi
Subject: Pi3B+ illegal instruction in python3 STUR
Date: Wed, 7 Feb 2024 15:05:50 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uq02nu$1eral$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Feb 2024 14:05:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5193b2f3ce3021f666ef37ad4b1193a1";
logging-data="1535317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191YGX5pprfNCGl9Doy3hWs"
Cancel-Lock: sha1:oMcTxo4AIIcvHyVq5JdDYW6j2ow=
 by: Marco Moock - Wed, 7 Feb 2024 14:05 UTC

Hello!

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063253

Can people here confirm that problem with their Pi and Debian 12?
3.11.2-1+b1
Python3 is completely broken on that machine.

--
kind regards
Marco

Spam und Werbung bitte an ichwillgesperrtwerden@nirvana.admins.ws

Re: Pi3B+ illegal instruction in python3 STUR

<l2hk8tF9sq0U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9234&group=comp.sys.raspberry-pi#9234

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi3B+ illegal instruction in python3 STUR
Date: Wed, 7 Feb 2024 15:00:44 +0000
Lines: 18
Message-ID: <l2hk8tF9sq0U1@mid.individual.net>
References: <uq02nu$1eral$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net yYaIh5+EAVV2o8xGBV8agAqSsdkkxDhmyd5U5iNUbDeTg3J6fM
Cancel-Lock: sha1:KfIRbX4RJaAnS2AvRXssbLXu6pU= sha256:SQk00W7AFkman+nhT1GuW+nEPeo5snfRu0Skev36KDk=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <uq02nu$1eral$1@dont-email.me>
 by: Andy Burns - Wed, 7 Feb 2024 15:00 UTC

Marco Moock wrote:

> Can people here confirm that problem with their Pi and Debian 12?
> 3.11.2-1+b1
> Python3 is completely broken on that machine.

Mine isn't a 3B+ so the following may be of no use ...

andy@raspberrypi:~ $ dmesg | grep -i machine
[ 0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2

andy@raspberrypi:~ $ uname -a
Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST
2022 aarch64 GNU/Linux

andy@raspberrypi:~ $ python3 -V
Python 3.9.2

Re: Pi3B+ illegal instruction in python3 STUR

<uq0rld$1jbtr$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9253&group=comp.sys.raspberry-pi#9253

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi3B+ illegal instruction in python3 STUR
Date: Wed, 7 Feb 2024 21:11:02 +0000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uq0rld$1jbtr$1@dont-email.me>
References: <uq02nu$1eral$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Feb 2024 21:11:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6195639c7dea3c528e99d592489b4639";
logging-data="1683387"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cBgzS2u4Ke33AOVvwZmOi"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Uut42HF2m9K/GvDw5PID0y+kphA=
Content-Language: en-GB
In-Reply-To: <uq02nu$1eral$1@dont-email.me>
 by: druck - Wed, 7 Feb 2024 21:11 UTC

On 07/02/2024 14:05, Marco Moock wrote:
> Hello!
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063253
>
> Can people here confirm that problem with their Pi and Debian 12?
> 3.11.2-1+b1
> Python3 is completely broken on that machine.
>
Are you running just the 64 bit kernel or the 64 bit userland too?
If it's the latter I don't recommend that with only 1GB of memory.

I'm only running full 64 bit Bookworm on Pi 4s and 5s, and there are no
Python issues on those.

---druck

Re: Pi3B+ illegal instruction in python3 STUR

<wwvo7cr6uz3.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9270&group=comp.sys.raspberry-pi#9270

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi3B+ illegal instruction in python3 STUR
Date: Thu, 08 Feb 2024 11:44:48 +0000
Organization: terraraq NNTP server
Message-ID: <wwvo7cr6uz3.fsf@LkoBDZeT.terraraq.uk>
References: <uq02nu$1eral$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="3450"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:DaWDv1IuXUouADmwL7FrQip9mNA=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Thu, 8 Feb 2024 11:44 UTC

Marco Moock <mm+usenet-es@dorfdsl.de> writes:
> Hello!
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063253
>
> Can people here confirm that problem with their Pi and Debian 12?
> 3.11.2-1+b1
> Python3 is completely broken on that machine.

“It works on my computer”

richard@chulka:~ $ cat /proc/cpuinfo
[...]
Revision : a02082
Serial : 0000000068bf39e8
Model : Raspberry Pi 3 Model B Rev 1.2

richard@chulka:~ $ uname -a
Linux chulka 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

richard@chulka:~ $ dpkg -l linux-image-* python3-minimal libpython3.11 libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-===================-============-===============================================================
ii libc6:arm64 2.36-9+rpt2+deb12u4 arm64 GNU C Library: Shared libraries
ii libpython3.11:arm64 3.11.2-6 arm64 Shared Python runtime library (version 3.11)
ii linux-image-6.1.0-rpi7-rpi-v8 1:6.1.63-1+rpt1 arm64 Linux 6.1 for Raspberry Pi v8, Raspberry Pi
ii linux-image-6.1.0-rpi8-rpi-v8 1:6.1.73-1+rpt1 arm64 Linux 6.1 for Raspberry Pi v8, Raspberry Pi
ii linux-image-rpi-v8 1:6.1.73-1+rpt1 arm64 Linux for Raspberry Pi v8 (meta-package)
ii python3-minimal 3.11.2-1+b1 arm64 minimal subset of the Python language (default python3 version)

richard@chulka:~ $ file -L /usr/bin/python3
/usr/bin/python3: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=15a1b7b17a3e246ca60bac3646ced99af27ca711, for GNU/Linux 3.7.0, stripped

richard@chulka:~ $ sha256sum /usr/bin/python3
37e79c476a2b3feb191fb4af8012363bbde2461fce10418a569bed0765f86e95 /usr/bin/python3

richard@chulka:~ $ python3
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

However there is an inconsistency with the material in the bug report.
Stefano quotes a STUR insn but if I disassemble it I get LDP at that
location:

richard@chulka:~ $ gdb /usr/bin/python3 junk/python3_core_dump.34704
[..]
Reading symbols from /usr/bin/python3...
Reading symbols from /usr/lib/debug/.build-id/15/a1b7b17a3e246ca60bac3646ced99af27ca711.debug...
[New LWP 34704]

warning: Build-id of /lib/aarch64-linux-gnu/libm.so.6 does not match core file.

warning: Build-id of /lib/aarch64-linux-gnu/libc.so.6 does not match core file.

warning: Build-id of /lib/ld-linux-aarch64.so.1 does not match core file.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Core was generated by `python3'.
Program terminated with signal SIGILL, Illegal instruction.
#0 0x0000000000510d48 in _PyObject_GC_UNTRACK (op=<optimized out>) at ../Include/internal/pycore_object.h:169
169 ../Include/internal/pycore_object.h: No such file or directory.
(gdb) disassemble 0x0000000000510d48
Dump of assembler code for function gen_dealloc:
0x0000000000510d40 <+0>: stp x29, x30, [sp, #-96]!
0x0000000000510d44 <+4>: mov x29, sp
=> 0x0000000000510d48 <+8>: ldp x3, x2, [x0, #-16]
0x0000000000510d4c <+12>: stp x19, x20, [sp, #16]

This could reflect the libc-level differences, but gen_dealloc is part
of the Python implementation, not the C library.

--
https://www.greenend.org.uk/rjk/

Re: Pi3B+ illegal instruction in python3 STUR

<uq3a41$22tr1$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9275&group=comp.sys.raspberry-pi#9275

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usene...@dorfdsl.de (Marco Moock)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi3B+ illegal instruction in python3 STUR
Date: Thu, 8 Feb 2024 20:30:08 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uq3a41$22tr1$2@dont-email.me>
References: <uq02nu$1eral$1@dont-email.me>
<uq0rld$1jbtr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 19:30:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="62eede6cd8d595c28b555b3ea96108de";
logging-data="2193249"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ltZnjRYAvqhkwd2q4SAZ9"
Cancel-Lock: sha1:SnQ/efxGrAAdgUYKFnXQUP3st/0=
 by: Marco Moock - Thu, 8 Feb 2024 19:30 UTC

On 07.02.2024 um 21:11 Uhr druck wrote:

> On 07/02/2024 14:05, Marco Moock wrote:
> > Hello!
> >
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063253
> >
> > Can people here confirm that problem with their Pi and Debian 12?
> > 3.11.2-1+b1
> > Python3 is completely broken on that machine.
> >
> Are you running just the 64 bit kernel or the 64 bit userland too?
> If it's the latter I don't recommend that with only 1GB of memory.

All the packages are arm64.

I am aware that they need more RAM, but does that create such errors?

--
kind regards
Marco

Send spam to muell456@cartoonies.org

Re: Pi3B+ illegal instruction in python3 STUR

<uq3gqr$24msr$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9276&group=comp.sys.raspberry-pi#9276

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi3B+ illegal instruction in python3 STUR
Date: Thu, 8 Feb 2024 21:24:35 +0000
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uq3gqr$24msr$1@dont-email.me>
References: <uq02nu$1eral$1@dont-email.me> <uq0rld$1jbtr$1@dont-email.me>
<uq3a41$22tr1$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 21:24:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02e42b797f3859777138a66324e2174a";
logging-data="2251675"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WfdDKm0xe5yR7gnk0kHoM"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:cO0lTQRJgyK8rQasrQamj5aiu6o=
In-Reply-To: <uq3a41$22tr1$2@dont-email.me>
Content-Language: en-GB
 by: druck - Thu, 8 Feb 2024 21:24 UTC

On 08/02/2024 19:30, Marco Moock wrote:
> On 07.02.2024 um 21:11 Uhr druck wrote:
>
>> On 07/02/2024 14:05, Marco Moock wrote:
>>> Hello!
>>>
>>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063253
>>>
>>> Can people here confirm that problem with their Pi and Debian 12?
>>> 3.11.2-1+b1
>>> Python3 is completely broken on that machine.
>>>
>> Are you running just the 64 bit kernel or the 64 bit userland too?
>> If it's the latter I don't recommend that with only 1GB of memory.
>
> All the packages are arm64.
>
> I am aware that they need more RAM, but does that create such errors?

It doesn't, you've got some configuration problem that will probably
only be installed by a reinstall. If you are going down that route I'm
suggesting that for machines which only have 1GB and function worse with
a 64 bit OS and programs, you reinstall a 32 bit OS.

---druck

Re: Pi3B+ illegal instruction in python3 STUR

<slrnusb9df.one.spamtrap42@one.localnet>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=9279&group=comp.sys.raspberry-pi#9279

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: spamtra...@jacob21819.net (Robert Riches)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi3B+ illegal instruction in python3 STUR
Date: 9 Feb 2024 04:10:23 GMT
Organization: none-at-all
Lines: 29
Message-ID: <slrnusb9df.one.spamtrap42@one.localnet>
References: <uq02nu$1eral$1@dont-email.me> <uq0rld$1jbtr$1@dont-email.me>
<uq3a41$22tr1$2@dont-email.me>
Reply-To: spamtrap42@jacob21819.net
X-Trace: individual.net KB8E0Dh/9qxqEZxlA8IvpwMnPvW6zGEffDld4GHo7CHMWYEq6g
Cancel-Lock: sha1:prU3eYR+H12HXEwmIiD4BicaPsY= sha256:UYkXsVYbMBRLXWPaxFuNg2XokoClAHSk65X+roWoc8s=
User-Agent: slrn/1.0.3 (Linux)
 by: Robert Riches - Fri, 9 Feb 2024 04:10 UTC

On 2024-02-08, Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
> On 07.02.2024 um 21:11 Uhr druck wrote:
>
>> On 07/02/2024 14:05, Marco Moock wrote:
>> > Hello!
>> >
>> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063253
>> >
>> > Can people here confirm that problem with their Pi and Debian 12?
>> > 3.11.2-1+b1
>> > Python3 is completely broken on that machine.
>> >
>> Are you running just the 64 bit kernel or the 64 bit userland too?
>> If it's the latter I don't recommend that with only 1GB of memory.
>
> All the packages are arm64.
>
> I am aware that they need more RAM, but does that create such errors?

Just a wild guess on my part, but in theory if the program in
question called malloc() and neglected to check whether the
result was NULL, lack of RAM could be a contributing factor to a
number of segmentation faults or similar. There might be a
scenario where it could end up in an illegal instruction fault.

--
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor