[ https://issues.apache.org/jira/browse/ZOOKEEPER-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710606#action_12710606 ]
Mahadev konar commented on ZOOKEEPER-402: ----------------------------------------- ok this took me a while to figure out, since its a weird corner case. The c library as it is supports NULL. So you can do a create of a node with NULL and read it back. This will work. But the problem arises when you do a create with the java client with data as NULL and read it from the c client. The other way round works fine. The problem being that the java code serializes the NULL buffer as -1 and the c code does it with serializing as 0 and does not handle -1 on deserialization or serialization. We should fix the c recordio to handle this. Ill upload a patch soon. > zookeeper c library segfaults on data for a node in zookeeper being null. > ------------------------------------------------------------------------- > > Key: ZOOKEEPER-402 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-402 > Project: Zookeeper > Issue Type: Bug > Affects Versions: 3.1.0, 3.1.1 > Reporter: Mahadev konar > Assignee: Mahadev konar > Priority: Critical > Fix For: 3.2.0 > > > the zookeeper c client library seg faults on data being null for a zoo node. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.