<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>119565</bug_id>
          
          <creation_ts>2013-08-07 23:17:02 -0700</creation_ts>
          <short_desc>problems encountered with fast-malloc on illumos x86_64</short_desc>
          <delta_ts>2017-03-11 10:45:55 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>richard</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>915321</commentid>
    <comment_count>0</comment_count>
    <who name="">richard</who>
    <bug_when>2013-08-07 23:17:02 -0700</bug_when>
    <thetext>Hello,

Currently working on the upgrade for the pkgsrc port of webkitgtk from 1.10.2 to 2.0.4..

We&apos;re experiencing lately problems with both 1.10.2 and the work in progress during the build of the WebKit-1.0.gir target.

WebKit was configured with the following options:

Build configuration:
 Enable debugging (slow)                                  : no
 Compile with debug symbols (slow)                        : no
 Enable GCC build optimization                            : yes
 Code coverage support                                    : no
 Optimized memory allocator                               : yes
 Accelerated rendering backend                            : opengl (gl, glx)

Features:
=======
 WebKit1 support                                          : yes
 WebKit2 support                                          : no
 Accelerated Compositing                                  : yes
 Gamepad support                                          : no
 Geolocation support                                      : no
 HTML5 video element support                              : yes
 JIT compilation                                          : yes
 Opcode stats                                             : no
 SVG fonts support                                        : yes
 SVG support                                              : yes
 Spellcheck support                                       : yes
 Credential storage support                               : yes
 Web Audio support                                        : no
 WebGL                                                    : yes
 XSLT support                                             : yes


GTK+ configuration:
 GTK+ version                                             : 2.0
 GDK target                                               : x11
 Introspection support                                    : yes
 Generate documentation                                   : no


An extract of the output is (BTW we&apos;ve patched the WebKit: missing &apos;:&apos; at column type of problems):

  GEN    WebKit-1.0.gir
..
Source/WebKit/gtk/webkit/webkitwebdatabase.cpp:34: Warning: WebKit: multiple comment blocks documenting &apos;SECTION:webkitwebdatabase:&apos; identifier.
Source/WebKit/gtk/webkit/webkitversion.h:33: Warning: WebKit: symbol=&apos;WEBKITGTK_API_VERSION&apos;: Unknown namespace for symbol &apos;WEBKITGTK_API_VERSION&apos;
g-ir-scanner: compile: ...blah
libtool: link: ...blah
Command &apos;[&apos;/var/tmp/pkgsrc/www/webkit-gtk/work/webkitgtk-2.0.4/tmp-introspectT3dqgo/WebKit-1.0&apos;, &apos;--introspect-dump=/var/tmp/pkgsrc/www/webkit-gtk/work/webkitgtk-2.0.4/tmp-introspectT3dqgo/functions.txt,/var/tmp/pkgsrc/www/webkit-gtk/work/webkitgtk-2.0.4/tmp-introspectT3dqgo/dump.xml&apos;]&apos; returned non-zero exit status -11

-11 is SIGSEGV and the following is the stack:
core &apos;gir-core&apos; of 6347:        /var/tmp/pkgsrc/www/webkit-gtk/work/webkitgtk-2.0.4/tmp-introspectIcuk
-----------------  lwp# 1 / thread# 1  --------------------
 fffffd7fc2302499 _ZN3WTF17TCMalloc_PageHeap8GrowHeapEm () + d9
 fffffd7fc2303c0a _ZN3WTF25TCMalloc_Central_FreeList18FetchFromSpansSafeEv () + 19a
 fffffd7fc2304200 _ZN3WTF25TCMalloc_Central_FreeList11RemoveRangeEPNS_11HardenedSLLES2_Pi () + 70
 fffffd7fc2305634 _ZN3WTF10fastMallocEm () + 354
 fffffd7fc232fc1b _ZN3WTF10StringImpl5emptyEv () + 3b
 fffffd7fc2318607 _ZN3WTF19initializeThreadingEv () + 27
 fffffd7fc223bc2e _ZN3JSC19initializeThreadingEv () + 1e
 fffffd7fc34ceb83 webkitInit () + 53
 fffffd7fc34c6d8f _ZL33webkit_download_class_intern_initPv () + 5f
 fffffd7ffa86f8a2 g_type_class_ref () + 4d2
 0000000000409b75 dump_properties () + c5
 000000000040f566 main () + 906
 00000000004097bc _start () + 6c
-----------------  lwp# 3 / thread# 3  --------------------
 fffffd7ffb990e97 __lwp_park () + 17
 fffffd7ffb98a49b cond_wait_queue (fffffd7fc2399408, fffffd7fc23993f0, 0) + 5b
 fffffd7ffb98ab53 __cond_wait (fffffd7fc2399408, fffffd7fc23993f0) + b3
 fffffd7ffb98ab8a cond_wait (fffffd7fc2399408, fffffd7fc23993f0) + 2a
 fffffd7ffb98abc5 pthread_cond_wait (fffffd7fc2399408, fffffd7fc23993f0) + 15
 fffffd7fc2302e26 _ZN3WTF17TCMalloc_PageHeap15scavengerThreadEv () + d6
 fffffd7fc2302e49 ???????? ()
 fffffd7ffb990b3a _thrp_setup (fffffd7ffeae0240) + 8a
 fffffd7ffb990e50 _lwp_start ()

I notice that Source/WTF/wtf/FastMalloc.cpp is not current with the latest gproftool&apos;s TCMalloc
(notably for TCMalloc_PageHeap::GrowHeap).

Currently I&apos;m testing a build with --enable-fast-malloc=no, but would it be possible to update these bits
to the latest TCMalloc code (https://code.google.com/p/gperftools/) which is the recently released 2.1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>915484</commentid>
    <comment_count>1</comment_count>
    <who name="">richard</who>
    <bug_when>2013-08-08 09:42:36 -0700</bug_when>
    <thetext>Well, --enable-fast-malloc=no doesn&apos;t seem to have made a difference, wondering if it is because in http://trac.webkit.org/changeset/142179
WTF_SYSTEM_MALLOC is defined as 1, but USE_SYSTEM_MALLOC is what appears to be checked for in the source code.  

Perhaps this was an incomplete patchset.

Trying again now with CPPFLAGS+= -DUSE_SYSTEM_MALLOC as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>915692</commentid>
    <comment_count>2</comment_count>
    <who name="">richard</who>
    <bug_when>2013-08-08 21:51:25 -0700</bug_when>
    <thetext>That seemed to do the trick.

Now I only get :

(process:311): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `class-&gt;set_property != NULL&apos; failed
Source/WebKit/gtk/webkit/webkitwebplugin.cpp:217: Warning: WebKit: webkit_web_plugin_get_mimetypes: Unknown type: &apos;WebKit.WebKitWebPluginMIMEType&apos;
Source/WebKit/gtk/webkit/webkitglobals.cpp:267: Warning: WebKit: webkit_get_text_checker: return value: Missing (transfer) annotation
Source/WebKit/gtk/webkit/webkitwebframe.cpp:840: Warning: WebKit: webkit_web_frame_get_global_context: return value: Unresolved type: &apos;JSGlobalContextRef&apos;
Source/WebKit/gtk/webkit/webkitwebframe.cpp:1146: Warning: WebKit: webkit_web_frame_get_range_for_word_around_caret: return value: Missing (transfer) annotation
Source/WebKit/gtk/webkit/webkitwebplugindatabase.h:51: Warning: WebKit: webkit_web_plugin_database_plugins_list_free: argument list: Missing (element-type) annotation
  GEN    WebKit-1.0.typelib

but the build seems successful.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>