Comment 3 for bug 673568

Revision history for this message
Roman Yepishev (rye) wrote :

The attempt to run test-couchdb-glib ends up with the following on Maverick:

Connecting to Couchdb at http://ErOGVLVdJw:SianblfwnC@127.0.0.1:37841
/testcouchdbglib/TestArrayField: OK
/testcouchdbglib/TestStructField: OK
/testcouchdbglib/ListDatabases: Segmentation fault

due to code in COUCHDB_IS_DOCUMENT macro accessing some nonexisting location.

The code also creates invalid json during json_generator_to_data serialization in case CouchdbDocument was previously parsed by couchdb-glib. An attempt to serialize "indent" member is performed, which raises json-CRITICAL node != null assertion and the testcase aborts. I suppose something around the attempt to serialize members that are not in the document at all may have something to do with that.