[Konversation-devel] [konversation] [Bug 362404] New: Crash with ISO 2022-JP Charset
Mikiya Okuno via KDE Bugzilla
bugzilla_noreply at kde.org
Thu Apr 28 10:32:15 UTC 2016
https://bugs.kde.org/show_bug.cgi?id=362404
Bug ID: 362404
Summary: Crash with ISO 2022-JP Charset
Product: konversation
Version: 1.6
Platform: Gentoo Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: konversation-devel at kde.org
Reporter: mikiya.okuno at gmail.com
Crash happens if ISO 2022-JP charset is set to one of IRC server. This is
because KCharsets::codecForName() returns NULL for "ISO 2022-JP". To prevent
this issue, charset name should be changed to "ISO-2022-JP", which has two
hyphens instead of one space and one hyphen.
I filed bug #362401 for KCharsets problem. However, Konversation should also
handle the situation when KCharsets::codecForName() returns NULL, in order to
avoid crash.
Reproducible: Always
Steps to Reproduce:
1. Connect to server with Codec=ISO 2022-JP defined in konversationrc
2. See crash happens
3.
Actual Results:
konversasion crashes.
Expected Results:
It should report an error instead of crash.
Stacktrace
(gdb) bt
#0 QTextCodec::fromUnicode (this=0x0, str=...) at codecs/qtextcodec.cpp:806
#1 0x0000000000540285 in Server::generateJoinCommand
(this=this at entry=0x1191220, tmpList=...) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/irc/server.cpp:3804
#2 0x0000000000541213 in Server::updateAutoJoin (this=this at entry=0x1191220,
channels=...) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/irc/server.cpp:3775
#3 0x00000000005446c6 in Server::Server (this=0x1191220, parent=<optimized
out>, settings=...) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/irc/server.cpp:129
#4 0x0000000000516f8c in ConnectionManager::connectTo
(this=this at entry=0xdb1540, flag=flag at entry=Konversation::CreateNewConnection,
settings=...) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/connectionmanager.cpp:155
#5 0x0000000000517470 in ConnectionManager::connectTo (this=0xdb1540,
flag=flag at entry=Konversation::CreateNewConnection, serverGroupId=<optimized
out>) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/connectionmanager.cpp:95
#6 0x00000000004ef162 in Application::newInstance
(this=this at entry=0x7fffffffc3c0, args=args at entry=0x7fffffffc350) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/application.cpp:248
#7 0x00000000004cc531 in main (argc=1, argv=<optimized out>) at
/home/portage/portage/net-irc/konversation-1.6/work/konversation-1.6/src/main.cpp:150
See "this" is NULL(0x0) at frame #0.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Konversation-devel
mailing list