[Merkaartor] Segfault during saving changes.

Alessandro Briosi tsdogs at briosix.org
Sun Jun 8 23:15:37 BST 2008


Hello all,
I have just started doing some work to OSM and using Merkaartor is nice, 
though I experience several segfaults (and loose the changes) when 
saving to a file.

I was wondering if it's me doing bad things, qt4 version not compatible 
with the webkit, or a real bug (I know svn is not stable :), once I know 
it's a bug I'll fill in a report).

The file below is a OSM download + some gpx traks and my editings.
I do more edits (starting from the download) then save, then edit more, 
save, and at some point it just crashes on saving.
I don't seem to be able to find what makes it really segfault (some 
peculiar edit?)

I get many "QDateTime::fromString: Parameter out of range"

Regards,
Alessandro

----------------------------------------
More infos follow:

Using revision 8140 from svn
with qt4.3.4 (Fedora 8) and Webkit lib from svn
platform x86_64

To reproduce, grab http://84.18.144.44/tsdogs/osm/rovereto4.mdc
File -> Open (open the file)
File -> Save (os save as)

File size is now 0bytes :(

with gdb:
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
[New Thread 1094719824 (LWP 26588)]
[New Thread 1084229968 (LWP 26589)]
[Thread 1094719824 (LWP 26588) exited]
[Thread 1084229968 (LWP 26589) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912512865056 (LWP 26583)]
0x0000000000447dc5 in MapFeature::id (this=0x0) at Map/MapFeature.cpp:138
138             if (p->Id == "")
Missing separate debuginfos, use: debuginfo-install OpenEXR.x86_64 
bzip2.x86_64 dbus.x86_64 expat.x86_64 fontconfig.x86_64 freetype.x86_64 
gcc.x86_64 glib2.x86_64 glibc.x86_64 ilmbase.x86_64 jasper.x86_64 
kdelibs4.x86_64 lcms.x86_64 libICE.x86_64 libSM.x86_64 libX11.x86_64 
libXau.x86_64 libXcursor.x86_64 libXdmcp.x86_64 libXext.x86_64 
libXfixes.x86_64 libXi.x86_64 libXinerama.x86_64 libXrandr.x86_64 
libXrender.x86_64 libXt.x86_64 libcap.x86_64 libjpeg.x86_64 
libmng.x86_64 libpng.x86_64 libtiff.x86_64 libxcb.x86_64 nas.x86_64 
qt4.x86_64 sqlite.x86_64 zlib.x86_64
(gdb) where
#0  0x0000000000447dc5 in MapFeature::id (this=0x0) at 
Map/MapFeature.cpp:138
#1  0x0000000000447fdc in MapFeature::xmlId (this=0x0) at 
Map/MapFeature.cpp:149
#2  0x0000000000423e03 in RoadRemoveTrackPointCommand::toXML 
(this=0x5b790a0, xParent=@0x7fffed744710)
     at Command/RoadCommands.cpp:98
#3  0x00000000004184ee in CommandList::toXML (this=0x5b79060, 
xParent=@0x7fffed744790) at Command/Command.cpp:93
#4  0x00000000004183b1 in CommandHistory::toXML (this=0x5b77d80, 
xParent=@0x7fffed744860)
     at Command/Command.cpp:253
#5  0x0000000000437c85 in MapDocument::toXML (this=0xc40d40, 
xParent=@0x7fffed744a80) at Map/MapDocument.cpp:87
#6  0x00000000004a08ac in MainWindow::saveDocument (this=0x7fffed746450, 
fn=@0x7fffed744bc0)
     at MainWindow.cpp:654
#7  0x00000000004a0eac in MainWindow::on_fileSaveAsAction_triggered 
(this=0x7fffed746450) at MainWindow.cpp:620
#8  0x00000000004ff46f in MainWindow::qt_metacall (this=0x7fffed746450, 
_c=QMetaObject::InvokeMetaMethod,
     _id=21, _a=0x7fffed745100) at tmp/moc_MainWindow.cpp:196
#9  0x000000399b2f3d71 in QMetaObject::activate () from 
/usr/lib64/libQtCore.so.4
#10 0x000000399c98cf97 in QAction::triggered () from 
/usr/lib64/libQtGui.so.4
#11 0x000000399c98dc3d in QAction::activate () from /usr/lib64/libQtGui.so.4
#12 0x000000399cc85e04 in QWidget::inputMethodEvent () from 
/usr/lib64/libQtGui.so.4
#13 0x000000399c9cf35a in QWidget::event () from /usr/lib64/libQtGui.so.4
#14 0x000000399cc84e51 in QMenu::event () from /usr/lib64/libQtGui.so.4
#15 0x000000399c99274c in QApplicationPrivate::notify_helper () from 
/usr/lib64/libQtGui.so.4
#16 0x000000399c998c1b in QApplication::notify () from 
/usr/lib64/libQtGui.so.4
#17 0x000000399b2e3700 in QCoreApplication::notifyInternal () from 
/usr/lib64/libQtCore.so.4
#18 0x000000399c9e027d in QWidget::inputMethodEvent () from 
/usr/lib64/libQtGui.so.4
#19 0x000000399c9de900 in QApplication::x11ProcessEvent () from 
/usr/lib64/libQtGui.so.4




More information about the Merkaartor mailing list