{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/982","labels_url":"https://api.github.com/repos/realm/realm-java/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/982/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/982/events","html_url":"https://github.com/realm/realm-java/issues/982","id":63381928,"number":982,"title":"Native crash after upgrading from 0.79.0 to 0.80.0","user":{"login":"zsavely","id":5822417,"avatar_url":"https://avatars.githubusercontent.com/u/5822417?v=3","gravatar_id":"","url":"https://api.github.com/users/zsavely","html_url":"https://github.com/zsavely","followers_url":"https://api.github.com/users/zsavely/followers","following_url":"https://api.github.com/users/zsavely/following{/other_user}","gists_url":"https://api.github.com/users/zsavely/gists{/gist_id}","starred_url":"https://api.github.com/users/zsavely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsavely/subscriptions","organizations_url":"https://api.github.com/users/zsavely/orgs","repos_url":"https://api.github.com/users/zsavely/repos","events_url":"https://api.github.com/users/zsavely/events{/privacy}","received_events_url":"https://api.github.com/users/zsavely/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Investigate","name":"Investigate","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-03-21T09:31:21Z","updated_at":"2015-04-07T13:05:19Z","closed_at":null,"body":"Hi, I am experiencing a native crash after a library upgrade from `0.79.0` to `0.80.0`. (the data from `0.79.0` is present in the phone)\r\n\r\nUnfortunately, I can't say at what line of my code it crashes but I can reproduce it. Everytime I start my app with the new library I get a crash. \r\n\r\nThis is what I get in the logcat.\r\n```\r\n03-21 12:15:31.545: A/libc(28764): Fatal signal 11 (SIGSEGV) at 0x5d4bc000 (code=1), thread 28764 (com.example)\r\n*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\nBuild fingerprint: 'samsung/m0xx/m0:4.1.2/JZO54K/I9300XXEMF6:user/release-keys'\r\npid: 28764, tid: 28764, name: com.example  >>> com.example <<<\r\nsignal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 5d4bc000\r\n03-21 12:15:31.710: W/PowerManagerService(2263): Timer 0x3->0x3|0x0\r\nr0 bedd7474  r1 00000030  r2 0000002c  r3 bedd74a0\r\nr4 bedd7474  r5 0008ed60  r6 bedd7620  r7 bedd7570\r\nr8 5d42d2a0  r9 5d42d2a0  sl 5d6e5d8a  fp 00000002\r\nip 00000078  sp bedd7470  lr 5d63f8df  pc 5d63f8ec  cpsr 00000030\r\nd0  43a000003f800000  d1  3ff000003f800000\r\nd2  3ff0000000000000  d3  0000000100170000\r\nd4  000005c041b80000  d5  000005c041b80000\r\nd6  3ff0000000000000  d7  3f8000003f800000\r\nd8  0000000000000000  d9  0000000000000000\r\nd10 0000000000000000  d11 0000000000000000\r\nd12 0000000000000000  d13 0000000000000000\r\nd14 0000000000000000  d15 0000000000000000\r\nd16 0000000000000000  d17 0000000000000000\r\nd18 0000000000000000  d19 3ff0000000000000\r\nd20 4008000000000000  d21 3fbc71c71c71c71c\r\nd22 3fcc7288e957b53b  d23 3fd24998d6307188\r\nd24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752\r\nd26 0000000000000000  d27 0000000000000000\r\nd28 0000000000000018  d29 0000000000000000\r\nd30 0000000000000000  d31 0000000000000000\r\nscr 60000011\r\nbacktrace:\r\n#00  pc 000168ec  /data/data/com.example/lib/libtightdb-jni.so\r\n#01  pc 000168db  /data/data/com.example/lib/libtightdb-jni.so\r\nstack:\r\nbedd7430  bedd7401  [stack]\r\nbedd7434  bedd7474  [stack]\r\nbedd7438  bedd7478  [stack]\r\nbedd743c  5d6e5d8a  /data/data/com.example/lib/libtightdb-jni.so\r\nbedd7440  bedd7474  [stack]\r\nbedd7444  bedd7620  [stack]\r\nbedd7448  bedd7570  [stack]\r\nbedd744c  5d42d2a0  /data/data/com.example/files/default.realm\r\nbedd7450  5d42d2a0  /data/data/com.example/files/default.realm\r\nbedd7454  5d6e5d8a  /data/data/com.example/lib/libtightdb-jni.so\r\nbedd7458  5d6f316c  /data/data/com.example/lib/libtightdb-jni.so\r\nbedd745c  bedd7474  [stack]\r\nbedd7460  0008ed60  \r\nbedd7464  bedd7620  [stack]\r\nbedd7468  df0027ad  \r\nbedd746c  00000000  \r\n#00  bedd7470  bedd7584  [stack]\r\n........  ........\r\n#01  bedd7470  bedd7584  [stack]\r\nbedd7474  5d6f316c  /data/data/com.example/lib/libtightdb-jni.so\r\nbedd7478  5d6f3100  /data/data/com.example/lib/libtightdb-jni.so\r\nbedd747c  5de7dff8  \r\nbedd7480  5de7dff8  \r\nbedd7484  5de7dff8  \r\nbedd7488  5dc7e014  \r\nbedd748c  5df4837e  \r\nbedd7490  5e07dff7  \r\nbedd7494  5d6f9984  \r\nbedd7498  00000010  \r\nbedd749c  5dc7e014  \r\nbedd74a0  5d6f3180  /data/data/com.example/lib/libtightdb-jni.so\r\nbedd74a4  00000006  \r\nbedd74a8  00000002  \r\nbedd74ac  00001008  \r\nmemory near r0:\r\nbedd7454 5d6e5d8a 5d6f316c bedd7474 0008ed60  .]n]l1o]tt..`...\r\nbedd7464 bedd7620 df0027ad 00000000 bedd7584   v...'.......u..\r\nbedd7474 5d6f316c 5d6f3100 5de7dff8 5de7dff8  l1o].1o]...]...]\r\nbedd7484 5de7dff8 5dc7e014 5df4837e 5e07dff7  ...]...]~..]...^\r\nbedd7494 5d6f9984 00000010 5dc7e014 5d6f3180  ..o].......].1o]\r\nmemory near r3:\r\nbedd7480 5de7dff8 5de7dff8 5dc7e014 5df4837e  ...]...]...]~..]\r\nbedd7490 5e07dff7 5d6f9984 00000010 5dc7e014  ...^..o].......]\r\nbedd74a0 5d6f3180 00000006 00000002 00001008  .1o]............\r\nbedd74b0 00000000 00000000 00000000 00000000  ................\r\nbedd74c0 00000000 00000000 00000000 00000000  ................\r\nmemory near r4:\r\nbedd7454 5d6e5d8a 5d6f316c bedd7474 0008ed60  .]n]l1o]tt..`...\r\nbedd7464 bedd7620 df0027ad 00000000 bedd7584   v...'.......u..\r\nbedd7474 5d6f316c 5d6f3100 5de7dff8 5de7dff8  l1o].1o]...]...]\r\nbedd7484 5de7dff8 5dc7e014 5df4837e 5e07dff7  ...]...]~..]...^\r\nbedd7494 5d6f9984 00000010 5dc7e014 5d6f3180  ..o].......].1o]\r\nmemory near r5:\r\n0008ed40 ffffffff ffffffff ffffffff ffffffff  ................\r\n0008ed50 ffffffff ffffffff ffffffff ffffffff  ................\r\n0008ed60 ffffffff ffffffff ffffffff ffffffff  ................\r\n0008ed70 ffffffff ffffffff ffffffff ffffffff  ................\r\n0008ed80 ffffffff ffffffff ffffffff ffffffff  ................\r\nmemory near r6:\r\nbedd7600 bedd7620 bedd7648 41318444 413f78d8   v..Hv..D.1A.x?A\r\nbedd7610 bedd765c 5d692287 00000002 00000000  \\v...\"i]........\r\nbedd7620 5d42d2a0 ffffffff 5d4ce748 571051b0  ..B]....H.L].Q.W\r\nbedd7630 413f78c8 00000004 41318454 40866eb4  .x?A....T.1A.n.@\r\nbedd7640 00000005 00000000 41318440 00000001  ........@.1A....\r\nmemory near r7:\r\nbedd7550 5d42d29f bedd7590 bedd75f0 0000001c  ..B].u...u......\r\nbedd7560 00000003 582e61d0 c0000000 00000006  .....a.X........\r\nbedd7570 00000000 5d525e34 5d52b1a8 4008b4ab  ....4^R]..R]...@\r\nbedd7580 00000000 5d42d2a0 bedd7590 408d4fed  ......B].u...O.@\r\nbedd7590 00000000 000007ff 00000005 420f2578  ............x%.B\r\nmemory near r8:\r\n5d42d280 36393038 03000000 36393038 03000000  8096....8096....\r\n5d42d290 31323834 03000000 36393038 03000000  4821....8096....\r\n5d42d2a0 00000000 08000000 00000000 08000000  ................\r\n5d42d2b0 00500000 20000001 40000000 030000e5  ..P.... ...@....\r\n5d42d2c0 00480000 20000000 00800000 20000040  ..H.... ....@.. \r\nmemory near r9:\r\n5d42d280 36393038 03000000 36393038 03000000  8096....8096....\r\n5d42d290 31323834 03000000 36393038 03000000  4821....8096....\r\n5d42d2a0 00000000 08000000 00000000 08000000  ................\r\n5d42d2b0 00500000 20000001 40000000 030000e5  ..P.... ...@....\r\n5d42d2c0 00480000 20000000 00800000 20000040  ..H.... ....@.. \r\nmemory near sl:\r\n5d6e5d68 61746144 7461642e 203d2061 72745300  Data.data = .Str\r\n5d6e5d78 44676e69 20617461 68207361 3d207865  ingData as hex =\r\n5d6e5d88 30200020 6e690078 6765625f 3d206e69   . 0x.in_begin =\r\n5d6e5d98 6e690020 646e655f 00203d20 5f74756f   .in_end = .out_\r\n5d6e5da8 72727563 00203d20 5f74756f 20646e65  curr = .out_end \r\nmemory near sp:\r\nbedd7450 5d42d2a0 5d6e5d8a 5d6f316c bedd7474  ..B].]n]l1o]tt..\r\nbedd7460 0008ed60 bedd7620 df0027ad 00000000  `... v...'......\r\nbedd7470 bedd7584 5d6f316c 5d6f3100 5de7dff8  .u..l1o].1o]...]\r\nbedd7480 5de7dff8 5de7dff8 5dc7e014 5df4837e  ...]...]...]~..]\r\nbedd7490 5e07dff7 5d6f9984 00000010 5dc7e014  ...^..o].......]\r\ncode around pc:\r\n5d63f8cc 44794938 f08c6809 f04ff853 f08c0130  8IyD.h..S.O.0...\r\n5d63f8dc 6802f9f7 f8524603 44132c0c b008f8c3  ...h.FR..,.D....\r\n5d63f8ec 1005f819 fc32f08c e7e23501 4479492e  ......2..5...IyD\r\n5d63f8fc fb5ef08c 4620492d f08c4479 4641fb59  ..^.-I FyD..Y.AF\r\n5d63f90c fb56f08c 4479492a fb52f08c 46204929  ..V.*IyD..R.)I F\r\ncode around lr:\r\n5d63f8bc 687344fa 429d4620 4651d218 fb78f08c  .Dsh F.B..QF..x.\r\n5d63f8cc 44794938 f08c6809 f04ff853 f08c0130  8IyD.h..S.O.0...\r\n5d63f8dc 6802f9f7 f8524603 44132c0c b008f8c3  ...h.FR..,.D....\r\n5d63f8ec 1005f819 fc32f08c e7e23501 4479492e  ......2..5...IyD\r\n5d63f8fc fb5ef08c 4620492d f08c4479 4641fb59  ..^.-I FyD..Y.AF\r\nmemory map around fault addr 5d4bc000:\r\n5d4b9000-5d4bc000 \r\n(no map for address)\r\n5d4cb000-5d4dd000 \r\n!@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 28764\r\n```\r\n\r\n* Android 4.1.2\r\n* Samsung Galaxy S3\r\n* Eclipse\r\n* Target SDK 5.0.1"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/90542728","html_url":"https://github.com/realm/realm-java/issues/982#issuecomment-90542728","issue_url":"https://api.github.com/repos/realm/realm-java/issues/982","id":90542728,"user":{"login":"kneth","id":1225363,"avatar_url":"https://avatars.githubusercontent.com/u/1225363?v=3","gravatar_id":"","url":"https://api.github.com/users/kneth","html_url":"https://github.com/kneth","followers_url":"https://api.github.com/users/kneth/followers","following_url":"https://api.github.com/users/kneth/following{/other_user}","gists_url":"https://api.github.com/users/kneth/gists{/gist_id}","starred_url":"https://api.github.com/users/kneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kneth/subscriptions","organizations_url":"https://api.github.com/users/kneth/orgs","repos_url":"https://api.github.com/users/kneth/repos","events_url":"https://api.github.com/users/kneth/events{/privacy}","received_events_url":"https://api.github.com/users/kneth/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T13:05:19Z","updated_at":"2015-04-07T13:05:19Z","body":"It is hard to image - using Eclipse require a more manual procedure for including Realm but it is the same Jar files. If you can, I would be happy if you tried with Android Studio.\r\n\r\nBy the way, can you reproduce the issue using a different device?"}}