{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1176","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1176/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1176/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1176/events","html_url":"https://github.com/couchbase/couchbase-lite-java-core/issues/1176","id":144912676,"number":1176,"title":"ForestDB CBL 1.2  crash in endTransaction()","user":{"login":"NitzDKoder","id":1461456,"avatar_url":"https://avatars.githubusercontent.com/u/1461456?v=3","gravatar_id":"","url":"https://api.github.com/users/NitzDKoder","html_url":"https://github.com/NitzDKoder","followers_url":"https://api.github.com/users/NitzDKoder/followers","following_url":"https://api.github.com/users/NitzDKoder/following{/other_user}","gists_url":"https://api.github.com/users/NitzDKoder/gists{/gist_id}","starred_url":"https://api.github.com/users/NitzDKoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NitzDKoder/subscriptions","organizations_url":"https://api.github.com/users/NitzDKoder/orgs","repos_url":"https://api.github.com/users/NitzDKoder/repos","events_url":"https://api.github.com/users/NitzDKoder/events{/privacy}","received_events_url":"https://api.github.com/users/NitzDKoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/forestdb","name":"forestdb","color":"d4c5f9"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/needsmoreinfo","name":"needsmoreinfo","color":"5319e7"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/ready","name":"ready","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/S2:%20critical","name":"S2: critical","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/8","html_url":"https://github.com/couchbase/couchbase-lite-java-core/milestones/1.3","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/8/labels","id":1314153,"number":8,"title":"1.3","description":"","creator":{"login":"zgramana","id":759830,"avatar_url":"https://avatars.githubusercontent.com/u/759830?v=3","gravatar_id":"","url":"https://api.github.com/users/zgramana","html_url":"https://github.com/zgramana","followers_url":"https://api.github.com/users/zgramana/followers","following_url":"https://api.github.com/users/zgramana/following{/other_user}","gists_url":"https://api.github.com/users/zgramana/gists{/gist_id}","starred_url":"https://api.github.com/users/zgramana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgramana/subscriptions","organizations_url":"https://api.github.com/users/zgramana/orgs","repos_url":"https://api.github.com/users/zgramana/repos","events_url":"https://api.github.com/users/zgramana/events{/privacy}","received_events_url":"https://api.github.com/users/zgramana/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":18,"state":"open","created_at":"2015-09-18T22:31:44Z","updated_at":"2016-04-06T23:37:37Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-03-31T14:08:39Z","updated_at":"2016-04-07T15:54:14Z","closed_at":null,"body":"Forest DB hotfix used:\r\nhttp://files.couchbase.com/maven2/com/couchbase/lite/couchbase-lite-android/0.0.0-611/\r\n\r\n**CBL Logs:**\r\n```\r\n[03/31 05:57:27.807] [405] Sync: batcher.waitForPendingFutures()\r\n[03/31 05:57:27.808] [405] Batcher: com.couchbase.lite.support.Batcher@9484d4d: waitForPendingFutures is called ...\r\n[03/31 05:57:27.809] [405] Batcher: com.couchbase.lite.support.Batcher@9484d4d: waitForPendingFutures done\r\n[03/31 05:57:27.810] [405] Sync: waitPendingFuturesCompleted()\r\n[03/31 05:57:27.811] [405] Sync: calling future.get() on com.couchbase.lite.support.RemoteRequestRetry@5c89544\r\n[03/31 05:57:27.811] [405] Sync: done calling future.get() on com.couchbase.lite.support.RemoteRequestRetry@5c89544\r\n[03/31 05:57:28.062] [405] Sync: downloadsToInsert.waitForPendingFutures()\r\n[03/31 05:57:28.063] [405] Batcher: com.couchbase.lite.support.Batcher@5be1d13: waitForPendingFutures is called ...\r\n[03/31 05:57:28.063] [405] Batcher: com.couchbase.lite.support.Batcher@5be1d13: waitForPendingFutures done\r\n[03/31 05:57:28.064] [405] Sync: [fireTrigger()] => WAITING_FOR_CHANGES\r\n[03/31 05:57:28.064] [405] Sync: [waitForPendingFutures()] END - thread id: 1935\r\n[03/31 05:57:28.064] [2] Sync: firing trigger: WAITING_FOR_CHANGES\r\n[03/31 05:57:28.065] [2] Sync: [onEntry()] RUNNING => IDLE\r\n[03/31 05:57:28.066] [2] Sync: State transition: RUNNING -> IDLE (via WAITING_FOR_CHANGES).  this: com.couchbase.lite.replicator.PullerInternal@23a8a69\r\n```\r\n\r\nSync was idle and waiting for changes.\r\n\r\n**Stackrace:**\r\nAndroid Version: Android/6.0\r\nOEM:SAMSUNG-SM-G920A S5\r\n\r\n```\r\n03-31 18:00:26.064 F/libc    (16217): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 16348 (CBLManagerWorkE)\r\n03-31 18:00:26.154 F/DEBUG   ( 3010): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n03-31 18:00:26.154 F/DEBUG   ( 3010): Build fingerprint: 'samsung/zeroflteuc/zeroflteatt:6.0/MRA58K/G920AUCU3COJA:user/release-keys'\r\n03-31 18:00:26.154 F/DEBUG   ( 3010): Revision: '11'\r\n03-31 18:00:26.154 F/DEBUG   ( 3010): ABI: 'arm'\r\n03-31 18:00:26.154 F/DEBUG   ( 3010): pid: 16217, tid: 16348, name: CBLManagerWorkE  >>> com.ptt.bravo                                                                           <<<\r\n03-31 18:00:26.154 F/DEBUG   ( 3010): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8\r\n03-31 18:00:26.254 F/DEBUG   ( 3010):     r0 00000000  r1 00000000  r2 00000000  r3 00000000\r\n03-31 18:00:26.254 F/DEBUG   ( 3010):     r4 ed251b57  r5 d9fecef8  r6 e91c5a10  r7 12f775e0\r\n03-31 18:00:26.254 F/DEBUG   ( 3010):     r8 12f78520  r9 d47fb400  sl 00000000  fp 12f775e0\r\n03-31 18:00:26.254 F/DEBUG   ( 3010):     ip d9fef00c  sp d87812a4  lr d9ef5385  pc d9eee938  cpsr 600e0030\r\n03-31 18:00:26.264 F/DEBUG   ( 3010): \r\n03-31 18:00:26.264 F/DEBUG   ( 3010): backtrace:\r\n03-31 18:00:26.264 F/DEBUG   ( 3010):     #00 pc 00103938  /data/app/com.ptt.bravo-1/lib/arm/libCouchbaseLiteJavaForestDB.so (cbforest::Transaction::abort()+7)\r\n03-31 18:00:26.264 F/DEBUG   ( 3010):     #01 pc 0010a381  /data/app/com.xyz.company-1/lib/arm/libCouchbaseLiteJavaForestDB.so (c4Database::endTransaction(bool)+144)\r\n03-31 18:00:26.264 F/DEBUG   ( 3010):     #02 pc 0010b009  /data/app/com.xyz.company-1/lib/arm/libCouchbaseLiteJavaForestDB.so (c4db_endTransaction+52)\r\n03-31 18:00:26.264 F/DEBUG   ( 3010):     #03 pc 001126eb  /data/app/com.xyz.company-1/lib/arm/libCouchbaseLiteJavaForestDB.so (Java_com_couchbase_cbforest_Database_endTransaction+62)\r\n03-31 18:00:26.264 F/DEBUG   ( 3010):     #04 pc 00e39833  /data/app/com.xyz.company-1/oat/arm/base.odex (offset 0xd81000)\r\n```\r\n\r\nThanks\r\nNithin"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments/206967059","html_url":"https://github.com/couchbase/couchbase-lite-java-core/issues/1176#issuecomment-206967059","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1176","id":206967059,"user":{"login":"snej","id":43241,"avatar_url":"https://avatars.githubusercontent.com/u/43241?v=3","gravatar_id":"","url":"https://api.github.com/users/snej","html_url":"https://github.com/snej","followers_url":"https://api.github.com/users/snej/followers","following_url":"https://api.github.com/users/snej/following{/other_user}","gists_url":"https://api.github.com/users/snej/gists{/gist_id}","starred_url":"https://api.github.com/users/snej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snej/subscriptions","organizations_url":"https://api.github.com/users/snej/orgs","repos_url":"https://api.github.com/users/snej/repos","events_url":"https://api.github.com/users/snej/events{/privacy}","received_events_url":"https://api.github.com/users/snej/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T15:54:14Z","updated_at":"2016-04-07T15:54:14Z","body":"I agree, it looks like `_transaction` was NULL. `Transaction::abort` references `_state`, which is at offset 8, and the crashing address is 0x0008.\r\n\r\nI've reviewed the begin/endTransaction code, and I can't find any way that `_transaction` could be NULL at this point. Very mysterious…"}}