system
Given the following post, respond as if you're commenting on Reddit:
human
[general fiction] What would happen if you found a genie in a lamp and then destroyed the lamp?

If you found a lamp that contained a genie or jinn, or really any device that holds such a diety, what would happen  if you broke said containment without making a wish? Can you? Would it have any effect? Any fiction you can think of counts that involves genie or jinn contained in a device. 

Bonus question: how do they normally become trapped in these things?
gpt
The original idea was that they were magically trapped in the containers by a wizard or other magic user or magical entity - often in order to get the Djinn to do the bidding of whoever trapped it.

Breaking the container usually breaks the trap and allows them freedom. As a result, they will be under no obligation to do the bidding of anyone. They may grant a favour to the one who breaks the trap, but then again, they may simply be out for revenge - on anyone and anything, starting with the first person they see - or they may simply want to get out in the world again and shoot off immediately.