Only the parts of the agreement that violate the local laws can be ignored.
Different people have different ideas of what is reasonable and what is bullshit. Different jurisdictions as well, which is why some clauses in EULAs written by American lawyers are invalid in the EU.
> Only the parts of the agreement that violate the local laws can be ignored.
That is the whole point: to know for sure which ones you can ignore, you need to test them in court.
After all, you're typically agreeing to a package, not individually to each term.
Standard form contracts (take it or leave it rules that are distributed to everyone) are exempt from this though (here the void part falls back to default rules).
Likewise if I take some GPL software, I can do whatever I want with it to run it, including copying it into memory. I can't give a copy to anyone else (including derivative works such as a binary) without agreeing to the GPL.
That's true, but unlike the DVD case it's so only because the GPL license explicitly grants you this right. If it didn't, you wouldn't be able to run it at all.
GPL is actually kind of a special case when it comes to licenses since it mostly cares about redistribution in order to implement its copyleft mechanism, but generally licenses are tools used to give users permission to use the software under specified conditions. Without a license (written or verbal), there's no permission to do anything whatsoever.
You may be confusing it with using a self-modified copy of code under GPL. Since GPL only cares about sharing the modified source with actual users, you won't have to share your modifications with anyone as long as you remain the only user of that modified work.
What happens if you do?
https://europa.eu/youreurope/citizens/consumers/unfair-treat...
For example, in 2012 the Court of Justice of the European Union declared that reselling digital software is legal no matter what any EULA attached to the software might say.
https://www.engadget.com/2012-07-03-eu-court-rules-its-legal...