Welcome! Log In Create A New Profile

Advanced

Pogoplug v3 PIP and PIP3 segementation fault

Posted by schnee 
Pogoplug v3 PIP and PIP3 segementation fault
June 03, 2021 08:14PM
Hi,

I have the latest kernel running on my Pogoplug V3 box. I tried both pip and pip3, but both generates segfault.
root@scht:~# uname -r
5.4.101-oxnas-tld-1
root@sch:~# cat /etc/debian_version 
9.13
root@sch:~# pip3
Segmentation fault
root@sch:~# python --version
Python 3.5.3

Here is the segmentation fault trace from the logs:
[  373.945011] 8<--- cut here ---
[  373.948761] Unhandled fault: page domain fault (0x81b) at 0xb6f09000
[  373.955781] pgd = 0d85d787
[  373.959165] [b6f09000] *pgd=63ee7831, *pte=61b0355f, *ppte=61b03c7e
[  373.966103] Internal error: : 81b [#2] PREEMPT SMP ARM
[  373.971906] Modules linked in: dwmac_generic
[  373.976857] CPU: 0 PID: 4051 Comm: pip3 Tainted: G      D           5.4.101-oxnas-tld-1 #1.0
[  373.985937] Hardware name: Generic DT based system
[  373.991413] PC is at v6_coherent_kern_range+0x4/0x2c
[  373.997050] LR is at arm_syscall+0x274/0x354
[  374.001989] pc : [<c010e550>]    lr : [<c010647c>]    psr: 80000013
[  374.008913] sp : c6ae5f88  ip : b6f09008  fp : b673a458
[  374.014801] r10: 00000000  r9 : c6ae4000  r8 : c01011e4
[  374.020692] r7 : 000f0002  r6 : b6f0901b  r5 : c6ae4000  r4 : b6f0901b
[  374.027875] r3 : 00000013  r2 : c6e74560  r1 : b6f0901b  r0 : b6f09000
[  374.035061] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  374.042854] Control: 00c5787d  Table: 63cac00a  DAC: 00000051
[  374.049259] Process pip3 (pid: 4051, stack limit = 0xb2ab1d3b)
[  374.055751] Stack: (0xc6ae5f88 to 0xc6ae6000)
[  374.060782] 5f80:                   ffffffff 00000000 bec13654 000000c0 b6f09008 b62af894
[  374.069619] 5fa0: b63a98cc c0101000 b6f09008 b62af894 b6f09008 b6f0901b 00000000 b6f09008
[  374.078453] 5fc0: b6f09008 b62af894 b63a98cc 000f0002 b62af880 b63c8000 b62ab5b8 b673a458
[  374.087288] 5fe0: 00000014 bec136dc b63b4f30 b63b5b24 40000010 b6f09008 00000000 00000000
[  374.096130] [<c010e550>] (v6_coherent_kern_range) from [<c010647c>] (arm_syscall+0x274/0x354)
[  374.105318] [<c010647c>] (arm_syscall) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[  374.113715] Exception stack(0xc6ae5fa8 to 0xc6ae5ff0)
[  374.119434] 5fa0:                   b6f09008 b62af894 b6f09008 b6f0901b 00000000 b6f09008
[  374.128271] 5fc0: b6f09008 b62af894 b63a98cc 000f0002 b62af880 b63c8000 b62ab5b8 b673a458
[  374.137100] 5fe0: 00000014 bec136dc b63b4f30 b63b5b24
[  374.142824] Code: ee070f15 e12fff1e e12fff1e e3c0001f (ee070f3a) 
[  374.149583] ---[ end trace caf5373235870c77 ]---

With previous kernels (last i used was 4.4.176) it worked just fine. Any ideas what can cause this issue with the current kernel?

Thanks

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
June 03, 2021 10:40PM
Hey schnee!

> root@sch:~# cat /etc/debian_version
> 9.13

No idea why. Perhaps upgrading Debian to the latest 10.x will help.

====

Other topic, could you post the link to the post for your Pogo V3 SATA-boot script (I kept losing it when I close browser tabs!). I wanted to add your post to the Wiki thread.

