apt-get upgrade breaks python3
#2
reinstalled debian stretch 4.4.77 and did a
apt-get update -y
apt-get install linux-rock64 -y (instead of pt-get upgrade)

then ran the following python

root@rock64:/mnt/home/rock64/0636920028154-master-c581427d3e9fc7ef210dd46d112d2eae4043d557/lp5e-code-1.0-jun1813/code# python3 pybench_cases.py
Segmentation fault
root@rock64:/mnt/home/rock64/0636920028154-master-c581427d3e9fc7ef210dd46d112d2eae4043d557/lp5e-code-1.0-jun1813/code# python3 pybench_cases.py
Segmentation fault
root@rock64:/mnt/home/rock64/0636920028154-master-c581427d3e9fc7ef210dd46d112d2eae4043d557/lp5e-code-1.0-jun1813/code# python3 pybench_cases.py
3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118]
2.1335  ['[x ** 2 for x in range(1000)]']
2.5179  ['res=[]\nfor x in range(1000): res.append(x ** 2)']
3.0498  ['list(map(lambda x: x ** 2, range(1000)))']
2.3948  ['list(x ** 2 for x in range(1000))']
4.7236  ["s = 'spam' * 2500\nx = [s[i] for i in range(10000)]"]
6.6688  ["s = '?'\nfor i in range(10000): s += '?'"]
root@rock64:/mnt/home/rock64/0636920028154-master-c581427d3e9fc7ef210dd46d112d2eae4043d557/lp5e-code-1.0-jun1813/code# cat pybench_cases.py
"""
pybench_cases.py: Run pybench on a set of pythons and statements.

Select modes by editing this script or using command-line arguments (in
sys.argv): e.g., run a "C:\python27\python pybench_cases.py" to test just
one specific version on stmts, "pybench_cases.py -a" to test all pythons
listed, or a "py -3 pybench_cases.py -a -t" to trace command lines too.
"""

import pybench, sys

pythons = [                                                         # (ispy3?, path)
   (1, 'C:\python33\python'),
   (0, 'C:\python27\python'),
   (0, 'C:\pypy\pypy-1.9\pypy')
]

stmts = [                                                           # (num,rpt,stmt)
   (0, 0, "[x ** 2 for x in range(1000)]"),                        # Iterations                        
   (0, 0, "res=[]\nfor x in range(1000): res.append(x ** 2)"),     # \n=multistmt
   (0, 0, "$listif3(map(lambda x: x ** 2, range(1000)))"),         # \n\t=indent
   (0, 0, "list(x ** 2 for x in range(1000))"),                    # $=list or ''
   (0, 0, "s = 'spam' * 2500\nx = [s[i] for i in range(10000)]"),  # String ops
   (0, 0, "s = '?'\nfor i in range(10000): s += '?'"),
]

tracecmd = '-t' in sys.argv                           # -t: trace commmand lines?
pythons  = pythons if '-a' in sys.argv else None      # -a: all in list, else one?
pybench.runner(stmts, pythons, tracecmd)

it gives Segmentation Fault first 2 times i try to run but on 3rd try runs fine
  Reply


Messages In This Thread
apt-get upgrade breaks python3 - by edwinbmiller - 03-30-2018, 05:55 PM
RE: apt-get upgrade breaks python3 - by edwinbmiller - 03-30-2018, 06:57 PM
RE: apt-get upgrade breaks python3 - by xalius - 03-31-2018, 07:23 AM
RE: apt-get upgrade breaks python3 - by pfeerick - 04-01-2018, 03:33 AM
RE: apt-get upgrade breaks python3 - by prof7bit - 04-02-2018, 06:20 AM
RE: apt-get upgrade breaks python3 - by prof7bit - 04-02-2018, 08:49 AM
RE: apt-get upgrade breaks python3 - by bony - 04-26-2018, 05:52 AM
RE: apt-get upgrade breaks python3 - by bony - 04-26-2018, 08:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Swap/Upgrade Storage Device? r00t3d 0 689 08-17-2022, 06:11 AM
Last Post: r00t3d
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 12,336 08-31-2020, 01:41 AM
Last Post: as365n4
  Rock64 bricked after upgrade jean_bruder 7 7,524 04-02-2020, 09:27 AM
Last Post: tophneal
  how to upgrade? skipper 0 1,968 06-10-2019, 02:07 AM
Last Post: skipper
  Should I Upgrade? MotoTom 1 2,646 10-03-2018, 08:39 PM
Last Post: netadmin90
  Rock64 no longer boots after dist-upgrade KernelPanic 9 9,541 06-16-2018, 11:03 AM
Last Post: KernelPanic
  canNOT boot after a normal apt upgrade cooker 2 3,309 05-28-2018, 12:35 PM
Last Post: zaflaucich
Photo Failure to upgrade will be wrong ycllwl 1 2,280 03-26-2018, 12:53 PM
Last Post: xalius
  bionic upgrade errors 6.25 193 noob 0 2,060 03-17-2018, 01:35 PM
Last Post: noob
  How to upgrade nice 3 4,986 11-03-2017, 11:49 AM
Last Post: easyfab

Forum Jump:


Users browsing this thread: 1 Guest(s)