Created attachment 474931 [details] gdb backtrace Description of problem: ruby got segfault on GC when it happens on allocating hpricot_struct. Version-Release number of selected component (if applicable): rubygem-hpricot-0.8.3-1.fc14.x86_64 How reproducible: sometimes, depends on the timing. Steps to Reproduce: 1. 2. 3. Actual results: ruby segfaults. Expected results: no segfaults. Additional info: See attached backtrace log from gdb, particularly: #5 hstruct_mark (ptr=0x477f450) at hpricot_scan.rl:672 and #9 0x00007fdbd31a8e91 in alloc_hpricot_struct8 (klass=<value optimized out>) at hpricot_scan.rl:692
Created attachment 474932 [details] proposed patch
Seems reasonable, however anyway would you attach the reproducer (fontconfig-template-audit.rb)?
try to access http://git.fedorahosted.org/git/?p=fontpackages.git and get rid of "[]" in _get_element from lib/fontpackages/fontconfig.rb. I can 100% reproduce this issue with the above claim.
The upstream tracker (opened by other people) https://github.com/hpricot/hpricot/issues/#issue/32
rubygem-hpricot-0.8.3-2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/rubygem-hpricot-0.8.3-2.fc14
rubygem-hpricot-0.8.3-2.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/rubygem-hpricot-0.8.3-2.fc13
Akira, thanks for the patch - I'm currently testing it out so we can commit it back to Hpricot and issue a new release.
rubygem-hpricot-0.8.3-2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update rubygem-hpricot'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/rubygem-hpricot-0.8.3-2.fc14
rubygem-hpricot-0.8.3-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
rubygem-hpricot-0.8.3-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.