Bug 1494545 - SAGA segfaulting when loading a shapefile
Summary: SAGA segfaulting when loading a shapefile
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: saga
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Volker Fröhlich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-22 13:13 UTC by Daniele Viganò
Modified: 2018-05-29 12:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 12:05:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Core dump stack trace (systemd-coredump) (12.60 KB, text/plain)
2017-09-22 13:14 UTC, Daniele Viganò
no flags Details

Description Daniele Viganò 2017-09-22 13:13:15 UTC
Description of problem:

When loading a shapefile in SAGA a segfault is triggered

Version-Release number of selected component (if applicable):

saga-2.2.7-3.fc26
proj-4.9.3-2.fc26.x86_64
gdal-2.1.3-1.fc26.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Open saga_gui
2. File -> Shape -> Loads
3. Select an ESRI Shapefile (*.shp)

Actual results:

Segmentation fault (core dumped)

Expected results:

The shapefile is loaded into SAGA


Additional info:

Sep 22 15:11:03 gemlatitude5450 systemd-coredump[16005]: Process 15979 (saga_gui) of user 1000 dumped core.
                                                         
                                                         Stack trace of thread 15979:
                                                         #0  0x00007f769900e3e0 _ZNK15CSG_Projections12WKT_to_Proj4ER10CSG_StringRKS0_ (libsaga_api-2.2.7.so)
                                                         #1  0x00007f769901010c _ZN14CSG_Projection6AssignERK10CSG_String21ESG_Projection_Format (libsaga_api-2.2.7.so)
                                                         #2  0x00007f769901067a _ZN14CSG_Projection4LoadERK10CSG_String21ESG_Projection_Format (libsaga_api-2.2.7.so)
                                                         #3  0x00007f769901ba16 _ZN10CSG_Shapes10_Load_ESRIERK10CSG_String (libsaga_api-2.2.7.so)
                                                         #4  0x00007f769901a48b _ZN10CSG_Shapes6CreateERK10CSG_String (libsaga_api-2.2.7.so)
                                                         #5  0x00007f769901ad34 _ZN10CSG_ShapesC1ERK10CSG_String (libsaga_api-2.2.7.so)
                                                         #6  0x00007f769901ad91 _Z16SG_Create_ShapesRK10CSG_String (libsaga_api-2.2.7.so)
                                                         #7  0x000055d087c9a155 _ZN18CWKSP_Data_Manager4OpenERK8wxStringi (saga_gui)
                                                         #8  0x000055d087c9a257 _ZN18CWKSP_Data_Manager4OpenEi (saga_gui)
                                                         #9  0x000055d087c9f0bd _ZN18CWKSP_Data_Manager10On_CommandEi (saga_gui)
                                                         #10 0x000055d087c8f9eb _ZN18CWKSP_Base_Control10On_CommandER14wxCommandEvent (saga_gui)
                                                         #11 0x00007f76974d0c8a _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent (libwx_baseu-3.0.so.0)
                                                         #12 0x00007f76974d0d93 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler (libwx_baseu-3.0.so.0)
                                                         #13 0x00007f76974d115b _ZN12wxEvtHandler11TryHereOnlyER7wxEvent (libwx_baseu-3.0.so.0)
                                                         #14 0x00007f76974d0f53 _ZN12wxEvtHandler10DoTryChainER7wxEvent (libwx_baseu-3.0.so.0)
                                                         #15 0x00007f76974d1245 _ZN12wxEvtHandler12ProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
                                                         #16 0x00007f7697de767b _ZN12wxWindowBase8TryAfterER7wxEvent (libwx_gtk3u_core-3.0.so.0)
                                                         #17 0x00007f76974d0fa7 _ZN12wxEvtHandler18SafelyProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
                                                         #18 0x00007f7697d9b6bb _ZN10wxMenuBase9SendEventEii (libwx_gtk3u_core-3.0.so.0)
                                                         #19 0x00007f7697c8d90b menuitem_activate (libwx_gtk3u_core-3.0.so.0)
                                                         #20 0x00007f769478630d g_closure_invoke (libgobject-2.0.so.0)
                                                         #21 0x00007f769479898e signal_emit_unlocked_R (libgobject-2.0.so.0)
                                                         #22 0x00007f76947a11a5 g_signal_emit_valist (libgobject-2.0.so.0)
                                                         #23 0x00007f76947a1b0f g_signal_emit (libgobject-2.0.so.0)
                                                         #24 0x00007f769503af86 gtk_widget_activate (libgtk-3.so.0)
                                                         #25 0x00007f7694f0ab96 gtk_menu_shell_activate_item (libgtk-3.so.0)
                                                         #26 0x00007f7694f0ae72 gtk_menu_shell_button_release (libgtk-3.so.0)
                                                         #27 0x00007f7694eee1f7 _gtk_marshal_BOOLEAN__BOXEDv (libgtk-3.so.0)
                                                         #28 0x00007f7694786546 _g_closure_invoke_va (libgobject-2.0.so.0)
                                                         #29 0x00007f76947a0e69 g_signal_emit_valist (libgobject-2.0.so.0)
                                                         #30 0x00007f76947a1b0f g_signal_emit (libgobject-2.0.so.0)
                                                         #31 0x00007f76950389c4 gtk_widget_event_internal (libgtk-3.so.0)
                                                         #32 0x00007f7694eeb0ce propagate_event (libgtk-3.so.0)
                                                         #33 0x00007f7694eed1f0 gtk_main_do_event (libgtk-3.so.0)
                                                         #34 0x00007f76949fe685 _gdk_event_emit (libgdk-3.so.0)
                                                         #35 0x00007f7694a2fb52 gdk_event_source_dispatch (libgdk-3.so.0)
                                                         #36 0x00007f7694114247 g_main_context_dispatch (libglib-2.0.so.0)
                                                         #37 0x00007f76941145e8 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
                                                         #38 0x00007f7694114902 g_main_loop_run (libglib-2.0.so.0)
                                                         #39 0x00007f7694eec325 gtk_main (libgtk-3.so.0)
                                                         #40 0x00007f7697c168a5 _ZN14wxGUIEventLoop5DoRunEv (libwx_gtk3u_core-3.0.so.0)
                                                         #41 0x00007f7697392b43 _ZN15wxEventLoopBase3RunEv (libwx_baseu-3.0.so.0)
                                                         #42 0x00007f769735ab46 _ZN16wxAppConsoleBase8MainLoopEv (libwx_baseu-3.0.so.0)
                                                         #43 0x00007f76973e3087 _Z7wxEntryRiPPw (libwx_baseu-3.0.so.0)
                                                         #44 0x000055d087bd6ed2 main (saga_gui)
                                                         #45 0x00007f76955ee50a __libc_start_main (libc.so.6)
                                                         #46 0x000055d087bdde8a _start (saga_gui)
                                                         
                                                         Stack trace of thread 15980:
                                                         #0  0x00007f76959ac90b pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                         #1  0x00007f76961a0cdc _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (libstdc++.so.6)
                                                         #2  0x00007f768bc0a6d7 _ZN7bmalloc9AsyncTaskINS_4HeapEMS1_FvvEE13threadRunLoopEv (libjavascriptcoregtk-4.0.so.18)
                                                         #3  0x00007f768bc0a819 _ZN7bmalloc9AsyncTaskINS_4HeapEMS1_FvvEE16threadEntryPointEPS4_ (libjavascriptcoregtk-4.0.so.18)
                                                         #4  0x00007f76961a701f n/a (libstdc++.so.6)
                                                         #5  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #6  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15981:
                                                         #0  0x00007f76956d2acd poll (libc.so.6)
                                                         #1  0x00007f7694114569 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
                                                         #2  0x00007f769411467c g_main_context_iteration (libglib-2.0.so.0)
                                                         #3  0x00007f76941146c1 glib_worker_main (libglib-2.0.so.0)
                                                         #4  0x00007f769413b536 g_thread_proxy (libglib-2.0.so.0)
                                                         #5  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #6  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15982:
                                                         #0  0x00007f76956d2acd poll (libc.so.6)
                                                         #1  0x00007f7694114569 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
                                                         #2  0x00007f7694114902 g_main_loop_run (libglib-2.0.so.0)
                                                         #3  0x00007f76944a7cb6 gdbus_shared_thread_func (libgio-2.0.so.0)
                                                         #4  0x00007f769413b536 g_thread_proxy (libglib-2.0.so.0)
                                                         #5  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #6  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15984:
                                                         #0  0x00007f769779231e n/a (libgomp.so.1)
                                                         #1  0x00007f769778fd18 n/a (libgomp.so.1)
                                                         #2  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #3  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15985:
                                                         #0  0x00007f769779231e n/a (libgomp.so.1)
                                                         #1  0x00007f769778fd18 n/a (libgomp.so.1)
                                                         #2  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #3  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15986:
                                                         #0  0x00007f769779231e n/a (libgomp.so.1)
                                                         #1  0x00007f769778fd18 n/a (libgomp.so.1)
                                                         #2  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #3  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15996:
                                                         #0  0x00007f76956d9559 syscall (libc.so.6)
                                                         #1  0x00007f76941596fa g_cond_wait_until (libglib-2.0.so.0)
                                                         #2  0x00007f76940e8b31 g_async_queue_pop_intern_unlocked (libglib-2.0.so.0)
                                                         #3  0x00007f769413bed4 g_thread_pool_thread_proxy (libglib-2.0.so.0)
                                                         #4  0x00007f769413b536 g_thread_proxy (libglib-2.0.so.0)
                                                         #5  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #6  0x00007f76956debbf __clone (libc.so.6)
                                                         
                                                         Stack trace of thread 15998:
                                                         #0  0x00007f76956d2acd poll (libc.so.6)
                                                         #1  0x00007f7694114569 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
                                                         #2  0x00007f769411467c g_main_context_iteration (libglib-2.0.so.0)
                                                         #3  0x00007f7645393f3d dconf_gdbus_worker_thread (libdconfsettings.so)
                                                         #4  0x00007f769413b536 g_thread_proxy (libglib-2.0.so.0)
                                                         #5  0x00007f76959a636d start_thread (libpthread.so.0)
                                                         #6  0x00007f76956debbf __clone (libc.so.6)

Comment 1 Daniele Viganò 2017-09-22 13:14:39 UTC
Created attachment 1329582 [details]
Core dump stack trace (systemd-coredump)

Comment 2 Daniele Viganò 2018-01-22 16:56:07 UTC
This Debian patch seems to fix the issue, at least it worked on my 2.3.1 build:

https://sources.debian.org/patches/saga/2.3.1+dfsg-3/Fix_projections_gcc6.patch/

Comment 3 Fedora End Of Life 2018-05-03 08:42:55 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2018-05-29 12:05:15 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.