------- Comment #5 from thomas at archlinux dot org 2010-05-04 23:49 ------- I am still not able to produce a short test case, but maybe this will help: http://git.busybox.net/busybox/tree/editors/sed.c?h=1_16_stable&id=1_16_1#n738
In the function add_input_file(), the 'file' argument is not a NULL pointer, but at the end of the function, G.input_file_list[G.input_file_count-1]==NULL (and !=file in particular), which ultimately leads to the segfault. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987