{"action":"created","issue":{"url":"https://api.github.com/repos/px3/bulldog/issues/49","labels_url":"https://api.github.com/repos/px3/bulldog/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/px3/bulldog/issues/49/comments","events_url":"https://api.github.com/repos/px3/bulldog/issues/49/events","html_url":"https://github.com/px3/bulldog/issues/49","id":102662124,"number":49,"title":"JVM crash on RPi B+","user":{"login":"matoushybl","id":1637156,"avatar_url":"https://avatars.githubusercontent.com/u/1637156?v=3","gravatar_id":"","url":"https://api.github.com/users/matoushybl","html_url":"https://github.com/matoushybl","followers_url":"https://api.github.com/users/matoushybl/followers","following_url":"https://api.github.com/users/matoushybl/following{/other_user}","gists_url":"https://api.github.com/users/matoushybl/gists{/gist_id}","starred_url":"https://api.github.com/users/matoushybl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matoushybl/subscriptions","organizations_url":"https://api.github.com/users/matoushybl/orgs","repos_url":"https://api.github.com/users/matoushybl/repos","events_url":"https://api.github.com/users/matoushybl/events{/privacy}","received_events_url":"https://api.github.com/users/matoushybl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-23T21:22:52Z","updated_at":"2015-08-24T11:09:06Z","closed_at":null,"body":"Hi, I've been trying to use this library on my RaspberryPi B+ with Gradle and Maven, but in both cases the JVM crashed because of SIGSEGV. I have also tried using java 8 and 7 but with no success either. Can you please tell me which logs should I provide to help fixing this or is the problem somewhere in my configuration?\r\n\r\nHere is the crash:\r\n```#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0xa8a9d228, pid=2676, tid=2830103664\r\n#\r\n# JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build 1.7.0_40-b43)\r\n# Java VM: Java HotSpot(TM) Client VM (24.0-b56 mixed mode linux-arm )\r\n# Problematic frame:\r\n# C  [bulldog-linux-native8866466634207559465.so+0x6228]  Java_io_silverspoon_bulldog_linux_jni_NativeMmap_getIntValueAt+0x0\r\n#\r\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n#\r\n# An error report file with more information is saved as:\r\n# /home/pi/javapi/hs_err_pid2676.log\r\n#\r\n# If you would like to submit a bug report, please visit:\r\n#   http://bugreport.sun.com/bugreport/crash.jsp\r\n#\r\nAborted\r\n```\r\npom.xml\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\r\n         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n    <modelVersion>4.0.0</modelVersion>\r\n\r\n    <groupId>com.matoushybl</groupId>\r\n    <artifactId>javapi</artifactId>\r\n    <version>1.0-SNAPSHOT</version>\r\n\r\n    <dependencies>\r\n        <dependency>\r\n            <groupId>io.silverspoon</groupId>\r\n            <artifactId>bulldog-board-raspberrypi</artifactId>\r\n            <version>0.1.2</version>\r\n        </dependency>\r\n    </dependencies>\r\n\r\n    <build>\r\n        <plugins>\r\n            <plugin>\r\n                <groupId>org.codehaus.mojo</groupId>\r\n                <artifactId>exec-maven-plugin</artifactId>\r\n                <version>1.3.2</version>\r\n                <configuration>\r\n                    <mainClass>com.matoushybl.javapi.Main</mainClass>\r\n                </configuration>\r\n            </plugin>\r\n        </plugins>\r\n    </build>\r\n</project>\r\n```\r\n\r\nMain.java\r\n```\r\npackage com.matoushybl.javapi;\r\n\r\nimport io.silverspoon.bulldog.core.gpio.DigitalOutput;\r\nimport io.silverspoon.bulldog.core.platform.Board;\r\nimport io.silverspoon.bulldog.core.platform.Platform;\r\nimport io.silverspoon.bulldog.raspberrypi.RaspiNames;\r\n\r\n/**\r\n * @author <a href=\"mailto:hyblmatous@gmail.com\">Matous Hybl</a>\r\n */\r\npublic class Main {\r\n\r\n    public static void main(String[] args) {\r\n        Board board = Platform.createBoard();\r\n\r\n        DigitalOutput out = board.getPin(RaspiNames.P1_11).as(DigitalOutput.class);\r\n\r\n        out.blinkTimes(2000, 500);\r\n    }\r\n}\r\n```\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/px3/bulldog/issues/comments/134154749","html_url":"https://github.com/px3/bulldog/issues/49#issuecomment-134154749","issue_url":"https://api.github.com/repos/px3/bulldog/issues/49","id":134154749,"user":{"login":"matoushybl","id":1637156,"avatar_url":"https://avatars.githubusercontent.com/u/1637156?v=3","gravatar_id":"","url":"https://api.github.com/users/matoushybl","html_url":"https://github.com/matoushybl","followers_url":"https://api.github.com/users/matoushybl/followers","following_url":"https://api.github.com/users/matoushybl/following{/other_user}","gists_url":"https://api.github.com/users/matoushybl/gists{/gist_id}","starred_url":"https://api.github.com/users/matoushybl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matoushybl/subscriptions","organizations_url":"https://api.github.com/users/matoushybl/orgs","repos_url":"https://api.github.com/users/matoushybl/repos","events_url":"https://api.github.com/users/matoushybl/events{/privacy}","received_events_url":"https://api.github.com/users/matoushybl/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T11:09:06Z","updated_at":"2015-08-24T11:09:06Z","body":"The root permissions seem to solve it, but how come the lack of permission can make JVM crash?"}}