[issue34957] Segementation faults on ARM and ARM64

2018-10-11 Thread Stefan Rink


New submission from Stefan Rink :

When trying to run dask distributed on ARM you will end with a segmentation 
fault on multiple in multiple tests;

Works on AMD64 but does not work on ARM or AARCH64 and results in a Signal 11.

Example;
# python
Python 3.6.6 (default, Sep 29 2018, 05:50:41) 
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)] on 
freebsd12
Type "help", "copyright", "credits" or "license" for more information.
>>> from dask.distributed import Client
>>> client = Client()
Segmentation fault (core dumped)

# gdb /usr/local/bin/python3.6 python3.6.core 
GNU gdb (GDB) 8.1 [GDB v8.1 for FreeBSD]
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd12.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/python3.6...(no debugging symbols 
found)...done.
[New LWP 101213]
Core was generated by `python'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  testcancel (curthread=0x3e8) at /usr/src/lib/libthr/thread/thr_cancel.c:144
144 {
(gdb) bt
#0  testcancel (curthread=0x3e8) at /usr/src/lib/libthr/thread/thr_cancel.c:144
#1  _thr_cancel_enter (curthread=0x3e8) at 
/usr/src/lib/libthr/thread/thr_cancel.c:146
#2  0x402a5b54 in __thr_connect (fd=3, name=0xd310, namelen=106)
at /usr/src/lib/libthr/thread/thr_syscalls.c:179
#3  0x4240e23c in uuid_generate_time () from /usr/local/lib/libuuid.so.1
#4  0x42382068 in ffi_call_SYSV () from /lib/libffi.so.6
#5  0x423822c8 in ffi_call () from /lib/libffi.so.6
#6  0x4234664c in _ctypes_callproc () from 
/usr/local/lib/python3.6/lib-dynload/_ctypes.so
#7  0x423403f0 in ?? () from 
/usr/local/lib/python3.6/lib-dynload/_ctypes.so
#8  0x422f5720 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

--
components: Build, Cross-Build, FreeBSD, ctypes
messages: 327527
nosy: Alex.Willmer, koobs, stefanr...@yahoo.com
priority: normal
severity: normal
status: open
title: Segementation faults on ARM and ARM64
type: crash
versions: Python 2.7, Python 3.6

___
Python tracker 
<https://bugs.python.org/issue34957>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34957] Segementation faults on ARM and ARM64

2018-10-11 Thread Stefan Rink


Stefan Rink  added the comment:

* (re)installed libffi but it was already version 3.2.1.
* Currently compiling python3.7 on both ARM and AARCH64 to test them.
This may take a while because I need to install dask again for 3.7 to test.. 

Didn't try this on Linux ARM yet so I'll also try that.

Ps. If someone wants to try a fix or something but doesn't have access to ARM64 
hardware give me a notice; you can try it on one of my sopine nodes, pine64 or 
on a raspberry.

--

___
Python tracker 
<https://bugs.python.org/issue34957>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34957] Segementation faults on ARM and ARM64

2018-10-11 Thread Stefan Rink


Stefan Rink  added the comment:

On ARM32 it still crashed but on the ARM64 upgrade to 3.7 helped!
Need to do some more testing but it looks like it's working now.

# python3.7
Python 3.7.0 (default, Sep 29 2018, 05:58:20) 
[Clang 6.0.1 (tags/RELEASE_601/final 335540)] on freebsd12
Type "help", "copyright", "credits" or "license" for more information.
>>> from dask.distributed import Client
>>> client = Client()
>>> client.cluster
LocalCluster('tcp://127.0.0.1:22415', workers=4, ncores=4)

--

___
Python tracker 
<https://bugs.python.org/issue34957>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34957] Segementation faults on ARM and ARM64

2018-10-11 Thread Stefan Rink


Stefan Rink  added the comment:

Upgrade to 3.7 fixed the main problem for me, or at least on the hardware/arch 
I use.

-- On ARM32 it still failed but I don't have debugging symbols there so not so 
easy to troubleshoot further --

--
resolution:  -> works for me

___
Python tracker 
<https://bugs.python.org/issue34957>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com