qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.29k stars 2.96k forks source link

core dump on loading project - fix broken PostGIS layer #19154

Closed qgib closed 5 years ago

qgib commented 10 years ago

Author Name: Gavin Fleming (@gubuntu) Original Redmine Issue: 10772 Affected QGIS version: master Redmine category:project_loading/saving


I opened a project that had a missing PostGIS layer. The dialog to fix the broken layer came up and immediately, QGIS crashed.

Warning: Loading a file that was saved with an older version of qgis (saved in 2.3.0-Master, loaded in 2.5.0-Master). Problems may occur.
QGIS died on signal 11Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0
Aborted (core dumped)

So I ran QGIS as root, I could fix the layer without crashing. Thereafter the project opened fine running QGIS as my user again.

QGIS version 2.5.0-Master QGIS code revision exported Compiled against Qt 4.8.6 Running against Qt 4.8.6 Compiled against GDAL/OGR 1.11.0 Running against GDAL/OGR 1.11.0 Compiled against GEOS 3.4.2-CAPI-1.8.2 Running against GEOS 3.4.2-CAPI-1.8.2 r3921 PostgreSQL Client Version 9.3.4 SpatiaLite Version 4.1.1 QWT Version 5.2.3 PROJ.4 Version 480 QScintilla2 Version

qgib commented 10 years ago

Author Name: Giovanni Manghi (@gioman)


I see that you are using master, does this happen also on 2.4?


qgib commented 10 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 10 years ago

Author Name: Matthias Kuhn (@m-kuhn)


Is there a particular reason why you think that running as root would have changed something?

The main reason I can think of is a configuration issue. Can you try to move your .qgis2 folder to another location temporarily so you start with a clean configuration from scratch and then check if you still get a crash.

qgib commented 9 years ago

Author Name: Jürgen Fischer (@jef-n)


closing for the lack of feedback ("try again as the root user" is an unrelated message from gdb, when trying to attach to the qgis process after the crash fails)