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

Segmentation fault (core dumped) #17

Open
victorbnl opened this issue Feb 12, 2023 · 2 comments
Open

Segmentation fault (core dumped) #17

victorbnl opened this issue Feb 12, 2023 · 2 comments

Comments

@victorbnl
Copy link

Describe the bug

When opening GParted, closing it and opening it again, the agent segfaults

To Reproduce

Steps to reproduce the behavior:

  1. Start the agent: /lib/fingerprint-gui/fingerprint-polkit-agent
  2. Open GParted
  3. Close it
  4. Open it again
  5. See how the agent segfaulted

Logs

New PolkitAgentListener  0x7fa134003500
Adding new listener  PolkitQt1::Agent::Listener(0x7fff48f21510) for  0x7fa134003500
Listener adapter polkit_qt_listener_initiate_authentication
GSimpleAsyncResult: 0x55dd82ffa1e0
polkit_qt_listener_initiate_authentication callback for  0x7fa134003500
showInfo
COMPLETED
Listener adapter polkit_qt_listener_initiate_authentication_finish
polkit_qt_listener_initiate_authentication_finish callback for  0x7fa134003500
Listener adapter polkit_qt_listener_initiate_authentication
GSimpleAsyncResult: 0x55dd8300f960
polkit_qt_listener_initiate_authentication callback for  0x7fa134003500
zsh: segmentation fault (core dumped)  /lib/fingerprint-gui/fingerprint-polkit-agent

Desktop

  • OS: Arch Linux
@victorbnl
Copy link
Author

victorbnl commented Feb 12, 2023

Here is the relevant part of the call stack at the time it segfaults

FingerprintPolkit.cpp:55 : main(), in agent.exec()
PolkitListener.cpp:51 : PolkitListener::iniateAuthentication, in session.clear()
QtSharedPointer::CustomDeleter<PolkitQt1::Agent::Session, QtSharedPointer::NormalDeleter>::execute
Full call stack
libgio-2.0.so.0!g_dbus_method_invocation_return_gerror (Unknown Source:0)
libpolkit-agent-1.so.0![Unknown/Just-In-Time compiled code] (Unknown Source:0)
QtSharedPointer::CustomDeleter::execute(QtSharedPointer::CustomDeleter * const this) (/usr/include/qt/QtCore/qsharedpointer_impl.h:187)
QtSharedPointer::ExternalRefCountWithCustomDeleter::deleter(QtSharedPointer::ExternalRefCountData * self) (/usr/include/qt/QtCore/qsharedpointer_impl.h:205)
QtSharedPointer::ExternalRefCountData::destroy(QtSharedPointer::ExternalRefCountData * const this) (/usr/include/qt/QtCore/qsharedpointer_impl.h:149)
QSharedPointer::deref(QSharedPointer::Data * dd) (/usr/include/qt/QtCore/qsharedpointer_impl.h:458)
QSharedPointer::deref(QSharedPointer * const this) (/usr/include/qt/QtCore/qsharedpointer_impl.h:453)
QSharedPointer::~QSharedPointer(QSharedPointer * const this) (/usr/include/qt/QtCore/qsharedpointer_impl.h:310)
QSharedPointer::clear(QSharedPointer * const this) (/usr/include/qt/QtCore/qsharedpointer_impl.h:419)
PolkitListener::initiateAuthentication(PolkitListener * const this, const QString & actionId, const QString & message, const QString & iconName, const PolkitQt1::Details & details, const QString & cookie, const PolkitQt1::Identity::List & identities, PolkitQt1::Agent::AsyncResult * result) (/home/victor/projects/forks/fingerprint-gui/src/PolkitListener.cpp:51)
libpolkit-qt5-agent-1.so.1!PolkitQt1::Agent::ListenerAdapter::polkit_qt_listener_initiate_authentication(_PolkitAgentListener*, char const*, char const*, char const*, _PolkitDetails*, char const*, _GList*, _GCancellable*, _GSimpleAsyncResult*) (Unknown Source:0)
libpolkit-agent-1.so.0![Unknown/Just-In-Time compiled code] (Unknown Source:0)
libglib-2.0.so.0!g_main_context_dispatch (Unknown Source:0)
libglib-2.0.so.0![Unknown/Just-In-Time compiled code] (Unknown Source:0)
libglib-2.0.so.0!g_main_context_iteration (Unknown Source:0)
libQt5Core.so.5!QEventDispatcherGlib::processEvents(QFlags) (Unknown Source:0)
libQt5Core.so.5!QEventLoop::exec(QFlags) (Unknown Source:0)
libQt5Core.so.5!QCoreApplication::exec() (Unknown Source:0)
main(int argc, char ** argv) (/home/victor/projects/forks/fingerprint-gui/src/FingerprintPolkit.cpp:55)

@victorbnl
Copy link
Author

victorbnl commented Feb 12, 2023

I ran it with Valgrind

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

1 participant