Bug 1954464

Summary: Crash on quick actions on search bar in Evolution
Product: Red Hat Enterprise Linux 8 Reporter: Michal Odehnal <modehnal>
Component: geocode-glibAssignee: Kalev Lember <klember>
Status: CLOSED MIGRATED QA Contact: Michal Odehnal <modehnal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: mcrha, tpopela
Target Milestone: betaKeywords: MigratedToJIRA
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-15 16:52:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
backtrace none

Description Michal Odehnal 2021-04-28 08:11:14 UTC
Created attachment 1776395 [details]
backtrace

Description of problem:
Segmentation fault in Evolution, but based on backtrace this is caused by geocode-glib

Version-Release number of selected component (if applicable):
geocode-glib-3.26.0-3.el8.x86_64
geocode-glib-devel-3.26.0-3.el8.x86_64
evolution-3.28.5-16.el8.x86_64
evolution-data-server-3.28.5-16.el8.x86_64
evolution-data-server-langpacks-3.28.5-16.el8.noarch
evolution-ews-3.28.5-10.el8.x86_64
evolution-ews-langpacks-3.28.5-10.el8.noarch
evolution-help-3.28.5-16.el8.noarch
evolution-langpacks-3.28.5-16.el8.noarch
libgweather-3.28.2-4.el8.x86_64
libgweather-debuginfo-3.28.2-4.el8.x86_64
libgweather-debugsource-3.28.2-4.el8.x86_64
libgweather-devel-3.28.2-4.el8.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Start Evolution
2. Add a new Calendar, type: Weather
3. Location: -> type 'Brno'
4. Delete the result very fast.
5. Do step 4.

Actual results:
Segfault.

Expected results:
No segfault.

Additional info:

Comment 1 Milan Crha 2021-04-28 08:20:48 UTC
I can reproduce also with typing: "df<baskspace>"

Examining the crash a bit more, the crash place is:

#2  get_place_type_from_attributes (Python Exception <class 'gdb.error'> There is no member named keys.: 
ht=0x5555573ffd20) at ../geocode-glib/geocode-nominatim.c:395
395	                        rank = atoi (g_hash_table_lookup (ht, "place_rank"));

and it crashes for me with:

(gdb) p (char *)place_tree->children->data
$5 = 0x55555747a7f0 "Mexico"

where the received "contents" is:

(gdb) printf "%s\n", contents

