Check the mast step
By that I mean everything between the top of the compression post and the mast itself. It consists of:Cabin linerBottom fiberglass layer of the cabin roofEnd grain balsa for stiffnessTop fiberglass layer of the cabin roofAdded plywood layer for extra stiffening of the area around the mast stepAluminum step itself - the fixture the mast fits over.If/when water enters this sandwich through the bolt holes that hold the step, or the wire pipe, the wood (balsa and or plywood) will rot. The mast (driven by about 2 tons of stress from your standing rigging) will push the (now flexible) cabin roof down around the compression post. Since the cabin wall is the only support around the compression post, it will take the stress, which could (in an extreme case) lead to the buckling you describe. In fact, this is about the only cause I can imagine for your symptoms.The best way to check this cause is to take down the mast. With no stress from the rigging, or weight from the mast, the cabin roof will probably revert to its original shape (mine did - this is experience talking.)The fix is to carefully remove the top layers of the cabin roof/mast step, scoop out all the rotted wood, and then rebuild the sandwich. This is a moderately skilled fiberglass job. I would recommend that you replace the balsa layer with an aluminum plate, which is stiffer, cheaper, and much faster setting than epoxy. See the archives for a more complete description of this job, which I had done last year.Then, I would replace the bulkhead. Although it does not carry the direct load of the mast, it is a key stiffening member in the structure of the boat. The bottom end of the side shrouds are pulling _up_ with about 3 tons at the toerail. (The other ton is at the bow and stern.) Also, the bulkhead will be important if you get caught in heavy seas, and the hull is straining with twisting and bending forces. (All, as always, IMHO.)DavidLady Lillie