Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segfault and update PyQt in dev environment #630

Merged
merged 2 commits into from
Nov 27, 2019

Conversation

emkll
Copy link
Contributor

@emkll emkll commented Nov 25, 2019

Description

Fixes #628 .

Test Plan

This test requires Qubes, as it cannot be reproduced in the dev environment.

Checklist

If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:

  • I have tested these changes in the appropriate Qubes environment

This is the version of Python3-PyQt5 shipped by Debian Buster.
Updated pip-tools to 4.2 as 3.1 did not work under Buster.
Presence of a `&lt` would result in the AutoText [1] to result in improper rendering of the Label, resulting in a segmentation fault (see #628). Setting the format to plaintext not only resolves this issue but also provides defense-in-depth to ensure RichText is not displayed.

[1]: https://doc.qt.io/qt-5/qt.html#TextFormat-enum
@sssoleileraaa
Copy link
Contributor

I can't get to the point where I'm seeing the segfault, here's what I did:

@sssoleileraaa
Copy link
Contributor

oopsies i did that thing again that i do from time to time where i run pass-io from the wrong dir on dom0

hehe no wonder I can't repro :bushes:

Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works and diff lgtm!

:shipit:

@sssoleileraaa
Copy link
Contributor

I created a follow-up issue: #633

@sssoleileraaa sssoleileraaa merged commit ff394d5 into master Nov 27, 2019
@sssoleileraaa sssoleileraaa deleted the pyqt-dev-5.11.3 branch November 27, 2019 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate segfault in libQt5Widgets.so on Debian buster
2 participants