Among other things, rebuild or replace the toilet
There's a cup shaped rubber valve in the discharge fitting of your toilet that has a slit in it which is called a "joker" valve. Until it's worn out, it only allows water etc to pass through it in one direction--out of the bowl...but over time the slit doesn't close completely any more, and begins to leak. Like every other rubber and neprene part in the toilet, the joke valve should be replaced every year or so. However, replacing ONLY the joke valve is a bit like changing the oil in your engine without changing the filter...because all the other rubber and neoprene parts in a toilet are seeing just as much wear. Every head mfr offers "rebuild" or "repair" kits for each of their models, and all the parts in 'em should be used. But--when it comes to the low-end toilets like the Jabsco, the Groco HF, the Wilcox Headmate and one or two others, the kits can cost half as much as replacing the whole toilet...which is why I refer to any toilet you can buy at discount for under $150 as a "disposable" model. It makes better economic sense...requires less work...and you'll consistently have a toilet that's more reliable if you just replace the d'd thing every 2-3 years instead of spending the price of a new toilet on a couple of rebuild kits in the same time frame. So if your toilet is more than a few years old, replace it.However...something is pushing waste back into the bowl. It may not be coming up the discharge...sea water trapped in the intake can take on a life of its own too. So there are a couple of things to check: if there isn't a vented loop between the toilet and the tank, install one. Heeling can send the contents of even a half-full tank back toward the toilet. If you have a y-valve in the head discharge line that allows you to go overboard at sea...or one in the holding tank pumpout line that, along with a macerator, lets you dump the tank at sea, NEVER leave ANY of them in the overboard position and ALWAYS keep the seacocks--both intake and discharge--closed except when the head is actually in use. And, there MUST be a vented loop between a macerator and a seacock. What's coming back, may not be coming from the tank. Urine crystals can build up in the head discharge hose over time, restricting flow and trapping "stuff" in any low spots in the toilet. When you disconnect that hose to either replace or rebuild your toilet, if that's your problem it will be obvious.