2 messages are printed before the seg fault:
$ xsmc
Unable to load font
Unable to load font
Segmentation fault (core dumped)

The xsmc application expects to find 2 fonts which match the patterns:
"*-helvetica-medium-r-normal--12*"
"*helvetica*6*"

The helvetica fonts are not present by default in Ubuntu 12.10.

The attached patch tries additional font patterns, if helvetica is not found:
$ ./xsmc
Unable to load font: *-helvetica-medium-r-normal--12*
Using font: *-fixed-medium-*--12*
Unable to load font: *-helvetica-*--6*
Using font: *-fixed-medium-*--6*

The messages show the font name patterns, the application will return 1
if no fonts are found, Makefile has been modifed to use CFLAGS.


** Patch added: "try fixed fonts if helvetica not found"
   
https://bugs.launchpad.net/ubuntu/+source/xsmc-calc/+bug/837080/+attachment/3490084/+files/xsmc-20130119.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837080

Title:
  xsmc crashed with SIGSEGV in __libc_start_main()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xsmc-calc/+bug/837080/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to