Your message dated Sat, 07 Sep 2019 15:20:01 +0000
with message-id <[email protected]>
and subject line Bug#931807: fixed in webkit2gtk 2.24.4-1~deb10u1
has caused the Debian Bug report #931807,
regarding libjavascriptcoregtk-4.0-18: segfaults on powerpc64 and s390x
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
931807: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931807
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libwebkit2gtk-4.0-37
Version: 2.24.3-1

Dear Maintainer,

In Ubuntu, the autopkgtests for sphinx package started failing on ppc64el
and s390x when webkit2gtk was updated from 2.23.91 to 2.23.92, see [1]
(later they pass again, because Dimitri John Ledkov disabled the tests on
these architectures). This is not an Ubuntu-specific issue, I am just
giving a link to Ubuntu infrastucture because Debian runs autopkgtests only
on amd64.

I managed to reproduce this with C code (not Python). Attached is a test
case that is small from C point of view (trimming down the HTML part would
be more difficult).

I am compiling it and running (on a porterbox) using:

  $ gcc -O0 `pkg-config --libs --cflags webkit2gtk-4.0` test.c
  $ xvfb-run -a ./a.out

The expected output is (as happens on amd64):

  [native code]: CONSOLE LOG Test

On ppc64 and s390x, this happens instead:

  ** (a.out:56789): WARNING **: 15:38:47.789: Error running javascript: 

