Bug 234872 - lang/python36 build core dumps in getrandom
Summary: lang/python36 build core dumps in getrandom
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-11 14:20 UTC by Palle Girgensohn
Modified: 2019-02-03 21:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments
poudriere build log for lang/python36 (94.15 KB, text/plain)
2019-01-11 14:20 UTC, Palle Girgensohn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Palle Girgensohn freebsd_committer freebsd_triage 2019-01-11 14:20:34 UTC
Created attachment 201027 [details]
poudriere build log for lang/python36

When building python36 with poudriere for 12.0-amd64 (host system 11.2-amd64) using poudriere, it core dumps

root@120-amd64-default:/wrkdirs/usr/ports/lang/python36/work/Python-3.6.8 # lldb -c python.core  ./python
(lldb) target create "./python" --core "python.core"
Core file '/wrkdirs/usr/ports/lang/python36/work/Python-3.6.8/python.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name = 'python', stop reason = signal SIGSYS
  * frame #0: 0x000000080075643a libc.so.7`getrandom + 10
    frame #1: 0x000000080045ae0b libpython3.6m.so.1.0`pyurandom + 187
    frame #2: 0x000000080045b158 libpython3.6m.so.1.0`_PyRandom_Init + 56
    frame #3: 0x0000000800471495 libpython3.6m.so.1.0`Py_Main + 197
    frame #4: 0x000000000020144b python`main + 251
    frame #5: 0x000000000020111b python`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2019-01-11 14:25:12 UTC
12.0 jails on 11.2 hosts are not supported.
Comment 2 Michael Osipov 2019-02-03 21:30:25 UTC
I see a similar crash:

cc  -lpthread -L/usr/local/lib  -fstack-protector    -Wl,--export-dynamic -o python Programs/python.o -L. -lpython3.6m -lintl -ldl -L/usr/local/lib -lintl -lutil   -lm  
LD_LIBRARY_PATH=/wrkdirs/usr/ports/lang/python36/work/Python-3.6.8 ./python -E -S -m sysconfig --generate-posix-vars ; if test $? -ne 0 ; then  echo "generate-posix-vars failed" ;  rm -f ./pybuilddir.txt ;  exit 1 ;  fi
Bad system call (core dumped)
*** Error code 140

Stop.
make[1]: stopped in /wrkdirs/usr/ports/lang/python36/work/Python-3.6.8
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/python36

with:
=>> Building lang/python36
build started at Sun Feb  3 16:32:40 CET 2019
port directory: /usr/ports/lang/python36
package name: python36-3.6.8
building for: FreeBSD 120-release-development-job-02 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 i386
maintained by: python@FreeBSD.org
Makefile ident:      $FreeBSD: head/lang/python36/Makefile 483807 2018-11-02 13:32:34Z rene $
Poudriere version: 3.2.8
Host OSVERSION: 1102000
Jail OSVERSION: 1200086
Job Id: 02




!!! Jail is newer than host. (Jail: 1200086, Host: 1102000) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2019-02-03 21:39:49 UTC
!!! Jail is newer than host. (Jail: 1200086, Host: 1102000) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!