{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2600","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2600/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2600/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2600/events","html_url":"https://github.com/jruby/jruby/issues/2600","id":57771980,"number":2600,"title":"File.stat gives incorrect mode value on PPC platforms","user":{"login":"csebasha","id":10993466,"avatar_url":"https://avatars.githubusercontent.com/u/10993466?v=3","gravatar_id":"","url":"https://api.github.com/users/csebasha","html_url":"https://github.com/csebasha","followers_url":"https://api.github.com/users/csebasha/followers","following_url":"https://api.github.com/users/csebasha/following{/other_user}","gists_url":"https://api.github.com/users/csebasha/gists{/gist_id}","starred_url":"https://api.github.com/users/csebasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csebasha/subscriptions","organizations_url":"https://api.github.com/users/csebasha/orgs","repos_url":"https://api.github.com/users/csebasha/repos","events_url":"https://api.github.com/users/csebasha/events{/privacy}","received_events_url":"https://api.github.com/users/csebasha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-16T07:11:36Z","updated_at":"2015-03-12T21:55:07Z","closed_at":null,"body":"Step1 : Create a file with permission set as  6xx. For example, 611 as below.\r\n\r\n[testuser@linux4 test]$ touch file.txt\r\n\r\n[testuser@linux4 test]$ chmod 611 file.txt\r\n\r\n[testuser@linux4 test]$ ls -ltr\r\n\r\ntotal 13096\r\n-rw-r--r-- 1 testuser testuser 13406573 Feb 16 12:29 jruby.jar\r\n-rw---x--x 1 testuser testuser        0 Feb 16 12:29 file.txt\r\n\r\nStep2 : Get file permission using File.stat as below.\r\n\r\n[testuser@linux4 test]$ java -showversion -jar jruby.jar -e 'p File.stat(\"file.txt\")'\r\n\r\njava version \"1.7.0\"\r\nJava(TM) SE Runtime Environment (build pxp6470sr9-20150209_05(SR9))\r\nIBM J9 VM (build 2.6, JRE 1.7.0 Linux ppc64-64 Compressed References 20150206_234339 (JIT enabled, AOT enabled)\r\nJ9VM - R26_jvm.26_20150206_0405_B234339\r\nJIT  - r11_20150206_1213_foreman\r\nGC   - R26_jvm.26_20150206_0405_B234339_CMPRSS\r\nJ9CL - 20150206_234339)\r\nJCL - 20150112_01 based on Oracle 7u75-b12\r\n\r\nFile::Stat dev=0x, ino=0, mode=0100644, nlink=, uid=-1, gid=, rdev=0x, size=0, blksize=4096, blocks=, atime=2015-02-16 12:29:30 +0530, mtime=2015-02-16 12:29:30 +0530, ctime=2015-02-16 12:29:30 +0530\r\n\r\nNote: Modes are getting displayed correctly on Linux AMD and IA32 platforms.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/78642634","html_url":"https://github.com/jruby/jruby/issues/2600#issuecomment-78642634","issue_url":"https://api.github.com/repos/jruby/jruby/issues/2600","id":78642634,"user":{"login":"headius","id":10135,"avatar_url":"https://avatars.githubusercontent.com/u/10135?v=3","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T21:55:07Z","updated_at":"2015-03-12T21:55:07Z","body":"Can you try a build of JRuby 1.7.20 or JRuby 9k.pre2 (or HEAD of either branch)? We've recently updated our PPC64 support for native features, and it's possible this is working now."}}