#974205 Disconnects when sending specific character sequences on private chat

Package:
profanity-light
Source:
profanity
Description:
console based XMPP client, light version
Submitter:
Date:
2026-07-02 17:45:08 UTC
Severity:
normal
Tags:
#974205#5
Date:
2020-11-11 09:22:38 UTC
From:
To:
Hello !

I noticed Profanity disconnects from the XMPP server when sending
specific sequences in chat.

I can reproduce it every time by inputting ALT+F1, ALT+Fn keys in a
private message window, and sending it.

    09:53:15 - me: ^[[11~^[[12~^[[13~^[[12~^[[11~^[[13~^[[14~^[[13~^[[12/home/fab^[[14~
    09:53:15 - Lost connection.
    09:53:58 - Connection re-established.

ALT+Fn keys are meant to switch window but don't seem to work on my
setup (I can switch with the other regular ways).

All I get in profanity.log is:

    11/11/2020 09:53:15: prof: INF: Closing connection

I may provide more infos if needed.

Have a good day,

#974205#10
Date:
2020-11-11 09:58:04 UTC
From:
To:
Control: tag -1 + moreinfo
...

Maybe this is some speciality of your desktop environment or window manager?
Which one is it and is it configured in some special way?
In mine (xfce4), nothing happens, when I press ALT+Fn.

Cheers

#974205#17
Date:
2020-11-11 10:19:26 UTC
From:
To:
Okay, so it's linked to urxvt and it's treatment of ALT key, which
affects the shortcut. I don't know exactly what it sends but profanity
doesn't like it.
I tried with xterm and couldn't switch between windows either, but it
doesn't send any character sequences so no crash.
Running i3.

Just checked, also happens with good old VTs. Switch to console, run
profanity, and try some escape sequence such as hitting CTRL+V twice,
then enter. Disconnects from the server again.

Le mercredi 11 novembre 2020 à 10:58:04, Martin a écrit :

#974205#22
Date:
2020-11-11 10:35:06 UTC
From:
To:
Confirmed!
#974205#27
Date:
2020-11-11 10:42:31 UTC
From:
To:
I can reproduce something similar in my desktop environment¹ by pressing
[esc]+[any arrow] (``^[OD`` gets entered on the command line) followed
by enter to send it

¹ fluxbox + urxvt + ssh + screen, which is probably why some keypresses
result in “odd” characters.

#974205#34
Date:
2021-09-10 15:15:37 UTC
From:
To:
This bug doesn't affects only profanity-light. The problem also
appears in profanity.

profanity is using the XMPP libstrophe. libstrophe should filter out
forbidden sequences. The issue in upstream's projects is
https://github.com/strophe/libstrophe/issues/170