Public bug reported:

I was trying to configure openstack nova-compute service on an Power8 LE guest 
with ubutu 15.04 ppc64el beta2 installed.
But it crash when calling greenlet 'switch' function.

So I re-build the greenlet.so from the source, and found that it still
crash when running tests. Here are log,

# apt-get source python-greenlet
# apt-get build-dep python-greenlet
# dpkg-source -x python-greenlet_0.4.5-1ubuntu1.dsc
# cd python-greenlet-0.4.5/
# python setup.py  build
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-ppc64le-2.7
powerpc64le-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g 
-fstack-protector-strong -Wformat -Werror=format-security -fPIC 
-I/usr/include/python2.7 -c greenlet.c -o 
build/temp.linux-ppc64le-2.7/greenlet.o
creating build/lib.linux-ppc64le-2.7
powerpc64le-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
-Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv 
-O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong 
-Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro 
-D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat 
-Werror=format-security build/temp.linux-ppc64le-2.7/greenlet.o -o 
build/lib.linux-ppc64le-2.7/greenlet.so

# ./run-tests.py
running build_ext
Linking 
/root/greenlet/python-greenlet-0.4.5/build/lib.linux-ppc64le-2.7/greenlet.so to 
/root/greenlet/python-greenlet-0.4.5/greenlet.so
python 2.7.9 (64 bit) using greenlet 0.4.5 from 
/root/greenlet/python-greenlet-0.4.5/greenlet.so
test_version (tests.test_version.VersionTests) ... ok
test_generator (tests.test_generator.GeneratorTests) ... ERROR
test_arg_refs (tests.test_leaks.ArgRefcountTests) ... Segmentation fault (core 
dumped)

# gdb python core
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 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 "powerpc64le-linux-gnu".
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 python...Reading symbols from 
/usr/lib/debug//usr/bin/python2.7...done.
done.

warning: core file may not match specified executable file.
[New LWP 27993]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc64le-linux-gnu/libthread_db.so.1".
Core was generated by `python ./run-tests.py '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  slp_save_state (stackref=0x3fffc065e4d0 "\002") at greenlet.c:369
369             while (owner->stack_stop < target_stop) {
(gdb) bt
#0  slp_save_state (stackref=0x3fffc065e4d0 "\002") at greenlet.c:369
#1  0x00003fffaa3d2a4c in slp_switch () at platform/switch_ppc64_linux.h:69
#2  0x0000000000000000 in ?? ()
(gdb) quit

powerpc64le-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=powerpc64le-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc64le-linux-gnu/4.9/lto-wrapper
Target: powerpc64le-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 
4.9.2-10ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs 
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.9 --enable-shared --enable-linker-build-id 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls 
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libsanitizer 
--disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib 
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-ppc64el/jre --enable-java-home 
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-ppc64el 
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-ppc64el 
--with-arch-directory=ppc64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
--enable-obj
 c-gc --enable-secureplt --with-cpu=power7 --with-tune=power8 
--enable-targets=powerpcle-linux --disable-multilib --enable-multiarch 
--disable-werror --with-long-double-128 --enable-checking=release 
--build=powerpc64le-linux-gnu --host=powerpc64le-linux-gnu 
--target=powerpc64le-linux-gnu
Thread model: posix
gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu12)

** Affects: python-greenlet (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1446974

Title:
  python-greenlet coredump on Power8 LE guest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-greenlet/+bug/1446974/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to