This happens with Sphinx' own website, and other documentation projects
generated by Sphinx (such as https://docs.python.org/3/).

I expected that in case of failure, this line would print the error case:

  g_warning ("Error running javascript: %s", error->message);

That line is copied from the documentation [2]. However the reason is empty.

[1]: https://autopkgtest.ubuntu.com/packages/sphinx/disco/s390x
[2]: 
https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-run-javascript-finish

--
Dmitry Shachnev
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>

void on_javascript_finished(GObject *object, GAsyncResult *result, G_GNUC_UNUSED gpointer data) {
    WebKitJavascriptResult *js_result;
    GError *error = NULL;

    js_result = webkit_web_view_run_javascript_finish(WEBKIT_WEB_VIEW(object), result, &error);
    if (!js_result) {
        g_warning("Error running javascript: %s", error->message);
        g_error_free(error);
    }
    gtk_main_quit();
}

int print_test(gpointer data) {
    WebKitWebView *view = WEBKIT_WEB_VIEW(data);
    const gchar *script = "console.log('Test');";
    webkit_web_view_run_javascript(view, script, NULL, on_javascript_finished, NULL);
    return G_SOURCE_REMOVE;
}

int main(int argc, char **argv) {
    gtk_init(&argc, &argv);

    WebKitSettings *settings = webkit_settings_new();
    webkit_settings_set_enable_write_console_messages_to_stdout(settings, TRUE);

    WebKitWebView *view = WEBKIT_WEB_VIEW(webkit_web_view_new_with_settings(settings));
    g_object_ref(view);

    webkit_web_view_load_uri(view, "https://www.sphinx-doc.org/en/master/";);

    g_timeout_add_seconds(2, print_test, view);
    gtk_main();

    return 0;
}

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: webkit2gtk
Source-Version: 2.24.4-1~deb10u1

We believe that the bug you reported is fixed in the latest version of
webkit2gtk, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alberto Garcia <[email protected]> (supplier of updated webkit2gtk package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 04 Sep 2019 11:41:19 +0300
Source: webkit2gtk
Architecture: source
Version: 2.24.4-1~deb10u1
Distribution: buster-security
Urgency: high
Maintainer: Debian WebKit Maintainers 
<[email protected]>
Changed-By: Alberto Garcia <[email protected]>
Closes: 931807
Changes:
 webkit2gtk (2.24.4-1~deb10u1) buster-security; urgency=high
 .
   * Rebuild for buster-security.
   * The WebKitGTK security advisory WSA-2019-0004 lists the following
     security fixes in the latest versions of WebKitGTK:
     + CVE-2019-8671, CVE-2019-8672, CVE-2019-8677, CVE-2019-8679 and
       CVE-2019-8686 (fixed in 2.24.2)
     + CVE-2019-8666, CVE-2019-8673, CVE-2019-8676, CVE-2019-8681,
       CVE-2019-8687, CVE-2019-8689, and CVE-2019-8690 (fixed in 2.24.3)
     + CVE-2019-8644, CVE-2019-8649, CVE-2019-8658, CVE-2019-8669,
       CVE-2019-8678, CVE-2019-8680, CVE-2019-8683, CVE-2019-8684 and
       CVE-2019-8688 (fixed in 2.24.4)
 .
 webkit2gtk (2.24.4-1) unstable; urgency=medium
 .
   * New upstream release (Closes: #931807).
   * debian/libwebkit2gtk-4.0-37.symbols:
     + Update symbols.
Checksums-Sha1:
 bc996c2010c1ed6a8e2bad33f9f72aff905d2a98 4190 webkit2gtk_2.24.4-1~deb10u1.dsc
 f978b967422c6b423b11062375bab6506243388c 17575784 webkit2gtk_2.24.4.orig.tar.xz
 c28ce4b9a991f62b0cb0126ae0484196ff14b33b 195 webkit2gtk_2.24.4.orig.tar.xz.asc
 c3fab0d489bd64ca6661fcff688dd8d3bd38fecc 61352 
webkit2gtk_2.24.4-1~deb10u1.debian.tar.xz
 56d26b36f23a508bad1b2897508b022cc90aeb79 16048 
webkit2gtk_2.24.4-1~deb10u1_source.buildinfo
Checksums-Sha256:
 51a4cedf9b59b0e50fc0e562604c32e6797cef653803caa6e9449a942d7089fd 4190 
webkit2gtk_2.24.4-1~deb10u1.dsc
 8668b129c026624ec226a4cccf4995f9d26f3e88fc28ab75b0e965f3c32b7dd8 17575784 
webkit2gtk_2.24.4.orig.tar.xz
 96aa3c6266c8968b48d33c55a64364f2d9c68249abda464c1c716659434ff64a 195 
webkit2gtk_2.24.4.orig.tar.xz.asc
 2c6e0ae181217410764186bb9b7f744dc3fb01a57d95bf54e51e1ef3b8e7a683 61352 
webkit2gtk_2.24.4-1~deb10u1.debian.tar.xz
 e94caae1bc052cfc6df1223afb150a94508984a2d67d99217e2a8f60a109945b 16048 
webkit2gtk_2.24.4-1~deb10u1_source.buildinfo
Files:
 8dd76861b814acf22a09f62f65b5b878 4190 web optional 
webkit2gtk_2.24.4-1~deb10u1.dsc
 c214963d8c0e7d83460da04a0d8dda87 17575784 web optional 
webkit2gtk_2.24.4.orig.tar.xz
 fe2e05e8ef36c33a6eeda8266e874de4 195 web optional 
webkit2gtk_2.24.4.orig.tar.xz.asc
 bca47ab723e78280a82fc933c6d5dbda 61352 web optional 
webkit2gtk_2.24.4-1~deb10u1.debian.tar.xz
 39796b43975e6e10099dad8673c5f77e 16048 web optional 
webkit2gtk_2.24.4-1~deb10u1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYrwugQBKzlHMYFizAAyEYu0C2AIFAl1vegoACgkQAAyEYu0C
2AJFaQ/9GEqOolcr9ZZAWZD9CNFvlS3EX+mC5HMQZEUEltSOzMNXBKBj2klngtj2
qVzCCkZy00UM3ri9hjVGkhTluXT0RMeTZKqG8nFAY47jEiIBxr1bA4vL32CYvR50
WW9bL7jaANpvpl0tJBhK/cRDclYduvjpFvPIaFyrDUbq0VHzdVWCU6TDAhylND/5
f7cfEi7pHkCbXNAtPOxEZXO0I4VJ37qfXh35/eJ9ZMpN44GHapG4OMjArwo4MYRi
sdH/DrWkWT/nSUIyx2eqDyfp9oiU6BkGOWchht3zvilEJIMEc2ojccnbC2gEp/wa
h6J6fwX4l6KQsrQzJLEIh/gEpcKAg/x3ICLzIys0ePCnyWpAFlL7HNMveJU33G5/
Y6UeVQD809F9vyrcOwij1T1iIRexmBm1XTux4ydApQ2BAxIy+AWX5A4t3yqrPPwI
K9VOozum3dMdusSOpzsiXMB2eesoHMUsbRALejXZJ9fo7eDik8kTcmWyWaz1C6a9
CXkxeg2O+c4sbxIAb07C7zsZHg7Y9HJWjrGDQO5BOddzbGr3yXvjko1bxDKGvu4B
2zgX4VLy8TLBAk/rFaNwloVvH1gJFhfbXmHbaIvC0fl3RlVTRtFC6FzfuxxObTky
QZfoMrPm8lIKT/018FDalEojNZxehOym+qP+6yZE8pEybAQ6ECo=
=YO6N
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to