[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-17 Thread László Károlyi

László Károlyi  added the comment:

Hey,

the problem normalized after installing the newest version of cryptography, 
with which I could reproduce the same problem too.

It turned out that asn1crypto wasn't even needed in my project.

Sorry for the inconvenience, and thank you for your help.

--

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



[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-16 Thread László Károlyi

László Károlyi  added the comment:

Upon reinstalling openssl with homebrew, I get the following info:

--
openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto 
libraries.

If you need to have openssl first in your PATH run:
  echo 'set -g fish_user_paths "/usr/local/opt/openssl/bin" $fish_user_paths' 
>> ~/.config/fish/config.fish

For compilers to find openssl you may need to set:
  set -gx LDFLAGS "-L/usr/local/opt/openssl/lib"
  set -gx CPPFLAGS "-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  set -gx PKG_CONFIG_PATH "/usr/local/opt/openssl/lib/pkgconfig"


So assumingly the system-wide library should be preferred, may it be whatever 
one.

`/usr/bin/openssl version` says LibreSSL 2.8.3.

Probably I could still link to the homebrew installed SSL using the provided 
flags, but I'm quite sure this same problem will pop up at a lot of other 
Catalina users.

--

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



[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-16 Thread László Károlyi

László Károlyi  added the comment:

Here's an md5sum of /usr/lib/libcrypto.dylib:

MD5 (/usr/lib/libcrypto.dylib) = d19ca8b227c32d30f92ed0665dfe73d0

--

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



[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-16 Thread László Károlyi

László Károlyi  added the comment:

As I'm triangulating the problem down, I can now reproduce the problem without 
running django:

python -X faulthandler -c 'from asn1crypto._perf import _big_num_ctypes'

gives the output:

Fatal Python error: Aborted

Current thread 0x000117155dc0 (most recent call first):
  File 
"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py",
 line 364 in __init__
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/asn1crypto/_perf/_big_num_ctypes.py",
 line 39 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File "", line 219 in _call_with_frames_removed
  File "", line 1035 in _handle_fromlist
  File "", line 1 in 
fish: 'python -X faulthandler -c 'from…' terminated by signal SIGABRT (Abort)

I took the opportunity to see what library loading fails, by printing 
self._name and mode before line 365 in ctypes/__init__.py:

It tries to load /usr/lib/libcrypto.dylib with mode 4, and that's where it 
crashes.

--
status: closed -> open

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



[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-16 Thread László Károlyi

László Károlyi  added the comment:

So after making the changes, recompiling everything and using `python -X 
faulthandler backend/manage.py runserver --nothreading --noasgi --noreload` to 
start django without the autoreloader that hides the crashed process' output, 
here's what I get:

  File 
"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py",
 line 364 in __init__
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/asn1crypto/_perf/_big_num_ctypes.py",
 line 39 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/asn1crypto/_int.py",
 line 56 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/asn1crypto/_elliptic_curve.py",
 line 51 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/asn1crypto/keys.py",
 line 22 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/cryptography/x509/extensions.py",
 line 14 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/cryptography/x509/base.py",
 line 16 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/cryptography/x509/__init__.py",
 line 8 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File "", line 219 in _call_with_frames_removed
  File "", line 1035 in _handle_fromlist
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py",
 line 18 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/__init__.py",
 line 7 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File "", line 219 in _call_with_frames_removed
  File "", line 953 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/venv/lib/python3.7/site-packages/cryptography/hazmat/backends/__init__.py",
 line 15 in default_backend
  File 
"/Users/laszlokarolyi/Work/project/backend/ticketshop/printing/api/v1/qz_signer.py",
 line 19 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 677 in _load_unlocked
  File "", line 967 in _find_and_load_unlocked
  File "", line 983 in _find_and_load
  File 
"/Users/laszlokarolyi/Work/project/backend/ticketshop/printing/api/urls.py", 
line 4 in 
  File "", line 219 in _call_with_frames_removed
  File "", line 728 in exec_module
  File "", line 67

[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-16 Thread László Károlyi

László Károlyi  added the comment:

Hello,

the only C extension I use is xapian and mysql (with mariadb), xapian comes 
from their own git repo, and mariadb comes from mysqlclient, both (and 
everything else I don't know about) compile with the python 3.7.5 I installed 
within a venv.

I'll try to recompile python with the debug mode enabled, and then reinstall 
the entire venv to see what debug I get.

Where should I look for debug logs then?

Also, as you might have seen from the irc logs and the pastebin links posted 
there, python crashes somewhere around reading the django language directories, 
for a mystical reason. Yet to be found out.

--
status: closed -> pending

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



[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-15 Thread László Károlyi

New submission from László Károlyi :

Hey,

I have a huge Django project that starts up fine with the dev server on Linux 
and in production that is also Linux. Whenever I try to start it on my OSX, the 
python process crashes with a SIGABRT and I get a crash window from OSX.

I use homebrew with the latest packages and python3.7.5 is now compiled from 
source, to avoid dependency problems.

Here's the log:
Process:   Python [85125]
Path:  
/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier:Python
Version:   3.7.5 (3.7.5)
Code Type: X86-64 (Native)
Parent Process:fish [1857]
Responsible:   Terminal [1732]
User ID:   501

Date/Time: 2019-11-15 17:39:46.178 +0100
OS Version:Mac OS X 10.15.1 (19B88)
Report Version:12
Anonymous UUID:CC50B63E-FBC1-6461-576B-EE6AF1E52EFE

Sleep/Wake UUID:   A2774262-4258-4B95-8AAF-642CDEF9014E

Time Awake Since Boot: 28 seconds
Time Since Wake:   710 seconds

System Integrity Protection: enabled

Crashed Thread:0  Dispatch queue: com.apple.main-thread

Exception Type:EXC_CRASH (SIGABRT)
Exception Codes:   0x, 0x
Exception Note:EXC_CORPSE_NOTIFY

Termination Signal:Abort trap: 6
Termination Reason:Namespace SIGNAL, Code 0x6
Terminating Process:   Python [85125]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib  0x7fff67936e1a __kill + 10
1   org.python.python   0x000100ab0614 os_kill + 57
2   org.python.python   0x0001009d910c 
_PyMethodDef_RawFastCallKeywords + 488
3   org.python.python   0x0001009d8698 
_PyCFunction_FastCallKeywords + 41
4   org.python.python   0x000100a6cfd0 call_function + 628
5   org.python.python   0x000100a65fab 
_PyEval_EvalFrameDefault + 6767
6   org.python.python   0x0001009d8a6c 
function_code_fastcall + 106
7   org.python.python   0x000100a6d03d call_function + 737
8   org.python.python   0x000100a66046 
_PyEval_EvalFrameDefault + 6922
9   org.python.python   0x000100a6d831 
_PyEval_EvalCodeWithName + 1698
10  org.python.python   0x0001009d8660 
_PyFunction_FastCallKeywords + 212
11  org.python.python   0x000100a6d03d call_function + 737
12  org.python.python   0x000100a65fab 
_PyEval_EvalFrameDefault + 6767
13  org.python.python   0x000100a6d831 
_PyEval_EvalCodeWithName + 1698
14  org.python.python   0x0001009d82d8 
_PyFunction_FastCallDict + 444
15  org.python.python   0x0001009d93df 
_PyObject_Call_Prepend + 131
16  org.python.python   0x0001009d87a5 PyObject_Call + 136
17  org.python.python   0x000100a6628f 
_PyEval_EvalFrameDefault + 7507
18  org.python.python   0x000100a6d831 
_PyEval_EvalCodeWithName + 1698
19  org.python.python   0x0001009d82d8 
_PyFunction_FastCallDict + 444
20  org.python.python   0x0001009d93df 
_PyObject_Call_Prepend + 131
21  org.python.python   0x0001009d87a5 PyObject_Call + 136
22  org.python.python   0x000100a6628f 
_PyEval_EvalFrameDefault + 7507
23  org.python.python   0x000100a6d831 
_PyEval_EvalCodeWithName + 1698
24  org.python.python   0x0001009d82d8 
_PyFunction_FastCallDict + 444
25  org.python.python   0x0001009d93df 
_PyObject_Call_Prepend + 131
26  org.python.python   0x0001009d87a5 PyObject_Call + 136
27  org.python.python   0x000100a6628f 
_PyEval_EvalFrameDefault + 7507
28  org.python.python   0x000100a6d831 
_PyEval_EvalCodeWithName + 1698
29  org.python.python   0x0001009d82d8 
_PyFunction_FastCallDict + 444
30  org.python.python   0x0001009d93df 
_PyObject_Call_Prepend + 131
31  org.python.python   0x0001009d87a5 PyObject_Call + 136
32  org.python.python   0x000100a6628f 
_PyEval_EvalFrameDefault + 7507
33  org.python.python   0x000100a6d831 
_PyEval_EvalCodeWithName + 1698
34  org.python.python   0x0001009d82d8 
_PyFunction_FastCallDict + 444
35  org.python.python   0x0001009d93df 
_PyObject_Call_Prepend + 131
36  org.python.python   0x0001009d87a5 PyObject_Call + 136
37  org.python.python   0x000100a6628f 
_PyEval_EvalFrameDefault + 7507
38  org.python.python   0x0001009d8a6c 
function_code_fastcall + 106
39

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2016-10-12 Thread László Károlyi

László Károlyi added the comment:

OSX Sierra + Python, the bug still exists.

subscribing

--
nosy: +karolyi

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



[issue26664] Misuse of $ in activate.fish of venv

2016-07-01 Thread László Károlyi

László Károlyi added the comment:

+1 here, broken on homebrew cpython > 3.5.1 (a.k.a. 3.5.2)

--
nosy: +karolyi

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