Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Do you have some tips to debug many « Segmentation fault: 11 » ? #111

harobed opened this Issue · 14 comments

5 participants



I have many « Segmentation fault: 11 » error, I would like contribute, fix this issues but I don't know the method to fix this segfault.

Do you have some tips ?

Best regards,


I get the same error. I didn't check the code but when I run the script with sudo, it works. Just FYI.


Ok, will try to fix it ASAP...


I get the same error. I use homebrew to install PyQt4. There is a Segmentation fault: 11 error when the script quits.


Since, I've migrate with success to Selenium 2


@harobed , what do you mean? Have you solved it?


I've solved my need, not :(


@liangsun please try pyside instead of pyqt:

pip install pyside

@jeanphix , there is an error when execute pip install pyside, so I use brew install pyside, but the segmentation fault issue remains. I guess PySide is based on PyQt.


@liangsun what is the pyside installation error?

think this issue is mac related... @harobed are you an osx user?



[ 70%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o

In file included from /tmp/pip_build_root/pyside/sources/shiboken/libshiboken/sbkconverter.cpp:26:

/tmp/pip_build_root/pyside/sources/shiboken/ext/sparsehash/google/dense_hash_map:97:10: fatal error: 'tr1/functional' file not found

#include HASH_FUN_H                  // defined in config.h


/tmp/pip_build_root/pyside/sources/shiboken/ext/sparsehash/google/sparsehash/sparseconfig.h:18:24: note: expanded from macro 'HASH_FUN_H'

    #define HASH_FUN_H <tr1/functional>


1 error generated.

make[2]: *** [libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o] Error 1

make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2

make: *** [all] Error 2

error: Error compiling shiboken


think this issue is mac related... @harobed are you an osx user?

yes, I'm.


@liangsun if you plan deploying your app on linux, you should consider hacking it on a linux box (maybe using vagrant) else switching to another lib like selenium...


@jeanphix OK. Thanks.


pyside version 1.1.2
python 2.7
-This is the error, (this is printed in the terminal) OSX provides a big dump
$ python
2015-06-13T19:53:11.307Z [CRITICAL] QT: QWidget: Must construct a QApplication before a QPaintDevice
Abort trap: 6

-Here is the code, it is failing on the last click.

from ghost import Ghost
ghost = Ghost(wait_timeout=10, display=True, download_images=True, user_agent="Mozilla/5.0 (compatible; Googlebot/2.1;")
page, resources ="")
assert page.http_status==200 and 'AcceptTerms' in ghost.content
assert "btnShowAll" not in ghost.content
page, resources = ghost.evaluate("document.getElementById('ctl00_ContentPlaceHolder1_btnAcceptTerms').click();", expect_loading=True)
assert page.http_status==200 and 'AcceptTerms' not in ghost.content
assert "btnShowAll" in ghost.content
assert "aspnetForm" in ghost.content
page, resources = ghost.evaluate("document.getElementById('ctl00_ContentPlaceHolder1_btnShowAll').click();", expect_loading=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.