jaydoane opened a new issue #1837: Test suite fails with OTP 21.2 URL: https://github.com/apache/couchdb/issues/1837 <!--- Provide a general summary of the issue in the Title above --> When we upgrade .travis.yml `otp_release` from `21.1` to `21.2`, we get a test failure. On closer examination, it looks like a nif is crashing the BEAM. ## Expected Behavior <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> `make javascript` should pass ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> `make javascript` fails with: ``` test/javascript/tests/config.js Error: FAIL isRunning Stacktrace: waitForSuccess((function () {CouchDB.last_req = CouchDB.request("GET", "/");return typeof CouchDB.last_req == "object";}),"isRunning")@test/javascript/test_setup.js:64 @test/javascript/cli_runner.js:46 Failed to execute script. fail ``` However, when run on it's own `make javascript suites=config` passes, as does `make javascript suites=compact`. However, looking at the couch logs for the latter, there is this suspicious entry: ``` nifs/common/prim_file_nif.c:388:[notice] 2018-12-28T07:41:03.834726Z [email protected] <0.3868.0> aaa8c4d9b0 127.0.0.1:15984 127.0.0.1 undefined DELETE /test_suite_db_lvxwriai/?sync=true 200 ok 10 owner_death_callback(): Internal error: Failed to defer prim_file close. ``` My hypothesis is that during the full suite run, the nif crashes the BEAM at the end of compact.js after it passes, but then config.js fails to run because the db process crashed from the previous test. ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> <!--- or ideas how to implement the addition or change --> ## Steps to Reproduce (for bugs) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Install OTP 21.2 (currently `brew install erlang` will do that on a mac) 2. `make javascript` ## Context <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> Discovered when attempting to upgrade in .travis.yml, but reproducible locally on a mac. ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used: latest development master * Browser Name and version: N/A * Operating System and version (desktop or mobile): macos 10.13.6 * Link to your project:
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
