gcc wrongly optimizes NULL check in strdup.
|Reported by:||pulkomandy||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
This was explored in length in this ML thread: http://www.freelists.org/post/haiku-development/Aw-Re-hrev45320-Yet-another-nonobvious-effect-of-ftreevrp-optimization
Well, for some reason the problem happens again here. Web+ will crash when trying to play a youtube video, for example.
I think this started happening somewhere between hrev47163 and hrev47184, but it could be a bit earlier, as I think the ptrdiff_t change in 47184 led to a rebuild of libroot, including the strdup function. I'm building from Haiku, using gcc_x86-4.8.2_2014_03_20-1-x86_gcc2.hpkg, in case this makes a difference. Didn't test if nightlies are affected.