Description of problem: xfig crashes when attempting to print if PRINTER environment variable is not set. Version-Release number of selected component (if applicable): xfig-3.2.5-18.a.fc10.i386 How reproducible: Always Steps to Reproduce: 1.unset PRINTER environment variable 2.ensure printer resource is not set 3.run xfig 4.create a simple drawing 5.select File->Print Actual results: SIGSEGV Expected results: A printer panel. Additional info: A backtrace shows that strchr is called with a null pointer #0 0xb7b30d03 in strchr () from /lib/libc.so.6 #1 0x080eedc8 in create_print_panel (w=0xa0a7d68) at w_print.c:961 This is because getenv("PRINTER") returned null. A fix would be (line 961) if (printer_val && strchr(printer_val,'\\')) { in place of if (strchr(printer_val,'\\')) {
xfig-3.2.5-19.a.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/xfig-3.2.5-19.a.fc10
Thanks for reporting and for the fix! I've accredited you in the changelog :) An update its on its way to update-testing, the update system will post a comment here when its available there.
xfig-3.2.5-19.a.fc10 has been pushed to the Fedora 10 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 xfig'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-3440
xfig-3.2.5-19.a.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.