Also, there seems to be some problem running the script with the latest kernel. Some user has reported it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
June 04, 2021 04:50PM
I did some test on another box and it seems to be kernel related. I moved to 5.4.101 and i started the get the segmentation faults. Upgraded to debian 10 and it did not help.

oot@schcamus:~# cat /etc/debian_version 
10.9
root@schcamus:~# pip
Segmentation fault
root@schcamus:~# uname -r
5.4.101-oxnas-tld-1
root@schcamus:~#
Going back to kernel 4.14.198 fixes the issue
root@schcamus:~# uname -r
4.14.198-oxnas-tld-1
root@schcamus:~# pip

Usage:   
  pip <command> [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).
  --log <path>                Path to a verbose appending log.
  --proxy <proxy>             Specify a proxy in the form [user:passwd@]proxy.server:port.
  --retries <retries>         Maximum number of retries each connection should attempt (default 5 times).
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
  --trusted-host <hostname>   Mark this host as trusted, even though it does not have valid or any HTTPS.
  --cert <path>               Path to alternate CA bundle.
  --client-cert <path>        Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
  --cache-dir <dir>           Store the cache data in <dir>.
  --no-cache-dir              Disable the cache.
  --disable-pip-version-check
                              Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.
  --no-color                  Suppress colored output
root@schcamus:~#


PS: i will look for the SATA script, i have it somewhere, but did not use it for some time.

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
January 22, 2022 05:19PM
Finally i found the SATA boot disk creating script. Here is a link https://mega.nz/file/YRVhzQBa#jnu1JbxtMf8JStWZ0_m70AudAjfUSi-fLqhmWyxGIhQ

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 12, 2022 05:37PM
So i just built a new system from scratch (latest rootfs), still have the error with the new kernel and the dump is still the same.

