RE: AR-15 ? Bolt won't stay open after last RND
I don't know if you've done this already so please disregard if you have but make sure to completely field strip the weapon and clean it throughly.
After it's completely clean (including gas port) check it for function (feeding, extracting, locking open, etc...). If it functions fine then try different types of ammo. If you've been feeding it a steady diet of dirty ammo this might be your problem.