Bug report #4941

sip crash on some 32bit platforms

Added by Ricardo Silva over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Build/Install
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:14739

Description

SIP crashes on various 32bit platforms (known are Debian wheezy/testing, unstable and Ubuntu natty and oneiric).

Error message:

make[3]: Entering directory `/tmp/buildd/qgis-1.9.90+git20120202+16d0d2f~natty1/debian/build'
[ 91%] Generating core/sipcorepart0.cpp, core/sipcorepart1.cpp, core/sipcorepart2.cpp, core/sipcorepart3.cpp

Segmentation fault
make[3]: *** [python/core/sipcorepart0.cpp] Error 139

Subsequent runs produce:

[ 91%] Building CXX object python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart0.cpp.o
/home/ricardo/dev/build_qgis_master/python/core/sipcorepart0.cpp:7:24: fatal error: sipAPIcore.h: No such file or directory
compilation terminated.

See also http://lists.osgeo.org/pipermail/qgis-developer/2012-February/018063.html.

It's related to 2564e6a7, that introduces changes that make use of the exception support in SIP.

sip4-4.13.1.diff Magnifier - actual fix (614 Bytes) Jürgen Fischer, 2012-02-03 12:06 PM


Related issues

Duplicated by QGIS Application - Bug report #4944: GIT snapshot fails to build with segfault Closed 2012-02-03

Associated revisions

History

#1 Updated by Jürgen Fischer over 8 years ago

  • Subject changed from ubuntu compilation error sipAPIcore.h missing to sip crash

#2 Updated by Jürgen Fischer over 8 years ago

  • Subject changed from sip crash to sip crash on some 32bit platforms

#3 Updated by Alexander Bruy over 8 years ago

Also confirmed on Fedora 16

Linux Fedora16 3.2.2-1.fc16.i686.PAE #1 SMP Thu Jan 26 03:30:43 UTC 2012 i686 i686 i386 GNU/Linux

SIP 4.13 (patch from https://gist.github.com/1709985 applied) crashes with message

19306 Segmentation fault (core dumped) /usr/bin/sip -e -x QSETINT_CONVERSION -x QSETTYPE_CONVERSION -x VendorID
-t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_7_2 -x Py_v3 -g -j 4 -c /home/yellow/GIT/qgis/build/python/core
-I /usr/share/sip/PyQt4 -I /home/yellow/GIT/qgis/python /home/yellow/GIT/qgis/python/core/core.sip

and build fails with

@@ /home/yellow/GIT/qgis/build/python/core/sipcorepart0.cpp:7:24: fatal error: sipAPIcore.h: No such file or directory
compilation terminated.
make[2]: *** [python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart0.cpp.o] Error 1
make[1]: *** [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2

#4 Updated by Jürgen Fischer over 8 years ago

  • File sip4-4.13.1.diff added

Alexander Bruy wrote:

SIP 4.13 (patch from https://gist.github.com/1709985 applied) crashes with message

odd, the attached patch fixes the problem on Debian unstable i386 for me. I'm preparing a testcase to notify upstream.

#5 Updated by Jürgen Fischer over 8 years ago

#6 Updated by Jürgen Fischer over 8 years ago

  • File deleted (sip4-4.13.1.diff)

#8 Updated by Arunmozhi P over 8 years ago

Fails in Ubunut Oneric (11.10) too, with SIP Version 4.12.4. The error ends as

make[2]: *** [python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart0.cpp.o] Error 1
make[1]: *** [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2
make: *** [all] Error 2

#9 Updated by Jürgen Fischer over 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF