I found out that the problem is with the output to console.
If you turn off output with -quiet or -nv it does not crash.
Also exporting LC_ALL=C will solve the problem.
Anyway i was unable to track with libc crashes, also using strace.
I tried to reinstall locale or regenerate them, whatever i could do but nothing changed.
So the problem could me more about the terminal and the locale rather then wget.
I found out that the problem is with the output to console.
If you turn off output with -quiet or -nv it does not crash.
Also exporting LC_ALL=C will solve the problem.
Anyway i was unable to track with libc crashes, also using strace.
I tried to reinstall locale or regenerate them, whatever i could do but nothing changed.
So the problem could me more about the terminal and the locale rather then wget.