ceph / python-crush

GNU General Public License v3.0
20 stars 11 forks source link

Segmentation fault #1

Open AresChen1 opened 7 years ago

AresChen1 commented 7 years ago

I have a ceph cluster. Use "ceph osd crush dump > map.json" to get the crushmap about my ceph cluster. And then, run "crush analyze --rule replicated --crushmap map.json", it occurs a segmentation fault. The log display in dmesg is "[12471.824472] crush[27369]: segfault at ffffffffffffffff ip 00000000004539b9 sp 00007ffe8a036370 error 5 in python2.7[400000+2bb000]".

Do you have some comments about this? If you have, i will appreciate you very much. The attached file is the crushmap file about the ceph cluster. mao.zip

zmedico commented 6 years ago

I had segmentation faults when trying to convert a binary crushmap. I have a branch that works for me after I merged changes from https://github.com/ceph/ceph. I used this command to generate a diff of changes relative to python-crush-1.0.35:

git diff 6a21da59837ea3b80c1ac2820b03b49e68a1df07^ master src/crush

This is my branch: https://github.com/ceph/python-crush/compare/master...zmedico:merge-upstream-6a21da59837-f3bc838894aa

I haven't submitted a PR yet because it's currently one large patch and I'd prefer to split it into a series of cherry-pick commits.