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

double free or corruption (out) #1780

Closed
hapees opened this issue May 11, 2024 · 2 comments
Closed

double free or corruption (out) #1780

hapees opened this issue May 11, 2024 · 2 comments

Comments

@hapees
Copy link

hapees commented May 11, 2024

Expected

When I open librecad with a filename-argument
I can hit any key.

Actual

When I open librecad w/o a filename-argument
then hitting an unassigned keys causes
double free or corruption (out)
Aborted (core dumped)

To repeat

always
Start librecad w/o filename-argument, Shift-key, crash

Env.

Fedora 40, 6.8.9-300.fc40.x86_64 and lower versions.
Librecad:
Version: 2.2.1_alpha-483-g89f8dc4e
Compiler: GNU GCC 14.0.1
Compiled on: May 11 2024
Qt Version: 6.7.0
Boost Version: 1.83.0

Thank You

@dongxuli-concord-design
Copy link
Contributor

Does it happen with our GitHub appimages?

dxli added a commit that referenced this issue May 12, 2024
In QG_CommandWidget::eventFilter():
        QApplication::postEvent(leCommand, newEvent) will take
	ownership of newEvent, so passing newEvent as the same
	as the current event may cause double freeing.

The fix: create a new key pressing event to pass to QApplication::postEvent
@dxli dxli closed this as completed May 12, 2024
dxli added a commit that referenced this issue May 12, 2024
In QG_CommandWidget::eventFilter():
        QApplication::postEvent(leCommand, newEvent) will take
	ownership of newEvent, so passing newEvent as the same
	as the current event may cause double freeing.

The fix: create a new key pressing event to pass to
QApplication::postEvent
@hapees
Copy link
Author

hapees commented May 12, 2024 via email

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

3 participants