Skip to content

Version 6.0.1 produces Segmentation Fault on Python 3.7 and Alpine 3.14 #737

@SerhiyRomanov

Description

@SerhiyRomanov

We use that package together with Flask and run inside Docker container with UWSGI.

I see normal startup in the logs

[uWSGI] getting INI configuration from /app/uwsgi.ini
*** Starting uWSGI 2.0.21 (64bit) on [Mon Jul 31 14:07:29 2023] ***
compiled with version: 10.3.1 20210424 on 27 July 2023 09:58:29
os: Linux-6.4.4-100.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 19 17:06:05 UTC 2023
nodename: 350561c53409
machine: x86_64
clock source: unix
detected number of CPU cores: 1
current working directory: /app/src
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
setuid() to 1000
chdir() to /app/src
your memory page size is 4096 bytes
detected max file descriptor number: 1073741816
lock engine: pthread robust mutexes
thunder lock: enabled
uwsgi socket 0 bound to UNIX address /tmp/api.sock fd 3
Python version: 3.7.13 (default, Apr 20 2022, 03:16:50)  [GCC 10.3.1 20210424]
Python main interpreter initialized at 0x7f13399baaa0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 166688 bytes (162 KB) for 2 cores
*** Operational MODE: threaded ***

which fails with
!!! uWSGI process 12 got Segmentation Fault !!!
once we reach the code which tries to import yaml

We cannot see a detailed backtrace because of that limitation.
Version 6.0 works without problems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions