Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1866 closed defect (fixed)

Segmentation fault on exit

Reported by: stefan@… Owned by: cbro@…
Priority: trivial Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

Index: src/Main.cpp =================================================================== --- src/Main.cpp (revision 15221) +++ src/Main.cpp (working copy) @@ -192,7 +192,9 @@

int x = app.exec();

qDebug() << " " << QDateTime::currentDateTime().toString(Qt::ISODate) << " -- Ending " << QString("Merkaartor %1%2\n").arg(STRINGIFY(VERSION)).arg(STRINGIFY(REVISION));

  • fclose(pLogFile);

+ + if (pLogFile) + fclose(pLogFile);

return x;

}

Change History (4)

comment:1 Changed 10 years ago by Chris Browet

Strange... I don't see how pLogFile could be NULL.

Did you make other changes to the code?

comment:2 Changed 10 years ago by stefan@…

I did not;

97 QString logFilename(qApp->applicationDirPath() + "/merkaartor.log"); (gdb) n 98 QStringList fileNames; (gdb) p qApp->applicationDirPath() No symbol "qApp" in current context. (gdb) print logFilename.toLatin1() $1 = {static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0xa55418 "", array = ""}, static shared_empty = {

ref = {_q_value = 2}, alloc = 0, size = 0, data = 0x7fd7e91366d8 "", array = ""}, d = 0x12acdd0}

comment:3 Changed 10 years ago by Chris Browet

Resolution: fixed
Status: newclosed

(In [15232]) ADD : Built-in list of epsg projections (from proj4) FIX : segfault on exit (fixes #1866)

comment:4 Changed 10 years ago by Chris Browet

(In [15448]) FIX : Relations were not outlined anymore (fixes #1866)

Note: See TracTickets for help on using tickets.