Bug 8405 - UIM causes segfault if we unset HOME
Summary: UIM causes segfault if we unset HOME
Status: RESOLVED FIXED
Alias: None
Product: UIM
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high critical
Assignee: uim-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 01:42 UTC by UTUMI Hirosi
Modified: 2006-09-23 11:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description UTUMI Hirosi 2006-09-23 01:42:03 UTC
UIM causes segfault if we unset HOME.
http://qa.mandriva.com/show_bug.cgi?id=24472#c12

How to reproduce:
$ LC_ALL=C; unset HOME; GTK_IM_MODULE=uim leafpad
//
ERROR: not a symbol or string

*backtrace*
>>(string-append (getenv "HOME") "/.uim.d/plugin")
>>(list (getenv "LIBUIM_PLUGIN_LIB_DIR") (string-append (getenv "HOME")
"/.uim.d/plugin") (string-append (sys-pkglibdir) "/plugin"))
>>(append (list (getenv "LIBUIM_PLUGIN_LIB_DIR") (string-append (getenv "HOME")
"/.uim.d/plugin") (string-append (sys-pkglibdir) "/plugin")) (if (getenv
"LD_LIBRARY_PATH") (string-split (getenv "LD_LIBRARY_PATH") ":") ()))
>>(if (setugid?) (list (string-append (sys-pkglibdir) "/plugin")) (filter
string? (append (list (getenv "LIBUIM_PLUGIN_LIB_DIR") (string-append (getenv
"HOME") "/.uim.d/plugin") (string-append (sys-pkglibdir) "/plugin")) (if (getenv
"LD_LIBRARY_PATH") (string-split (getenv "LD_LIBRARY_PATH") ":") ()))))
>>(define uim-plugin-lib-load-path (if (setugid?) (list (string-append
(sys-pkglibdir) "/plugin")) (filter string? (append (list (getenv
"LIBUIM_PLUGIN_LIB_DIR") (string-append (getenv "HOME") "/.uim.d/plugin")
(string-append (sys-pkglibdir) "/plugin")) (if (getenv "LD_LIBRARY_PATH")
(string-split (getenv "LD_LIBRARY_PATH") ":") ())))))
>>(require "plugin.scm")
>>(require "init.scm")
>>(*catch (quote errobj) (require "init.scm"))
>>(eq? (quote *init.scm-loaded*) (*catch (quote errobj) (require "init.scm")))

ERROR: unbound variable (errobj uim-get-default-im-name)

*backtrace*
>>(uim-get-default-im-name "ja_JP.UTF-8")

ERROR: unbound variable (errobj create-context)

*backtrace*
>>(create-context 0 (quote ()) (quote direct))
>>Segmentation fault
//
Comment 1 Etsushi Kato 2006-09-23 09:47:53 UTC
OK.  Fixed in r3878.
Comment 2 UTUMI Hirosi 2006-09-23 11:59:00 UTC
> OK.  Fixed in r3878.

Confirmed.
I uploaded a new package for Mandriva.
http://sourceforge.net/project/showfiles.php?group_id=109779&package_id=119961

Thank you so much.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.