[{"place_id":258281399,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":1376330,"boundingbox":["19.0482367","19.5927572","-99.3649242","-98.9403028"],"lat":"19.4326296","lon":"-99.1331785","display_name":"Mexico City, Mexico","place_rank":8,"category":"boundary","type":"administrative","importance":0.8399239324417648,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png","address":{"city":"Mexico City","country":"Mexico","country_code":"mx"}},{"place_id":258507718,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":421151,"boundingbox":["-16.0505592","-15.5001785","-48.2857911","-47.308387"],"lat":"-15.7754462","lon":"-47.7970891","display_name":"Federal District, Central-West Region, Brazil","place_rank":8,"category":"boundary","type":"administrative","importance":0.5669736634370575,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png","address":{"state":"Federal District","region":"Central-West Region","country":"Brazil","country_code":"br"}},{"place_id":258421945,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":106753,"boundingbox":["49.2392851","49.2694883","6.330546","6.3809877"],"lat":"49.2602817","lon":"6.3463759","display_name":"Aboncourt, Thionville, Moselle, Grand Est, Metropolitan France, 57920, France","place_rank":16,"category":"boundary","type":"administrative","importance":0.5550625335644064,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png","address":{"village":"Aboncourt","municipality":"Thionville","county":"Moselle","state":"Grand Est","country":"France","postcode":"57920","country_code":"fr"}},{"place_id":258185940,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":179122,"boundingbox":["46.438423","46.4955421","12.6064081","12.772056"],"lat":"46.4653657","lon":"12.7087174","display_name":"Sauris, UTI della Carnia, Friuli Venezia Giulia, Italy","place_rank":16,"category":"boundary","type":"administrative","importance":0.49910131222490195,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png","address":{"village":"Sauris","municipality":"UTI della Carnia","state":"Friuli Venezia Giulia","country":"Italy","country_code":"it"}},{"place_id":257900909,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":443306,"boundingbox":["48.3041599","48.3967227","10.7116593","10.8060927"],"lat":"48.3542454","lon":"10.7839603","display_name":"Diedorf, Augsburg (district), Bavaria, 86420, Germany","place_rank":16,"category":"boundary","type":"administrative","importance":0.4192479107424996,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png","address":{"town":"Diedorf","county":"Augsburg (district)","state":"Bavaria","postcode":"86420","country":"Germany","country_code":"de"}},{"place_id":258643162,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":1682106,"boundingbox":["47.5575384","47.5876189","8.6307296","8.6675839"],"lat":"47.5720029","lon":"8.647344","display_name":"Dorf, Bezirk Andelfingen, Zurich, 8458, Switzerland","place_rank":16,"category":"boundary","type":"administrative","importance":0.3485923461319498,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png","address":{"village":"Dorf","county":"Bezirk Andelfingen","state":"Zurich","postcode":"8458","country":"Switzerland","country_code":"ch"}},{"place_id":259663060,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","boundingbox":["-15.924044877985","-15.604044877985","-47.99296336309","-47.67296336309"],"lat":"-15.764044877985176","lon":"-47.83296336309007","display_name":"Lago Norte, Região Geográfica Imediata do Distrito Federal, Região Integrada de Desenvolvimento do Distrito Federal e Entorno, Região Geográfica Intermediária do Distrito Federal, Federal District, Central-West Region, DF, Brazil","place_rank":21,"category":"place","type":"postcode","importance":0.32499999999999996,"address":{"town":"Lago Norte","municipality":"Região Geográfica Imediata do Distrito Federal","county":"Região Integrada de Desenvolvimento do Distrito Federal e Entorno","state_district":"Região Geográfica Intermediária do Distrito Federal","state":"Federal District","region":"Central-West Region","postcode":"DF","country":"Brazil","country_code":"br"}},{"place_id":52586721,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"node","osm_id":4444214137,"boundingbox":["47.5555753","47.5955753","10.5345051","10.5745051"],"lat":"47.5755753","lon":"10.5545051","display_name":"Dorf, Ösch, Pfronten, Landkreis Ostallgäu, Bavaria, 87459, Germany","place_rank":19,"category":"place","type":"suburb","importance":0.275,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_place_village.p.20.png","address":{"suburb":"Dorf","village":"Ösch","town":"Pfronten","county":"Landkreis Ostallgäu","state":"Bavaria","postcode":"87459","country":"Germany","country_code":"de"}},{"place_id":761033,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"node","osm_id":271440758,"boundingbox":["49.0576253","49.0976253","11.8491223","11.8891223"],"lat":"49.0776253","lon":"11.8691223","display_name":"Endorf, Laaber, Laaber (VGem), Landkreis Regensburg, Bavaria, 93164, Germany","place_rank":19,"category":"place","type":"village","importance":0.275,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_place_village.p.20.png","address":{"village":"Endorf","municipality":"Laaber (VGem)","county":"Landkreis Regensburg","state":"Bavaria","postcode":"93164","country":"Germany","country_code":"de"}},{"place_id":3336708,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"node","osm_id":410413347,"boundingbox":["48.5139822","48.5539822","13.907142","13.947142"],"lat":"48.5339822","lon":"13.927142","display_name":"Dorf, Sarleinsbach, Bezirk Rohrbach, Upper Austria, 4152, Austria","place_rank":19,"category":"place","type":"village","importance":0.275,"icon":"https://nominatim.openstreetmap.org/ui/mapicons//poi_place_village.p.20.png","address":{"village":"Dorf","county":"Bezirk Rohrbach","state":"Upper Austria","postcode":"4152","country":"Austria","country_code":"at"}}]

Comment 2 Milan Crha 2021-05-18 08:02:19 UTC
This can be related to:
https://gitlab.gnome.org/GNOME/geocode-glib/-/issues/5
which seems to be part of the 3.26.1 release.

Comment 4 RHEL Program Management 2023-09-15 16:52:17 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 5 RHEL Program Management 2023-09-15 16:52:36 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.