Subject: bug#26186: 25.1; Emacs compiled with --with-xwidgets segfaults when I call "xwidget-webkit-browse-url"

From: Oscar Belletti <[email-masked]>
Date: Mon, 20 Mar 2017 01:59:24 +0100

The steps I do to reproduce the bug are:
>$ emacs -Q
Then in emacs:
  M-x xwidgets-browse-url RET http://www.google.com RET
Emacs crashes and I get this error:

Fatal error 11: Segmentation fault
Backtrace:
emacs[0x501ef8]
emacs[0x501f9f]
/usr/lib/libpthread.so.0(+0x11fe0)[0x7fa4bcf98fe0]
/usr/lib/libc.so.6(malloc_usable_size+0x54)[0x7fa4bca321e4]
/usr/lib/libsqlite3.so.0(+0x8ade9)[0x7fa4b644ade9]
/usr/lib/libsqlite3.so.0(sqlite3Malloc+0xa6)[0x7fa4b644a3e6]
/usr/lib/libsqlite3.so.0(sqlite3OsInit+0xe)[0x7fa4b644c15e]
/usr/lib/libsqlite3.so.0(sqlite3_initialize+0xee)[0x7fa4b64461de]
/usr/lib/libsqlite3.so.0(+0x88c99)[0x7fa4b6448c99]
/usr/lib/libwebkitgtk-3.0.so.0(+0x139ff48)[0x7fa4c1b0df48]
/usr/lib/libwebkitgtk-3.0.so.0(+0x139e4b9)[0x7fa4c1b0c4b9]
/usr/lib/libwebkitgtk-3.0.so.0(+0xb34430)[0x7fa4c12a2430]
/usr/lib/libjavascriptcoregtk-3.0.so.0(+0x5d670a)[0x7fa4c016a70a]
/usr/lib/libpthread.so.0(+0x72e7)[0x7fa4bcf8e2e7]
/usr/lib/libc.so.6(clone+0x3f)[0x7fa4bcaa154f]
Segmentation fault (core dumped)

In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10)
 of 2017-03-20 built on aliquid
Windowing system distributor 'The X.Org Foundation', version
11.0.11903000
System Description:	Arch Linux

Configured using:
 'configure --with-xwidgets'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix