<?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>111660</bug_id>
          
          <creation_ts>2013-03-06 18:46:20 -0800</creation_ts>
          <short_desc>[ARM] isVFPPresent failed to detect vfp3</short_desc>
          <delta_ts>2019-06-09 19:11:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Android</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>108645</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="linzj">manjian2006</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>buildbot</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>ngockhanhlam87</cc>
    
    <cc>ossy</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>849595</commentid>
    <comment_count>0</comment_count>
    <who name="linzj">manjian2006</who>
    <bug_when>2013-03-06 18:46:20 -0800</bug_when>
    <thetext>Currently,the ARM family assemblers only support vfp3.But the function isVFPPresent just determines if we want to use vfp by checking HWCAP_VFP.
    int fd = open(&quot;/proc/self/auxv&quot;, O_RDONLY);
    if (fd &gt; 0) {
        Elf32_auxv_t aux;
        while (read(fd, &amp;aux, sizeof(Elf32_auxv_t))) {
            if (aux.a_type == AT_HWCAP) {
                close(fd);
                return aux.a_un.a_val &amp; HWCAP_VFP;
            }
        }
        close(fd);
    }

This flag is on whenever the cpu has a vfp.But for armv5 family cpus,they just have vfp,not vfp3.So this will cause crash on these machines.
You should change HWCAP_VFP to HWCAP_VFPv3.
As the Linux kernel source arch/arm/vfp/vfpmodule.c descripts:

#ifdef CONFIG_VFPv3
		if (VFP_arch &gt;= 2) {
			elf_hwcap |= HWCAP_VFPv3;

			/*
			 * Check for VFPv3 D16. CPUs in this configuration
			 * only have 16 x 64bit registers.
			 */
			if (((fmrx(MVFR0) &amp; MVFR0_A_SIMD_MASK)) == 1)
				elf_hwcap |= HWCAP_VFPv3D16;
		}
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849597</commentid>
    <comment_count>1</comment_count>
    <who name="linzj">manjian2006</who>
    <bug_when>2013-03-06 18:47:52 -0800</bug_when>
    <thetext>you don&apos;t want me to submit a patch,because I can&apos;t checkout the whole svn trunk.I am in China,where is &quot;protected&quot; by the Great Fire Wall.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859102</commentid>
    <comment_count>2</comment_count>
    <who name="linzj">manjian2006</who>
    <bug_when>2013-03-19 23:39:25 -0700</bug_when>
    <thetext>well,seems a patch is mandatory here</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859934</commentid>
    <comment_count>3</comment_count>
      <attachid>194165</attachid>
    <who name="linzj">manjian2006</who>
    <bug_when>2013-03-20 18:54:29 -0700</bug_when>
    <thetext>Created attachment 194165
change to vfp3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859937</commentid>
    <comment_count>4</comment_count>
      <attachid>194166</attachid>
    <who name="linzj">manjian2006</who>
    <bug_when>2013-03-20 18:56:36 -0700</bug_when>
    <thetext>Created attachment 194166
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859951</commentid>
    <comment_count>5</comment_count>
      <attachid>194167</attachid>
    <who name="linzj">manjian2006</who>
    <bug_when>2013-03-20 19:22:46 -0700</bug_when>
    <thetext>Created attachment 194167
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>945742</commentid>
    <comment_count>6</comment_count>
      <attachid>194167</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-10-31 16:20:59 -0700</bug_when>
    <thetext>Comment on attachment 194167
patch

Rejecting attachment 194167 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.appspot.com&apos;, &apos;--bot-id=webkit-cq-01&apos;, &apos;land-attachment&apos;, &apos;--force-clean&apos;, &apos;--non-interactive&apos;, &apos;--parent-command=commit-queue&apos;, 194167, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
/git.webkit.org/WebKit
   ed46a0b..9cd447a  master     -&gt; origin/master
Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ...
Currently at 158402 = ed46a0b8b39c279bd312a1751a6d47cd897fafb8
r158404 = 9cd447a9654a49da4bb567a48886a88e9c6a144b
Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc
First, rewinding head to replay your work on top of it...
Fast-forwarded master to refs/remotes/origin/master.

Full output: http://webkit-queues.appspot.com/results/19498010</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127125</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2015-09-18 09:08:15 -0700</bug_when>
    <thetext>Hey. This patch has been sitting here for 2 years, with an r+ and just with a cq- because it don&apos;t has a changelog.


The patch still applies, should we commit it? It only needs a changelog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127977</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-22 03:36:01 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Hey. This patch has been sitting here for 2 years, with an r+ and just with
&gt; a cq- because it don&apos;t has a changelog.
&gt; 
&gt; The patch still applies, should we commit it? It only needs a changelog.

I agree, let&apos;s add a changelog and commit it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>194165</attachid>
            <date>2013-03-20 18:54:29 -0700</date>
            <delta_ts>2013-03-20 19:22:46 -0700</delta_ts>
            <desc>change to vfp3</desc>
            <filename>patch.1</filename>
            <type>application/octet-stream</type>
            <size>597</size>
            <attacher name="linzj">manjian2006</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9hc3NlbWJsZXIvTWFjcm9Bc3NlbWJs
ZXJBUk0uY3BwIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxl
ckFSTS5jcHAKaW5kZXggOThkYzNlOS4uNWQ4MzQ2ZCAxMDA2NDQKLS0tIGEvU291cmNlL0phdmFT
Y3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5jcHAKKysrIGIvU291cmNlL0ph
dmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5jcHAKQEAgLTUwLDcgKzUw
LDcgQEAgc3RhdGljIGJvb2wgaXNWRlBQcmVzZW50KCkKICAgICAgICAgd2hpbGUgKHJlYWQoZmQs
ICZhdXgsIHNpemVvZihFbGYzMl9hdXh2X3QpKSkgewogICAgICAgICAgICAgaWYgKGF1eC5hX3R5
cGUgPT0gQVRfSFdDQVApIHsKICAgICAgICAgICAgICAgICBjbG9zZShmZCk7Ci0gICAgICAgICAg
ICAgICAgcmV0dXJuIGF1eC5hX3VuLmFfdmFsICYgSFdDQVBfVkZQOworICAgICAgICAgICAgICAg
IHJldHVybiBhdXguYV91bi5hX3ZhbCAmIEhXQ0FQX1ZGUHYzOwogICAgICAgICAgICAgfQogICAg
ICAgICB9CiAgICAgICAgIGNsb3NlKGZkKTsK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>194166</attachid>
            <date>2013-03-20 18:56:36 -0700</date>
            <delta_ts>2013-03-20 19:22:46 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>597</size>
            <attacher name="linzj">manjian2006</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9hc3NlbWJsZXIvTWFjcm9Bc3NlbWJs
ZXJBUk0uY3BwIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxl
ckFSTS5jcHAKaW5kZXggOThkYzNlOS4uNWQ4MzQ2ZCAxMDA2NDQKLS0tIGEvU291cmNlL0phdmFT
Y3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5jcHAKKysrIGIvU291cmNlL0ph
dmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5jcHAKQEAgLTUwLDcgKzUw
LDcgQEAgc3RhdGljIGJvb2wgaXNWRlBQcmVzZW50KCkKICAgICAgICAgd2hpbGUgKHJlYWQoZmQs
ICZhdXgsIHNpemVvZihFbGYzMl9hdXh2X3QpKSkgewogICAgICAgICAgICAgaWYgKGF1eC5hX3R5
cGUgPT0gQVRfSFdDQVApIHsKICAgICAgICAgICAgICAgICBjbG9zZShmZCk7Ci0gICAgICAgICAg
ICAgICAgcmV0dXJuIGF1eC5hX3VuLmFfdmFsICYgSFdDQVBfVkZQOworICAgICAgICAgICAgICAg
IHJldHVybiBhdXguYV91bi5hX3ZhbCAmIEhXQ0FQX1ZGUHYzOwogICAgICAgICAgICAgfQogICAg
ICAgICB9CiAgICAgICAgIGNsb3NlKGZkKTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>194167</attachid>
            <date>2013-03-20 19:22:46 -0700</date>
            <delta_ts>2013-10-31 16:20:59 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.patch</filename>
            <type>text/plain</type>
            <size>597</size>
            <attacher name="linzj">manjian2006</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9hc3NlbWJsZXIvTWFjcm9Bc3NlbWJs
ZXJBUk0uY3BwIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxl
ckFSTS5jcHAKaW5kZXggOThkYzNlOS4uNWQ4MzQ2ZCAxMDA2NDQKLS0tIGEvU291cmNlL0phdmFT
Y3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5jcHAKKysrIGIvU291cmNlL0ph
dmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5jcHAKQEAgLTUwLDcgKzUw
LDcgQEAgc3RhdGljIGJvb2wgaXNWRlBQcmVzZW50KCkKICAgICAgICAgd2hpbGUgKHJlYWQoZmQs
ICZhdXgsIHNpemVvZihFbGYzMl9hdXh2X3QpKSkgewogICAgICAgICAgICAgaWYgKGF1eC5hX3R5
cGUgPT0gQVRfSFdDQVApIHsKICAgICAgICAgICAgICAgICBjbG9zZShmZCk7Ci0gICAgICAgICAg
ICAgICAgcmV0dXJuIGF1eC5hX3VuLmFfdmFsICYgSFdDQVBfVkZQOworICAgICAgICAgICAgICAg
IHJldHVybiBhdXguYV91bi5hX3ZhbCAmIEhXQ0FQX1ZGUHYzOwogICAgICAgICAgICAgfQogICAg
ICAgICB9CiAgICAgICAgIGNsb3NlKGZkKTsK
</data>
<flag name="review"
          id="215899"
          type_id="1"
          status="+"
          setter="msaboff"
    />
    <flag name="commit-queue"
          id="238466"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>