[13425.208517] 8<--- cut here ---
[13425.212267] Unhandled fault: page domain fault (0x81b) at 0xb6f98000
[13425.219279] pgd = 7ee1738c
[13425.222663] [b6f98000] *pgd=67b6f831, *pte=62c0a55f, *ppte=62c0ac7e
[13425.229601] Internal error: : 81b [#11] PREEMPT SMP ARM
[13425.235489] Modules linked in: uas dwmac_generic
[13425.240793] CPU: 1 PID: 6567 Comm: pip3 Tainted: G      D           5.4.101-oxnas-tld-1 #1.0
[13425.249879] Hardware name: Generic DT based system
[13425.255349] PC is at v6_coherent_kern_range+0x4/0x2c
[13425.260989] LR is at arm_syscall+0x274/0x354
[13425.265927] pc : [<c010e550>]    lr : [<c010647c>]    psr: 80000013
[13425.272852] sp : c7411f88  ip : b6f98008  fp : b5e50970
[13425.278740] r10: 00000000  r9 : c7410000  r8 : c01011e4
[13425.284631] r7 : 000f0002  r6 : b6f9801b  r5 : c7410000  r4 : b6f9801b
[13425.291814] r3 : 00000013  r2 : c62dc560  r1 : b6f9801b  r0 : b6f98000
[13425.299000] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[13425.306790] Control: 00c5787d  Table: 662b400a  DAC: 00000051
[13425.313198] Process pip3 (pid: 6567, stack limit = 0xd97b0ddb)
[13425.319695] Stack: (0xc7411f88 to 0xc7412000)
[13425.324725] 1f80:                   ffffffff 00000000 01f9c1c0 000000c0 b6f98008 b6008d64
[13425.333562] 1fa0: b5e4e140 c0101000 b6f98008 b6008d64 b6f98008 b6f9801b 00000000 b6008d50
[13425.342397] 1fc0: b6f98008 b6008d64 b5e4e140 000f0002 b6008d50 b5e32c20 ffffbf1c b5e50970
[13425.351232] 1fe0: 00000014 beb23b9c b5e33a88 b5e33cfc 40000010 b6f98008 00000000 00000000
[13425.360084] [<c010e550>] (v6_coherent_kern_range) from [<c010647c>] (arm_syscall+0x274/0x354)
[13425.369272] [<c010647c>] (arm_syscall) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[13425.377671] Exception stack(0xc7411fa8 to 0xc7411ff0)
[13425.383395] 1fa0:                   b6f98008 b6008d64 b6f98008 b6f9801b 00000000 b6008d50
[13425.392230] 1fc0: b6f98008 b6008d64 b5e4e140 000f0002 b6008d50 b5e32c20 ffffbf1c b5e50970
[13425.401062] 1fe0: 00000014 beb23b9c b5e33a88 b5e33cfc
[13425.406789] Code: ee070f15 e12fff1e e12fff1e e3c0001f (ee070f3a) 
[13425.413550] ---[ end trace c2f4280a39f3dcd4 ]---

No idea what is going wrong

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 12, 2022 09:51PM
Schnee,

Not sure about this error either. Any time I see error like this "v6_coherent_kern_range", I don't want to try to find the cause :) This ArmV6 SoC is not fun regarding this issue.

I'll build the latest stable 5.4.x for this box. Perhaps it will help.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 14, 2022 06:38PM
Thanks, will check with the next kernel. Meanwhile just to confirm goind back to 4.x.x kernel solves the issue

Schnee



Edited 1 time(s). Last edit at 02/19/2022 06:52PM by schnee.
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 22, 2022 05:43PM
Schnee,

linux-5.4.179-oxnas-tld-1 was released:

https://forum.doozan.com/read.php?2,16044

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 22, 2022 06:42PM
Thanks Bodhi!

Unfortunatelly it did not help:
root@schnee:~# pip3
Segmentation fault
root@schnee:~# flexget
Segmentation fault

Here is the trace with the same error

[  248.669091] 8<--- cut here ---
[  248.672839] Unhandled fault: page domain fault (0x81b) at 0xb6efe000
[  248.679854] pgd = 6eeb95c9
[  248.683238] [b6efe000] *pgd=669b4831, *pte=622c955f, *ppte=622c9c7e
[  248.690178] Internal error: : 81b [#2] PREEMPT SMP ARM
[  248.695976] Modules linked in: uas dwmac_generic
[  248.701271] CPU: 1 PID: 1727 Comm: pip3 Tainted: G      D           5.4.179-oxnas-tld-1 #1.0
[  248.710353] Hardware name: Generic DT based system
[  248.715822] PC is at v6_coherent_kern_range+0x4/0x2c
[  248.721456] LR is at arm_syscall+0x170/0x35c
[  248.726397] pc : [<c010e490>]    lr : [<c01062dc>]    psr: 40000013
[  248.733322] sp : c60f3f80  ip : b6efe008  fp : b5d8e970
[  248.739207] r10: 00000000  r9 : c60f2000  r8 : c01011e4
[  248.745098] r7 : b6efe01b  r6 : b6efe01b  r5 : c60f2000  r4 : 00000002
[  248.752281] r3 : c718c560  r2 : 00000000  r1 : b6efe01b  r0 : b6efe000
[  248.759467] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  248.767255] Control: 00c5787d  Table: 664b800a  DAC: 00000051
[  248.773662] Process pip3 (pid: 1727, stack limit = 0x18e43801)
[  248.780157] Stack: (0xc60f3f80 to 0xc60f4000)
[  248.785190] 3f80: 00000101 c0109fac c78029c0 ffffffff 00000000 b6efe008 b5f75d64 b5d8c140
[  248.794024] 3fa0: 000f0002 c0101000 b6efe008 b5f75d64 b6efe008 b6efe01b 00000000 b5f75d50
[  248.802862] 3fc0: b6efe008 b5f75d64 b5d8c140 000f0002 b5f75d50 b5d70c20 ffffbf1c b5d8e970
[  248.811694] 3fe0: 00000014 be9d8bac b5d71a88 b5d71cfc 40000010 b6efe008 00000000 00000000
[  248.820536] [<c010e490>] (v6_coherent_kern_range) from [<c01062dc>] (arm_syscall+0x170/0x35c)
[  248.829719] [<c01062dc>] (arm_syscall) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[  248.838115] Exception stack(0xc60f3fa8 to 0xc60f3ff0)
[  248.843837] 3fa0:                   b6efe008 b5f75d64 b6efe008 b6efe01b 00000000 b5f75d50
[  248.852669] 3fc0: b6efe008 b5f75d64 b5d8c140 000f0002 b5f75d50 b5d70c20 ffffbf1c b5d8e970
[  248.861498] 3fe0: 00000014 be9d8bac b5d71a88 b5d71cfc
[  248.867223] Code: ee070f15 e12fff1e e12fff1e e3c0001f (ee070f3a) 
[  248.873981] ---[ end trace 9b7e4d1df3b73ebd ]---
[  256.238417] 8<--- cut here ---
[  256.242165] Unhandled fault: page domain fault (0x81b) at 0xb6f2c000
[  256.249180] pgd = f0b2ec08
[  256.252564] [b6f2c000] *pgd=66499831, *pte=62ac155f, *ppte=62ac1c7e
[  256.259499] Internal error: : 81b [#3] PREEMPT SMP ARM
[  256.265300] Modules linked in: uas dwmac_generic
[  256.270594] CPU: 1 PID: 1728 Comm: flexget Tainted: G      D           5.4.179-oxnas-tld-1 #1.0
[  256.279941] Hardware name: Generic DT based system
[  256.285411] PC is at v6_coherent_kern_range+0x4/0x2c
[  256.291046] LR is at arm_syscall+0x170/0x35c
[  256.295987] pc : [<c010e490>]    lr : [<c01062dc>]    psr: 40000013
[  256.302912] sp : c60f3f80  ip : b6f2c008  fp : b6443970
[  256.308800] r10: 00000000  r9 : c60f2000  r8 : c01011e4
[  256.314688] r7 : b6f2c01b  r6 : b6f2c01b  r5 : c60f2000  r4 : 00000002
[  256.321871] r3 : c718c560  r2 : 00000000  r1 : b6f2c01b  r0 : b6f2c000
[  256.329057] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  256.336844] Control: 00c5787d  Table: 664d800a  DAC: 00000051
[  256.343252] Process flexget (pid: 1728, stack limit = 0x18e43801)
[  256.350003] Stack: (0xc60f3f80 to 0xc60f4000)
[  256.355036] 3f80: 00000101 c0109fac c69cd300 ffffffff 00000000 b6f2c008 b6513904 b6441140
[  256.363870] 3fa0: 000f0002 c0101000 b6f2c008 b6513904 b6f2c008 b6f2c01b 00000000 b65138f0
[  256.372705] 3fc0: b6f2c008 b6513904 b6441140 000f0002 b65138f0 b6425c20 ffffbf1c b6443970
[  256.381539] 3fe0: 00000014 bece5a6c b6426a88 b6426cfc 40000010 b6f2c008 00000000 00000000
[  256.390379] [<c010e490>] (v6_coherent_kern_range) from [<c01062dc>] (arm_syscall+0x170/0x35c)
[  256.399564] [<c01062dc>] (arm_syscall) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[  256.407961] Exception stack(0xc60f3fa8 to 0xc60f3ff0)
[  256.413683] 3fa0:                   b6f2c008 b6513904 b6f2c008 b6f2c01b 00000000 b65138f0
[  256.422520] 3fc0: b6f2c008 b6513904 b6441140 000f0002 b65138f0 b6425c20 ffffbf1c b6443970
[  256.431347] 3fe0: 00000014 bece5a6c b6426a88 b6426cfc
[  256.437071] Code: ee070f15 e12fff1e e12fff1e e3c0001f (ee070f3a) 
[  256.443829] ---[ end trace 9b7e4d1df3b73ebe ]---

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 22, 2022 07:16PM
Schnee,

How did you install PIP3? was it from Debian repo?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 22, 2022 07:34PM
bodhi Wrote:
-------------------------------------------------------
> Schnee,
>
> How did you install PIP3? was it from Debian repo?

Yes, i installed it with
 apt install python3-pip

I installed flexget while the box was running a 4.x.x kernel

Edit: corrected apt command pip3 -> python3-pip

Schnee



Edited 2 time(s). Last edit at 02/23/2022 06:40AM by schnee.
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 22, 2022 08:05PM
Hi Schnee,

> Yes, i installed it with
 apt install pip3

I tried to search for this package and it is not in Debian repo. Wondering if you have a different repo added to your /etc/apt/sources.list ?

https://packages.debian.org/search?suite=all&arch=any&searchon=names&keywords=pip3

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
February 23, 2022 06:38AM
bodhi Wrote:
-------------------------------------------------------
> Hi Schnee,
>
> > Yes, i installed it with
 apt install
> pip3
>
>
> I tried to search for this package and it is not
> in Debian repo. Wondering if you have a different
> repo added to your /etc/apt/sources.list ?
>
> https://packages.debian.org/search?suite=all&arch=any&searchon=names&keywords=pip3

My bad, i typed the command from memory. The correct package name is python3-pip

https://packages.debian.org/search?suite=all&arch=any&searchon=names&keywords=python3-pip

(edited the apt command in the post)

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
March 01, 2022 07:50AM
Not even sure when I installed it but it works on my unit.

:~# uname -r
5.4.179-oxnas-tld-1

:~# cat /etc/debian_version 
bookworm/sid

:~# python3 --version
Python 3.9.10
(note: :~# python --version had no results for me)


:~#  apt install python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

I run the list command and no errors.

:~# pip3 list
Package                      Version
---------------------------- -------
distro                       1.7.0
dnspython                    2.2.0
lightdm-gtk-greeter-settings 1.2.2
pip                          22.0.2
PyGObject                    3.42.0
setuptools                   59.6.0
six                          1.16.0
speedtest-cli                2.1.3
ufw                          0.36.1
urllib3                      1.26.5
wheel                        0.37.1

not sure how this helps, but it does work:)

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version uname -r 5.4.179-oxnas-tld-1(root@tldDebian)



Edited 2 time(s). Last edit at 03/01/2022 08:00AM by echowarrior108.
Re: Pogoplug v3 PIP and PIP3 segementation fault
March 01, 2022 11:18AM
Thanks for the update. It seems that you are on a different Debian verison (bullseye<>buster). here are the same commands and results from my box:
root@schtorrent:~# cat /etc/debian_version 
10.11
root@server:~# uname -r
5.4.179-oxnas-tld-1
root@server:~# python3 --version
Python 3.7.3
root@server:~# apt install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version (18.1-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@server:~# pip3 list
Segmentation fault
root@server:~#

I may consider an upgrade to bullseye, but i am not sure if that is going to fix the issue.

The other difference i see is that i am using a PogoPlug V3 Classic, while yours is a Pro.

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
March 01, 2022 03:48PM
> I may consider an upgrade to bullseye, but i am
> not sure if that is going to fix the issue.

It often does. It seems this type of problem, i.e. segfault, is/was recurring with python-pip3 (Google search got a lot of hits).

> The other difference i see is that i am using a
> PogoPlug V3 Classic, while yours is a Pro.

That should not be related, the difference between Pro and Classic is the PCIe port. That port can be used for Wifi (stock) or mPCied SATA.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
March 01, 2022 08:15PM
Thanks for the suggestions echowarrior108 nad bodhi. Upgrading to Debian 11 resolved the issue:

root@server:~# pip3

Usage:   
  pip3 <command> [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  cache                       Inspect and manage pip's wheel cache.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.

Thanks again!

Schnee
Re: Pogoplug v3 PIP and PIP3 segementation fault
March 01, 2022 09:12PM
> Thanks for the suggestions echowarrior108 nad
> bodhi. Upgrading to Debian 11 resolved the issue:

Awesome!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug v3 PIP and PIP3 segementation fault
March 03, 2022 05:55AM
No problem, glad it helped!!!!!

learning is living! Echowarrior108



device pogoplug-pro v3

Debian GNU/Linux bullseye/sid \n \l
Linux version uname -r 5.4.179-oxnas-tld-1(root@tldDebian)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: