It depends a little exactly what you put into it, but a dry rub made from ground spices should last up to a year when stored correctly. Spices don't tend to go bad in the traditional sense but do lose their flavor over time. However, if you do see any signs of mold or an unpleasant smell, it's a sign that something in the mix has spoiled and needs to be thrown out.
Pure vanilla extract is the oft-celebrated, hard-working hero of many recipes. It adds both sweetness and complexity and balances key flavors in other ingredients. While most have a bottle of vanilla extract in their cupboard, you may not know that vanilla extract will decline in both flavor and quality over time, especially without proper storage. How long your vanilla extract lasts depends on the type of vanilla and how it's stored.
Sliminess on produce is a classic sign of spoilage bacteria. These bacteria break down the plant's structure, often feeding on excess moisture that builds up inside packaging or after washing. According to the USDA, spoilage bacteria aren't generally harmful to ingest in small amounts, but they make food look, smell, and taste strange. In other words, the slimy texture isn't necessarily unsafe, but it means your produce is well past its prime.