Not logged in. · Lost password · Register
Forum: Community Bugs RSS
Qt-4.4.0-beta1 + psi 0.12-svn (at least from 21.02.2008): crashes on input

Announcement

11-16-2005, 12:33 by halr9000
Subject: Psi Groupchat (new address)
Join us at the Psi Groupchat (MUC)! Room name: psi@conference.psi-im.org
aix27249 #1
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
Subject: Qt-4.4.0-beta1 + psi 0.12-svn (at least from 21.02.2008): crashes on input
When using Qt-4.4.0-beta1, I receive frequent crashes on text input in chat window. All other input fields (message, for example) doesn't cause a crash.
Usually, typying (or copy-pasting, it doesn't matter) the same text like before crash, it causes a crash again.
Seems that crashes are caused by some wheird sequences of characters.
The bug occures with (at least) latin and cyrillic input.
VladaD #2
Member for 3 months · 6 posts · Location: Ostrava, Czechia
Group memberships: Members
Show profile · Link to this post
I think it is same issue as http://forum.psi-im.org/thread/4872
aix27249 #3
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
Yes, very similar, but I want to focus on the next: bug appear only with Qt-4.4.0 (beta). Nothing crashes with Qt 4.3.x and before... Also, it doesn't looks like a qt bug, because the only place where the bug appears is a chat window input (no other window or even application is affected).
aix27249 #4
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
Also, just tried to run psi within gdb, on crash got this:
...
[New LWP 6023]
ptrace: No such process.
Tried to get backtrace, got nothing:
(gdb) bt
Couldn't get registers: No such process.
VladaD #5
Member for 3 months · 6 posts · Location: Ostrava, Czechia
Group memberships: Members
Show profile · Link to this post
aix27249: Are you using OpenPGP?
aix27249 #6
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
No, I don't - just standard SSL.
aix27249 #7
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
I've found an example of text which always causes a crash. To reproduce a bug, just paste next into a chat window:

vector<string> ReadFileStrings(string filename) {
    string data = ReadFile(filename);
    vector<string> ret;
    vector<int> n_pos;
    int next_pos=0;
    n_pos.push_back(-1);
    for (unsigned int i=0; i<data.size(); i++) {
        if (data[i]=='\n') n_pos.push_back(i);
    }
    for (unsigned int i=0; i<n_pos.size()-1; i++) {
        if (i!=n_pos.size()-2) next_pos = n_pos[i+1]-n_pos[i]-1;
        else next_pos = data.size()-n_pos[i]-2;
        //printf("n_pos[i]=%d\n", n_pos[i]);
        ret.push_back(data.substr(n_pos[i]+1, next_pos));
    }
    return ret;
}
aix27249 #8
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
Subject: Commit bug?
So, should I commit this bug to flyspray?
Albert #9
Member since 04/2005 · 30 posts
Group memberships: Members
Show profile · Link to this post
Are you sure it is a bug in psi and not a bug in the _BETA_ Qt version? If it is a Qt bug, then the report should go to Trolltech instead.
aix27249 #10
Member since 05/2007 · 9 posts · Location: Moscow, Russia
Group memberships: Members
Show profile · Link to this post
I think it much looks just like an incompatibility. So, it is impossible to say on which side the bug should be resolved, it needs code discovery with eyes, hands, brain and gdb. If I'll have some free time, i will try to discover what exactly causes the problem, and i'll try to write a patch or point to.
Additionally, I'll send the report to Trolltech, maybe they give us the answer.
This post was edited on 03-08-2008, 14:31 by aix27249.
Orivej #11
Member for a month · 1 post
Group memberships: Members
Show profile · Link to this post
I have experienced this bug with psi r1097, but I can't reproduce it with r1101 (built with qtmod 4.4.0-0.4). R1097 crashes with qtmod 4.4.0-0.4 on text input. (qtmod is a qt build from http://kdemod.ath.cx/).
Obi_Wan #12
Member since 06/2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Has this bug been fixed? I'm experiencing this currently very often. I just made a gdb bt:

Playing WAVE '/usr/share/psi/sound/chat2.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb69db8e0 (LWP 7203)]
0xb7517367 in qt_curves_for_arc () from /usr/lib/libQtGui.so.4
(gdb) bt
#0  0xb7517367 in qt_curves_for_arc () from /usr/lib/libQtGui.so.4
#1  0xb74f6d6f in QPainterPath::arcTo () from /usr/lib/libQtGui.so.4
#2  0x4004cccc in ?? ()
#3  0xf40c64e7 in ?? ()
#4  0x4043ca7f in ?? ()
#5  0xcccccccd in ?? ()
#6  0x4004cccc in ?? ()
#7  0x00000000 in ?? ()
Close Smaller – Larger + Reply to this post:
Smilies: :mellow: :huh: ^_^ :o ;) :P :D :lol: B) :rolleyes: -_- <_< :) :wub: :angry: :( :unsure: :wacko: :blink: :ph34r:
Special characters:
Go to forum
Unclassified NewsBoard devel of 20051113 © 2003-5 by Yves Goergen
Current time: 05-17-2008, 11:45:26 (UTC -04:00)