Package: src:python3.5
Version: 3.5.2-8
Severity: important

Dear Maintainer,

   * What led up to the situation?
dpkg-buildpackage -j4 on a Raspbery Pi 2

After ~3 hours, the build fails with a segmentation fault

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 4.4.30-v7+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Hopefully these lines will help:

arm-linux-gnueabihf-gcc-ar rc libpython3.5m.a Objects/abstract.o Objects/accu.o 
Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o 
Objects/bytesobject.o Objects/cellobject.o Objects/classobject.o 
Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o 
Objects/enumobject.o Objects/exceptions.o Objects/genobject.o 
Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o 
Objects/funcobject.o Objects/iterobject.o Objects/listobject.o 
Objects/longobject.o Objects/dictobject.o Objects/odictobject.o 
Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o 
Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/capsule.o 
Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o 
Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o 
Objects/unicodeobject.o Objects/unicodectype.o Objects/weakrefobject.o
arm-linux-gnueabihf-gcc-ar rc libpython3.5m.a Python/_warnings.o 
Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o 
Python/ceval.o Python/compile.o Python/codecs.o Python/dynamic_annotations.o 
Python/errors.o Python/frozenmain.o Python/future.o Python/getargs.o 
Python/getcompiler.o Python/getcopyright.o Python/getplatform.o 
Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o 
Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o 
Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o 
Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o 
Python/pythonrun.o Python/pytime.o Python/random.o Python/structmember.o 
Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o 
Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o 
Python/formatter_unicode.o Python/fileutils.o Python/dynload_shlib.o   
Python/thread.o Python/frozen.o
arm-linux-gnueabihf-gcc-ar rc libpython3.5m.a Modules/config.o 
Modules/getpath.o Modules/main.o Modules/gcmodule.o
arm-linux-gnueabihf-gcc-ar rc libpython3.5m.a Modules/_threadmodule.o  
Modules/signalmodule.o  Modules/arraymodule.o  Modules/mathmodule.o 
Modules/_math.o  Modules/_struct.o  Modules/_randommodule.o  
Modules/_elementtree.o  Modules/_pickle.o  Modules/_datetimemodule.o  
Modules/_bisectmodule.o  Modules/_heapqmodule.o  Modules/unicodedata.o  
Modules/fcntlmodule.o  Modules/spwdmodule.o  Modules/grpmodule.o  
Modules/selectmodule.o  Modules/socketmodule.o  Modules/_posixsubprocess.o  
Modules/md5module.o  Modules/sha1module.o  Modules/sha256module.o  
Modules/sha512module.o  Modules/syslogmodule.o  Modules/binascii.o  
Modules/zlibmodule.o  Modules/pyexpat.o  Modules/posixmodule.o  
Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  
Modules/_codecsmodule.o  Modules/_weakref.o  Modules/_functoolsmodule.o  
Modules/_operator.o  Modules/_collectionsmodule.o  Modules/itertoolsmodule.o  
Modules/atexitmodule.o  Modules/_stat.o  Modules/timemodule.o  
Modules/_localemodule.o  Modules/_iomodule.o Modules/iobase.o Modules/fileio.o 
Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o  
Modules/zipimport.o  Modules/faulthandler.o  Modules/_tracemalloc.o 
Modules/hashtable.o  Modules/symtablemodule.o  Modules/xxsubtype.o
arm-linux-gnueabihf-gcc-ranlib libpython3.5m.a
arm-linux-gnueabihf-gcc -pthread -Wl,-z,relro -fprofile-generate  
-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -g -fstack-protector-strong -Wformat 
-Werror=format-security   -g -flto -fuse-linker-plugin -ffat-lto-objects 
-Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o python 
Programs/python.o libpython3.5m.a -lpthread -ldl  -lutil -lexpat                
   -L/usr/lib -lz  -lexpat                      -lm
arm-linux-gnueabihf-gcc -pthread -Wl,-z,relro -fprofile-generate  -Xlinker 
-export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o Programs/_testembed 
Programs/_testembed.o libpython3.5m.a -lpthread -ldl  -lutil -lexpat            
       -L/usr/lib -lz  -lexpat                      -lm
In function '__fread_alias',
    inlined from 'read_directory' at ../Modules/zipimport.c:999:13:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:290:2: warning: call to 
'__fread_chk_warn' declared with attribute warning: fread called with bigger 
size * nmemb than length of destination buffer
  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function '__wcsncpy_alias',
    inlined from 'calculate_path' at ../Modules/getpath.c:544:17:
/usr/include/arm-linux-gnueabihf/bits/wchar2.h:197:2: warning: call to 
'__wcsncpy_chk_warn' declared with attribute warning: wcsncpy called with 
length bigger than size of destination buffer
  return __wcsncpy_chk (__dest, __src, __n,
  ^
In function '__fread_alias',
    inlined from 'read_directory' at ../Modules/zipimport.c:999:13:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:290:2: warning: call to 
'__fread_chk_warn' declared with attribute warning: fread called with bigger 
size * nmemb than length of destination buffer
  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function '__wcsncpy_alias',
    inlined from 'calculate_path' at ../Modules/getpath.c:544:17:
/usr/include/arm-linux-gnueabihf/bits/wchar2.h:197:2: warning: call to 
'__wcsncpy_chk_warn' declared with attribute warning: wcsncpy called with 
length bigger than size of destination buffer
  return __wcsncpy_chk (__dest, __src, __n,
  ^
./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
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_bisect               _datetime             _elementtree
_heapq                _md5                  _pickle
_posixsubprocess      _random               _sha1
_sha256               _sha512               _socket
_struct               array                 atexit
binascii              fcntl                 grp
math                  pwd                   pyexpat
select                spwd                  syslog
time                  unicodedata           zlib
Segmentation fault
Makefile:626: recipe for target 'sharedmods' failed
make[3]: *** [sharedmods] Error 139
make[3]: Leaving directory '/home/voltagex/src/python3.5-3.5.2/build-static'
Makefile:523: recipe for target 'build_all_generate_profile' failed
make[2]: *** [build_all_generate_profile] Error 2
make[2]: Leaving directory '/home/voltagex/src/python3.5-3.5.2/build-static'
Makefile:504: recipe for target 'profile-opt' failed
make[1]: *** [profile-opt] Error 2
make[1]: Leaving directory '/home/voltagex/src/python3.5-3.5.2/build-static'
debian/rules:274: recipe for target 'stamps/stamp-build-static' failed
make: *** [stamps/stamp-build-static] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2


I can also reproduce this on a pbuilder configured to build for armhf via qemu 
(see https://jodal.no/2015/03/08/building-arm-debs-with-pbuilder/). I am going 
to retry this with the -9 version but I expect the same result.

Thanks,
Adam

Reply via email to