Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.
This repository was archived by the owner on May 30, 2023. It is now read-only.

Crash on exit in QPA mode #10382

@ariya

Description

@ariya

n...@berglondon.com commented:

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.

Version 1.5.0 (development)

What steps will reproduce the problem?

  1. Using Gentoo Linux on EC2 (as part of EngineYard's PaaS Ruby on Rails environment)
  2. Build Qt 4.8 headless
  3. Run anything

What is the expected output? What do you see instead?

I get a segfault, and this is the backtrace as shown in gdb:

(gdb) set args -platform Minimal examples/rasterize.js http://google.com/ google.png
(gdb) run
... (runs, and successfully makes the PNG) ...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb56e66d0 (LWP 24430)]
0xb600bdb2 in QEventDispatcherQPAPrivate::~QEventDispatcherQPAPrivate ()
from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtGui.so.4
(gdb) bt

0 0xb600bdb2 in QEventDispatcherQPAPrivate::~QEventDispatcherQPAPrivate ()

from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtGui.so.4

1 0xb5b2367d in QObject::~QObject () from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtCore.so.4

2 0xb5af7c28 in QAbstractEventDispatcher::~QAbstractEventDispatcher ()

from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtCore.so.4

3 0xb5b3a2e5 in QEventDispatcherUNIX::~QEventDispatcherUNIX ()

from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtCore.so.4

4 0xb600af8d in QEventDispatcherQPA::~QEventDispatcherQPA ()

from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtGui.so.4

5 0xb5b1b112 in QObjectPrivate::deleteChildren () from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtCore.so.4

6 0xb5b23648 in QObject::~QObject () from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtCore.so.4

7 0xb5b0a232 in QCoreApplication::~QCoreApplication () from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtCore.so.4

8 0xb5f8fb34 in QApplication::~QApplication () from /home/deploy/phantomjs/deploy/Qt-4.8.0/lib/libQtGui.so.4

9 0x08060599 in main ()

Which operating system are you using?

Gentoo Linux

Did you use binary PhantomJS or did you compile it from source?

Compiled.

Please provide any additional information below.

This seems to be related to the following line within Qt:

http://qt.gitorious.org/qt/qt/blobs/4.8/src/gui/kernel/qeventdispatcher_qpa.cpp#line135

I have put print statements either side, and this is exactly where it seems to segfault, and it's possibly related to another thread keeping hold of a reference to selectWorker.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #382.
🌟   9 people had starred this issue at the time of migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions