Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#855 closed defect (fixed)

Crash in Qt Preferences Dialog with File Formats

Reported by: mmh@… Owned by: levon
Priority: high Milestone: 1.3.0
Component: frontend-qt2 Version: 1.3.0cvs
Severity: critical Keywords: patch VERIFIED
Cc:

Description

I get a reproducable crash in lyx-qt using the following procedure:

Open Preferences->file format-> DVI, change viewer from xdvi to kdvi. Press Change
and Save. Reopen the dialog and now press ashes with the following backtrace:
[SuSE-8.1/qt-3.1]

Program received signal SIGSEGV, Segmentation fault.
0x40780697 in std::string::_Rep::_M_grab(std::allocator<char> const&,
std::allocator<char> const&) () from /usr/lib/libstdc++.so.5
(gdb) bt
#0 0x40780697 in std::string::_Rep::_M_grab(std::allocator<char> const&,
std::allocator<char> const&) () from /usr/lib/libstdc++.so.5
#1 0x407807e0 in std::string::string(std::string const&) ()

from /usr/lib/libstdc++.so.5

#2 0x0820c889 in QPrefsDialog::modify_format() (this=0xbfffe730)

at ../../../src/converter.h:49

#3 0x0826d8e5 in QPrefsDialog::qt_invoke(int, QUObject*) (this=0x8905d60,

_id=60, _o=0xbfffe8b0) at QPrefsDialog_moc.C:150

#4 0x40275f40 in QObject::activate_signal(QConnectionList*, QUObject*) ()

from /usr/lib/libqt.so.3

#5 0x40275e67 in QObject::activate_signal(int) () from /usr/lib/libqt.so.3
#6 0x4055948e in QButton::clicked() () from /usr/lib/libqt.so.3
#7 0x402f83a6 in QButton::mouseReleaseEvent(QMouseEvent*) ()

from /usr/lib/libqt.so.3

#8 0x402aa27c in QWidget::event(QEvent*) () from /usr/lib/libqt.so.3
#9 0x402181f4 in QApplication::internalNotify(QObject*, QEvent*) ()

from /usr/lib/libqt.so.3

#10 0x40217823 in QApplication::notify(QObject*, QEvent*) ()

from /usr/lib/libqt.so.3

#11 0x401bed46 in QETWidget::translateMouseEvent(_XEvent const*) ()

from /usr/lib/libqt.so.3

#12 0x401bc881 in QApplication::x11ProcessEvent(_XEvent*) ()

from /usr/lib/libqt.so.3

#13 0x401d1c96 in QEventLoop::processEvents(unsigned) ()

from /usr/lib/libqt.so.3

#14 0x4022bd06 in QEventLoop::enterLoop() () from /usr/lib/libqt.so.3
#15 0x4022bba8 in QEventLoop::exec() () from /usr/lib/libqt.so.3
#16 0x40218421 in QApplication::exec() () from /usr/lib/libqt.so.3
#17 0x0821fa61 in lyx_gui::start(std::string const&, std::vector<std::string,
std::allocator<std::string> > const&) (batch=@0xbffff344, files=@0xbffff1d0)

at lyx_gui.C:169

#18 0x080d6c04 in LyX (this=0xbffff340, argc=@0xbffff3a0, argv=0xbffff3f4)

at ../src/lyx_main.C:166

#19 0x08108919 in main (argc=1, argv=0xbffff3f4) at ../src/main.C:31
#20 0x409284a2 in libc_start_main () from /lib/libc.so.6

Change History (6)

comment:1 by levon, 21 years ago

Milestone: 1.3.0
Severity: normalcritical
Status: newassigned

comment:2 by levon, 21 years ago

Resolution: duplicate
Status: assignedclosed

I believe this to be a direct consequence of #854, which I
seem to have a patch for. So I'm duping it.

(btw, Moritz, thanks for separating out the bugs like you did.
It's definitely a good idea in general)

* This bug has been marked as a duplicate of 854 *

comment:3 by levon, 21 years ago

Resolution: duplicate
Status: closedreopened

Sigh. I still get the crash but seem to have fixed the
symptoms of #854

comment:4 by levon, 21 years ago

Keywords: patch added

ok, got it now. Patch to the list.

comment:5 by levon, 21 years ago

Resolution: fixed
Status: reopenedclosed

applied

comment:6 by levon, 21 years ago

Keywords: VERIFIED added

mass verify. grep -v ApplesWin

Note: See TracTickets for help on using tickets.