[QGIS-Developer] QGIS crashing on closing

Even Rouault even.rouault at spatialys.com
Wed Oct 24 10:20:44 PDT 2018


Andreas,

> Maybe an issue only on my machine?

Hum, that somehow rings a bell of something I've seen with past versions. I 
can't reproduce here on my system (16.04) with master, but can you run

valgrind /path/to/your/qgis

and see what it outputs at QGIS closing (but this might hide the issue as 
well)

("sudo apt install valgrind" if needed)

Looking at your stack trace, it seems to be an issue when the 
"static QHash< QString, EllipsoidParameters > sEllipsoidCache" or
"static QList< QgsEllipsoidUtils::EllipsoidDefinition > sDefinitionCache"
objects in qgsellipsoidutils are automatically destroyed by the operating 
system. Looks like some objects have already been destroyed before.

Even

> 
> -------------------
> 
> Here is what I get in the console:
> 
> QGIS died on signal 11[New LWP 6735]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> 0x00007f1d236456c2 in __GI___waitpid (pid=6744, stat_loc=0x7fff41e120ac,
> options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
> 30      ../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis
> nicht gefunden.
> [Current thread is 1 (Thread 0x7f1d2741e980 (LWP 6734))]
> #0  0x00007f1d236456c2 in __GI___waitpid (pid=6744,
> stat_loc=0x7fff41e120ac, options=0) at
> ../sysdeps/unix/sysv/linux/waitpid.c:30
>          resultvar = 18446744073709551104
>          sc_cancel_oldtype = 0
> #1  0x000055cadcbcfffe in qgisCrash(int) ()
> #2  0x00007f1d2359ff20 in <signal handler called> () at
> /lib/x86_64-linux-gnu/libc.so.6
> #3  0x00007f1d25b2e718 in
> QgsCoordinateReferenceSystem::~QgsCoordinateReferenceSystem() () at
> /usr/local/lib/libqgis_core.so.3.3.0
> #4  0x00007f1d25b8ba1d in QHash<QString,
> QgsEllipsoidUtils::EllipsoidParameters>::deleteNode2(QHashData::Node*)
> () at /usr/local/lib/libqgis_core.so.3.3.0
> #5  0x00007f1d23ff46c9 in QHashData::free_helper(void
> (*)(QHashData::Node*)) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #6  0x00007f1d235a4615 in __cxa_finalize (d=0x7f1d26692c00) at
> cxa_finalize.c:83
>          check = 4159
>          cxafn = <optimized out>
>          cxaarg = <optimized out>
>          f = 0x55cadef39e10
>          funcs = 0x55cadef39c60
> #7  0x00007f1d2582e453 in __do_global_dtors_aux () at
> /usr/local/lib/libqgis_core.so.3.3.0
> #8  0x00007fff41e13550 in  ()
> #9  0x00007f1d272a8b73 in _dl_fini () at dl-fini.c:138
>          array = 0x7f1d274c0068 <_rtld_global+8>
>          i = <optimized out>
>          l = 0x7f1d2746d510
>          maps = 0x7fff41e12950
>          i = <optimized out>
>          l = <optimized out>
>          nmaps = <optimized out>
>          nloaded = <optimized out>
>          ns = 0
>          do_audit = <optimized out>
>          __PRETTY_FUNCTION__ = "_dl_fini"
> gdb returned 0
> Abgebrochen (Speicherabzug geschrieben)
> 
> ------------
> 
> Thanks for your help!
> 
> Andreas
> 
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the QGIS-Developer mailing list