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

Pressing tab in 4.5.4 results in a segmentation fault #9032

Open
hhartzer opened this issue Apr 29, 2024 · 5 comments
Open

Pressing tab in 4.5.4 results in a segmentation fault #9032

hhartzer opened this issue Apr 29, 2024 · 5 comments

Comments

@hhartzer
Copy link

Hi Electrum Team,

Thank you for an awesome Bitcoin wallet! Unfortunately, I'm now having some major issues with it.

Pressing tab in 4.5.4 results in a segmentation fault. Also, sending Bitcoin. No issues with 4.4.6. This is on FreeBSD using Wayland.

Output of setting up a new testnet wallet, then pressing tab on the main screen.

python3.9 -X dev -X tracemalloc /usr/local/bin/electrum -v --testnet 2>&1 | tee electrum.log

electrum.log

Related: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278397

Thank you!

@ecdsa
Copy link
Member

ecdsa commented Apr 30, 2024

note: pressing tab while the cursor is in the "payto" field may trigger some network events.

@accumulator
Copy link
Member

accumulator commented Apr 30, 2024

log looks quite normal, but this part is notable:

97.72 | I | i/interface.[testnet.aranguren.org:51002] | set blockchain with height 2806197
 97.72 | I | i/interface.[testnet.aranguren.org:51002] | can't connect 2806124
 97.72 | I | i/interface.[testnet.aranguren.org:51002] | requesting block header 2806123 in mode backward
 97.96 | I | i/interface.[testnet.aranguren.org:51002] | exiting backward mode at 2806123
 97.96 | I | i/interface.[testnet.aranguren.org:51002] | binary step. good 2806123, bad 2806124, height 2806123
 97.96 | I | i/interface.[testnet.aranguren.org:51002] | requesting block header 2806123 in mode binary
 98.19 | I | i/interface.[testnet.aranguren.org:51002] | binary search exited. good 2806123, bad 2806124
 98.19 | I | i/interface.[testnet.aranguren.org:51002] | new fork at bad height 2806124

edit: looking a bit further this doesn't seem to be relevant to this issue

@hhartzer
Copy link
Author

Thanks for taking a look!

I ended up reverting to 4.4.6. I was able to send Bitcoin, however pressing tab results in the segmentation fault.

This must be a dependency related issue for the tab segementation fault, and a different issue for sending Bitcoin (as far as I can tell).

@SomberNight
Copy link
Member

Where/when exactly do you press "tab" for the segfault to trigger?
In your log, it looks like ~as soon as the main wallet window opened, the program segfaulted. Did you simply immediately press tab when than window opened?

Could you test with a different version of qt5/pyqt5?

Could you test with x11/xwayland, instead of wayland?
E.g. maybe try setting this env var: QT_QPA_PLATFORM=xcb ./run_electrum

While electrum runs now, it stills segfaults when I try to send Bitcoin.

When exactly does that segfault happen? I imagine it occurs when e.g. clicking a specific button?

@hhartzer
Copy link
Author

I get segfaults in the list of transactions, or when trying to send Bitcoin. Possibly in other areas as well.

It segfaulted for me with QT_QPA_PLATFORM=xcb as well.

Will report back later with more testing. Thank you for your help!

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

No branches or pull requests

4 participants