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

Floating point exception #1997

Open
mdosch opened this issue Oct 3, 2024 · 2 comments
Open

Floating point exception #1997

mdosch opened this issue Oct 3, 2024 · 2 comments
Labels

Comments

@mdosch
Copy link
Contributor

mdosch commented Oct 3, 2024

When running profanity through torsocks it often crashes with floating point exception. As other programs don't have this issue it seems to be related to profanity. I realized the log is alwas showing a message with a , when it happens. Maybe that's related and something is interpreted as float due to the comma.

2024-10-03T15:29:38.909759+02: xmpp: DBG: RECV: <iq id="pQ6HxcSRRwZT57Xf24ce3e1fc4520e8087323c582cd90975d09c3dd" to="REDACTED/profanity.&lt;3" lang="en" type="result" from="REDACTED"><pubsub xmlns="http://jabber.org/protocol/pubsub"><items node="eu.siacs.conversations.axolotl.bundles:519037298"><item id="current"><bundle xmlns="eu.siacs.conversations.axolotl"><signedPreKeyPublic signedPreKeyId="1">BfTsTAwtxnG8BZJknnZIidQU5cnwO/bam3toaFl5LQwP</signedPreKeyPublic><signedPreKeySignature>I5rjsL5c0sVFIgYkOQfUCxBpSvzAuFQFHZrYzQLhFeVE4OixQ3tb9OQsEXvYGPyvVOyNUEh3sCaM6JJBJgETgw==</signedPreKeySignature><identityKey>BTW/wOqibPC4nR/B84wUNamteEUvzKjSjzUI+zUT7aAV</identityKey><prekeys/></bundle></item></items></pubsub></iq>
2024-10-03T15:29:38.909803+02: prof: DBG: iq stanza handler fired
2024-10-03T15:29:38.909840+02: prof: DBG: [OMEMO] omemo_start_device_session_handle_bundle: REDACTED
2024-10-03T15:29:38.909858+02: prof: DBG: [OMEMO] omemo_start_device_session_handle_bundle: 519037298
2024-10-03T15:29:38.909881+02: prof: DBG: [OMEMO] Starting device session for REDACTED with device 519037298
2024-10-03T15:29:38.909908+02: prof: DBG: [OMEMO] cache identity for REDACTED:519037298: 35bfc0eaa26cf0b89d1fc1f38c1435a9ad78452fcca8d28f3508fb3513eda015
2024-10-03T15:29:38.917289+02: prof: DBG: [OMEMO][STORE] Checking trust REDACTED (519037298)
2024-10-03T15:29:38.917341+02: prof: DBG: [OMEMO][STORE] Checking trust REDACTED (519037298): 1
2024-10-03T15:29:38.917368+02: prof: DBG: [OMEMO] Trust REDACTED (519037298): 1
2024-10-03T15:29:38.917399+02: prof: DBG: [OMEMO][STORE] No Session for 519037298 
2024-10-03T15:29:38.917427+02: prof: DBG: [OMEMO] There is no Session for REDACTED ( 519037298) ,… building session.

Expected Behavior

Don't crash when running in torsocks.

Current Behavior

Crashes with floating point exception

Possible Solution

No idea.

Steps to Reproduce (for bugs)

  1. Run profanity in torsocks, e.g. torsocks -q profanity -a myacc -l DEBUG
  2. Use and wait.

Context

As it always stop with the same log messae with OMEMO stuff received from the same JID, I could ask the person whether they'd be ok to be contacted by profanity devs for debugging.

Environment

Debian Stable (Bookworm)

profanity -v
Profanity, version 0.14.0
Copyright (C) 2012 - 2019 James Booth <[email protected]>.
Copyright (C) 2019 - 2023 Michael Vetter <[email protected]>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Enabled (libotr 4.1.1)
PGP support: Enabled (libgpgme 1.18.0)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Enabled (3.11.2)
GTK icons/clipboard: Enabled
GDK Pixbuf: Enabled
apt list -a libstrophe0
Auflistung… Fertig
libstrophe0/stable-backports,now 0.13.0-1~bpo12+1 amd64  [installiert]
@mdosch
Copy link
Contributor Author

mdosch commented Oct 3, 2024

Also happens with freshly compiled profanity master:

profanity -v
Profanity, version 0.14.0dev.master.dce0b737
Copyright (C) 2012 - 2019 James Booth <[email protected]>.
Copyright (C) 2019 - 2024 Michael Vetter <[email protected]>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Enabled (libotr 4.1.1)
PGP support: Enabled (libgpgme 1.18.0)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Enabled (3.11.2)
GTK icons/clipboard: Enabled
GDK Pixbuf: Enabled

@mdosch
Copy link
Contributor Author

mdosch commented Oct 3, 2024

Seems like purging the JID in question from all files in ~/.local/share/profanity/omemo/me_at_myserver.de fixed it.

@jubalh jubalh added the bug label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants