On 17 May 2011, at 18:21, Paul Davis wrote: > Can you reproduce it? Which test was running when it failed? If you > can reproduce it, can you attach gdb to your couchdb process to get a > stack trace of when it segfaults?
Yep, it's the design_docs tests. Segfaults every time. From the log: Apache CouchDB 1.1.0 (LogLevel=info) is starting. Apache CouchDB has started. Time to relax. [info] [<0.1248.0>] Apache CouchDB has started on http://127.0.0.1:5984/ [info] [<0.1331.0>] 127.0.0.1 - - 'GET' / 200 [info] [<0.1331.0>] 127.0.0.1 - - 'GET' / 200 [info] [<0.1367.0>] OS Process #Port<0.11151> Log :: function raised exception (new ReferenceError("makebigstring is not defined", "", 2)) with doc._id 1 [info] [<0.1358.0>] checkpointing view update at seq 4 for test_suite_db _design/test [info] [<0.1358.0>] checkpointing view update at seq 289 for test_suite_db _design/test [info] [<0.1358.0>] checkpointing view update at seq 716 for test_suite_db _design/test [info] [<0.1358.0>] checkpointing view update at seq 1003 for test_suite_db _design/test [info] [<0.1331.0>] 127.0.0.1 - - 'GET' /test_suite_db/_design/test/_view/commonjs?limit=1 200 [info] [<0.1331.0>] 127.0.0.1 - - 'GET' /test_suite_db/_all_docs?startkey=%22_design%22&endkey=%22_design0%22 200 [info] [<0.1331.0>] 127.0.0.1 - - 'GET' /test_suite_db/_design/test/_view/all_docs_twice 200 [info] [<0.1331.0>] 127.0.0.1 - - 'GET' /test_suite_db/_design/test/_view/no_docs 200 [info] [<0.1331.0>] 127.0.0.1 - - 'GET' /test_suite_db/_design/test/_view/single_doc 200 [info] [<0.1331.0>] 127.0.0.1 - - 'POST' /test_suite_db/_ensure_full_commit 201 [info] [<0.1331.0>] 127.0.0.1 - - 'POST' /_restart 200 [info] [<0.1314.0>] Stopping all ongoing replications because the replicator database was deleted or changed Apache CouchDB 1.1.0 (LogLevel=info) is starting. Segmentation fault My threats to debug it with GDB cause the problem to go away. Damn heisenbugs. I'll keep trying.
