<?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>35639</bug_id>
          
          <creation_ts>2010-03-03 03:22:50 -0800</creation_ts>
          <short_desc>[Qt] mmap inside javascriptcore fails if building an app on os x &gt;= 10.5 and deploying it onto 10.4</short_desc>
          <delta_ts>2010-03-10 04:55:34 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>34888</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tor Arne Vestbø">vestbo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>195436</commentid>
    <comment_count>0</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-03 03:22:50 -0800</bug_when>
    <thetext>This bug report originated from issue QTBUG-7065
http://bugreports.qt.nokia.com/browse/QTBUG-7065

--- Description ---

10% of my customers are still with os x 10.4!&lt;br/&gt;
Starting from Qt 4.6 mmaps are failing inside JavaScriptCore when I deploy an application using QtScript compiled on OS X 10.6 onto 10.4.&lt;br/&gt;
I tracked down the issue to a platform detection mistake inside src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:

&lt;p&gt;.... about line 40 ...&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;The following small fix makes it work for me:&lt;/p&gt;

&lt;p&gt;...&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;Also it should say &quot;BUILDING_FOR_TIGER&quot; instead of &quot;BUILD_ON_TIGER&quot; for the sake of clarity.&lt;br/&gt;
PS: Thanks for having that flag to disable JIT. QtScript works just great for me!&lt;/p&gt;

--- Comments ---

We&apos;re aware of this issue (see http://www.pubbs.net/webkit/200909/85716).
Recently some macros were added to wtf/Platform.h, including TARGETING_TIGER ( = your BUILDING_FOR_TIGER).
I think the correct fix would be to use those defines in wtf/VMTags.h (replacing BUILDING_ON_TIGER).
But it needs to be fixed upstream (http://bugs.webkit.org).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197987</commentid>
    <comment_count>1</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-10 04:55:34 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 34888 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>