Bug 1240830

Summary: [abrt] epiphany-runtime: ephy_certificate_popover_set_address(): epiphany killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Diogo Campos <diogocamposwd>
Component: epiphanyAssignee: Michael Catanzaro <mcatanzaro>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: debarshir, gecko-bugs-nobody, mcatanzaro, rob.townley
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/cdc447b685183abd1f990418f8e619c6b8a6ed1d
Whiteboard: abrt_hash:6a9f51730cc1a9426cccc007fdc0232ecfb3aba5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-01 20:59:31 UTC Type: ---
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
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Diogo Campos 2015-07-07 21:15:54 UTC
Description of problem:
Clicked on the "lock icon", at right of the "URL bar" (after clicking to edit the URL).
I can not reproduce, however.

Version-Release number of selected component:
epiphany-runtime-3.16.2-2.fc22

Additional info:
reporter:       libreport-2.6.0
backtrace_rating: 4
cmdline:        epiphany
crash_function: ephy_certificate_popover_set_address
executable:     /usr/bin/epiphany
global_pid:     3414
kernel:         4.0.6-300.fc22.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 ephy_certificate_popover_set_address at ephy-certificate-popover.c:69
 #1 ephy_certificate_popover_set_property at ephy-certificate-popover.c:177
 #2 object_set_property at gobject.c:1415
 #3 g_object_new_internal at gobject.c:1808
 #4 g_object_new_valist at gobject.c:2033
 #6 ephy_certificate_popover_new at ephy-certificate-popover.c:353
 #7 open_certificate_popover at ephy-window.c:3168
 #8 location_controller_lock_clicked_cb at ephy-window.c:3191
 #17 icon_button_press_event_cb at ephy-location-entry.c:884
 #22 gtk_entry_event at gtkentry.c:4310

Comment 1 Diogo Campos 2015-07-07 21:16:02 UTC
Created attachment 1049572 [details]
File: backtrace

Comment 2 Diogo Campos 2015-07-07 21:16:04 UTC
Created attachment 1049573 [details]
File: cgroup

Comment 3 Diogo Campos 2015-07-07 21:16:06 UTC
Created attachment 1049574 [details]
File: core_backtrace

Comment 4 Diogo Campos 2015-07-07 21:16:09 UTC
Created attachment 1049575 [details]
File: dso_list

Comment 5 Diogo Campos 2015-07-07 21:16:11 UTC
Created attachment 1049576 [details]
File: environ

Comment 6 Diogo Campos 2015-07-07 21:16:13 UTC
Created attachment 1049577 [details]
File: limits

Comment 7 Diogo Campos 2015-07-07 21:16:18 UTC
Created attachment 1049578 [details]
File: maps

Comment 8 Diogo Campos 2015-07-07 21:16:20 UTC
Created attachment 1049579 [details]
File: mountinfo

Comment 9 Diogo Campos 2015-07-07 21:16:23 UTC
Created attachment 1049580 [details]
File: namespaces

Comment 10 Diogo Campos 2015-07-07 21:16:25 UTC
Created attachment 1049581 [details]
File: open_fds

Comment 11 Diogo Campos 2015-07-07 21:16:27 UTC
Created attachment 1049582 [details]
File: proc_pid_status

Comment 12 Diogo Campos 2015-07-07 21:16:29 UTC
Created attachment 1049583 [details]
File: var_log_messages

Comment 13 Michael Catanzaro 2015-07-07 21:54:32 UTC
Thanks for reporting all these bugs!

Program terminated with signal SIGSEGV, Segmentation fault.
#0  ephy_certificate_popover_set_address (address=0x273e5d0 "", popover=0x30f82c0) at ephy-certificate-popover.c:69
69	  uri_text = g_markup_printf_escaped ("<span weight=\"bold\">%s</span>.", uri->host);

Hm, this is a problem with my downstream patchset to display UTF-8 URLs properly. But I am not sure if this code is unsafe, or if the bug is in g_markup_printf_escaped.

I would expect the bug to be reproducible on whatever site you were visiting at the time, which presumably has UTF-8 characters in its hostname?

Comment 14 Diogo Campos 2015-07-07 22:44:53 UTC
(In reply to Michael Catanzaro from comment #13)
> Thanks for reporting all these bugs!

C'mon Michael! I'm just the one who "complains" and writes bad English, you are the one who fixes things!

> I would expect the bug to be reproducible on whatever site you were visiting
> at the time, which presumably has UTF-8 characters in its hostname?

I don't remember which site was, sorry :/

Some idea of a UTF-8 hostname to test this? Or how I can "force" UTF-8 in a hostname? (it *needs* to be in the hostname, btw? Cannot be in another part of the URL? And which characters are considered UTF-8 to this? Everything not in ASCII/English?).

As an alternative, I will just keep clicking the thing on every website until it crashes again...

Comment 15 Michael Catanzaro 2015-07-08 13:57:36 UTC
(In reply to Diogo Campos from comment #14)
> Some idea of a UTF-8 hostname to test this?

It seems to be quite hard to find sites with UTF-8 hostnames using internet search engines. :( My recommendation is to look in your browsing history at the sites you viewed yesterday, and look for special characters in the hostname.

I just assumed that a UTF-8 hostname is to blame for this; if you don't have any such sites in your browsing history, then I must be wrong. That would be helpful to determine.

> Or how I can "force" UTF-8 in a
> hostname? (it *needs* to be in the hostname, btw? Cannot be in another part
> of the URL? And which characters are considered UTF-8 to this? Everything
> not in ASCII/English?).

Yeah, if the UTF-8 is in another part of the URL, I don't think it would matter. (I tested on Japanese Wikipedia and it works fine.) Anything that doesn't look like an English character is going to be UTF-8, yes.

Comment 16 Diogo Campos 2015-07-08 18:22:33 UTC
Tried to reproduce in all (https) websites visited yesterday. No luck.
Also, no UTF-8 character spotted in the hostnames.

Comment 17 Michael Catanzaro 2016-07-27 14:07:27 UTC
*** Bug 1342608 has been marked as a duplicate of this bug. ***