Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Segmentation fault on exit #1866

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

Segmentation fault on exit #1866

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: stefan[at]konink.de
[Submitted to the original trac issue database at 11.10am, Tuesday, 26th May 2009]

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;
    

}

@openstreetmap-trac
Copy link
Author

Author: Koying
[Added to the original trac issue at 12.52pm, Tuesday, 26th May 2009]

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

Did you make other changes to the code?

@openstreetmap-trac
Copy link
Author

Author: stefan[at]konink.de
[Added to the original trac issue at 1.13pm, Tuesday, 26th May 2009]

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}

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 2.00pm, Tuesday, 26th May 2009]

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

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 12.24am, Monday, 1st June 2009]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant