No Branch/Tag Specified
chat
custom_themes
danger
dev
duke
importviewkey
master
no_mining_until_synced
old_duke
onryo
recurring
0.4.0
0.4.1
0.4.2
0.4.3
0.5.0
0.5.1
0.5.10
0.5.11
0.5.3
0.5.4
0.5.5
0.6.0
0.6.1
0.6.10
0.6.11
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.7.0
0.7.1
0.7.2
0.7.3
0.7.4
0.7.5
0.7.6
0.7.7
0.7.9
1.4.2
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.5.2
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.9.0
v0.9.1
v0.9.2
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
Labels
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it tor
related to tor translation
translation update windows
related to windows wontfix
this won't be fixed
Apply labels
Clear labels
0-500 bounty
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it tor
related to tor translation
translation update windows
related to windows wontfix
this won't be fixed
No Label
0-500 bounty
2001-5000 bounty
501-2000 bounty
arm
beginners
bug
build
documentation
feature
high priority
i2p
low priority
medium priority
question
release
tor
translation
windows
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This issue currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
I was using a new Rescan feature with a specified block height, it triggered a "Segmentation fault", though yesterday I used the same feature/block height. For now just to not forget, I will debug later.
@onryo if it generated a coredump, a backtrace would be useful
For coredumps, run
ulimit -c unlimited
to make sure your shell will generate coredumps and then run the application which coredumps. In the Olden Times Linux would always make the "core" file in the same dir as the binary that makes it. But I have now seen that some new Linux distributions put them in weird places, for instance Arch puts them in /var/lib/systemd/coredumpOnce you have a coredump file (which is usually called "core" or "core.XYZ" where XYZ is the PID that generated it) you can then type
gdb binary_name core_filename
and then typebt
to generate the backtrace. We should have this info written down somewhere in our dev docs because it comes up often.It actually seems the coredump can happen when you are not rescanning, any time you are importing privkeys. This coredump happened even though I disabled rescanning.
Here is a partial backtrace (all the rest of it is deep QT internals stuff)
It seems like the bug is in QT itself, maybe we can change our code to not trigger it. The above happened with QT 5.12.8
I wasn't able to reproduce the coredump yet. I am using 5.15.8, but I used the same Qt version in the past so it should trigger at some point.
On Debian 12 it is in the same directory as well.
Maybe something new for you:
As another data point, the coredump does not seem to happen every time. I was testing and was importing one valid privkey and usually a few invalid privkeys at a time. I only got this coredump one time in about 10 imports and all imports had rescanning disabled. All valid imports I was testing with were taddr privkeys.
If somebody hits this coredump and can provide a backtrace, please also add this data:
How many valid/invalid privkeys were being imported?
Are they taddr or zaddr privkeys?
Was rescanning enabled/disabled ?
UPDATE: I think I was incorrect, this bug only happens when rescan=true, because line
src/mainwindow.cpp:1323
which is frame #1 in the backtrace only executes when rescan=true@onryo see if you can reproduce the coredump with the latest commit
3a6f632b9b
on dev branch.In doing research on this I found https://forum.qt.io/topic/40088/qlineedit-settext-generating-segmentation-fault/5 and basically it seems like this kind of thing can happen when the QLineEdit object is accessed from another thread and it's already been deleted or not initialized.
I think you got this, I was able to restore from block 0 multiple times with z-addrs.
This bug was caused by a callback that tries to use a variable
pui.rescanfrom
from the import GUI after it is gone.