Skip to contentSkip to conversation

urcu hang in cds_lfht_add

DISCUSSION Florian Lohoff 1 participant 1 message Jan 28, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · Florian Lohoff

Hi,

i am using urcu hashes for indexing network packets. I am currently reading a pcap file for replaying so i am single threaded right now. I am indexing the same packet in multiple different hashes.

I have now added call_rcu for freeing structures and now i experience hangs.

Quoted 7 lines

As soon as i remove the call_rcu the code runs through. with the call_rcu it hangs after a couple thousand packets in an cds_lfht_add.

As i find RCU still a little mind twisting i fail to find a path for debugging.

Ah - this is urcu 0.7.7 on Debian/Wheezy amd64

Using 0.8.1 with DEBUG_RCU, adding a second thread calling synchronize_rcu regularly gave an assert sometimes which showed some broken state.

Disabling the last free() caused the process to finish so i found a small bug causing a removal on a hash to fail.

I freed the memory and there was your hash corruption.

Sorry for the noise ...

Flo

Signature · 1 line
Florian Lohoff                                                 [email protected]

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev