qt-1.41 text selection segfaults

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Mon Nov 23 06:46:00 GMT 1998


Am Sun, 08 Nov 1998 schrieb Jason Merrill:
>>>>>> Jack Howarth <howarth@nitro.med.uc.edu> writes:
>
> >   Are people seeing the following problem on platforms other than the
> > ppc?  When built with egcs_1_1_branch, qt-1.41 has segfaults when text
> > is selected.  This is easily tested in the layout example program by
> > entering some text in the Line1 text field and then selecting it with
> > the cursor. We have no problems in qt 1.33 built with egcs_1_1_branch
> > but qt-1.41 segfaults.
>
>If you could track this bug down to where bad code is being generated and
>send a testcase to egcs-bugs, that would be great.  I don't have time to
>track it down myself.

This was a difficult one to track down. Finally with -fno-exceptions as
suggested by Jack, I got a real segfault in QClipboard::setData().
I have appended the preprocessed source qclipboard_x11.ii from qt-1.41. If
compiled with "-O2 -fsigned-char -fno-exceptions -fPIC" on powerpc-linux-gnu,
you will see that r11 is used as a pointer directly after the call to
setupOwner() in QClipboard::setData(). This causes the crash, I think one "mr
r3,r11" is missing before the use of r11.

Hopefully this can be resolved for 1.1.1, cause qt-1.41 is essential for the
use of KDE and other tools.

Thanks,
Franz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qclipboard_x11.tar.gz
Type: application/x-gzip
Size: 85301 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981123/3fa86897/attachment.bin>


More information about the Gcc-bugs mailing list