Bug 8405

Summary: UIM causes segfault if we unset HOME
Product: UIM Reporter: UTUMI Hirosi <utuhiro78>
Component: OtherAssignee: uim-bugs
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.