Public bug reported: The X Resource Manager config file syntax allows entries to be continued across newlines. To do that, one preceeds the newline with a backslash.
If such entries are present in the current resource database, the FontForge code that parses the resources fails (or it can fail sometimes, at least). The proximal cause is a call to the routine "copyn()" in the file Unicode/memory.c, such that the "n" parameter is negative. That makes the code think that "galloc()" has failed, and it exits. The code that makes the bogus "copyn()" call is the function "GResourceAddResourceString()" in gdraw/gresource.c. I didn't fully analyze the code that's trying to parse the string, but it's clearly making assumptions about the nature of the resource database lines that aren't true in the case of a continued, multi-line entry. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: fontforge 0.0.20110222-1ubuntu1 ProcVersionSignature: Ubuntu 3.0.0-15.25-generic 3.0.13 Uname: Linux 3.0.0-15-generic x86_64 ApportVersion: 1.23-0ubuntu4 Architecture: amd64 Date: Sat Feb 4 15:42:42 2012 InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426) ProcEnviron: PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/zsh SourcePackage: fontforge UpgradeStatus: Upgraded to oneiric on 2011-11-03 (92 days ago) ** Affects: fontforge (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug oneiric -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926905 Title: FontForge cannot start if an X resource has continued lines To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fontforge/+bug/926905/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs