Gunpowder is the nitrated form of cellulose, the basic carbon hydrogen unit of life. It is nitrated in strong sulphuric and nitric acids and then washed MUCH to get the acidic residue out. One source of the cellulose is cotton, just like your underwear, well, mine anyway. Thus one old name "gun cotton." "Double base" powders have some nitroglycerin blended in. Glycerin is an oily fat (at room temps) that is nitrated in strong sulphuric and nitric acids THEN WASHED MUCH...
The organic chemical paste is worked with organic solvents. Alcohol (as in booze but there are hundreds. Cholesterol is an alcohol.) Acetone as in nail polish remover. Ether as in starting fluid (which is usually alot more hexane. Ether too explosive.). If you smell these it is normal and o.k.
There was one batch of single base made by Dupont IMR for the WW II get together according to the NRA. Government ordered that the final washings be skipped to get it into use more quickly. Saved a couple weeks. Soliders need ammo. BUT the war ended and some of this batch got into surplus circulation. Lots of acids left in the powder. It "rotted" cans and sacks and anything else it was put in. This is where the story got started. This smell would remind you most of vinegar. BAD. BAD. BAD.
Gun powder is a form of "petro plastic" as we know them today. If it is stored in conditions you could live in, it is probably fine. Leave it out in the weather... like most organic materials, something will re cycle it. If you smell the vinegar or ammonia smells, then it may be going bad. Otherwise, stored right, it should last half of forever. If you do get the vinegar or ammonia smells of "break down" then sprinkle it on plants. Lots of nitrogen and should fertilize them fine for lots of nitrogen fertilizer. Happy new year. luck.