From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20030131 Description of problem: The following command will cause sed to segfault: echo 'scripts/Makefile.lib 1.20: 238 lines' | sed -re 's/^(.*)+ [[:digit:]]+\.[[:digit:]]+: [[:digit:]]+ lines/\1/' If you remove the first + sign (after the close parenthesis), it works fine. Version-Release number of selected component (if applicable): sed-4.0.5-1 How reproducible: Always Steps to Reproduce: 1. Run the above command 2. 3. Actual Results: Segmentation fault Additional info:
Works for me with sed-4.0.7-{2,3} and glibc-2.3.2-6{3,6}. Though with the + there I'm not sure if it gives you exactly what you wanted, particularly that \1 is empty string.