A software bug is basically an error in the programming of an application that causes it to malfunction and do something it isn't supposed to do (such as shut down) or not do something it is supposed to do (such as open a new window when you click something.)