[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Modelling] a locale problem
From: |
Cheng-shan Frank Liu |
Subject: |
[Swarm-Modelling] a locale problem |
Date: |
Sat, 28 May 2005 12:00:51 -0500 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Hi, I need a help to solve this problem:
I use Chinese input system often. Every time when I try to change
parameter values in my Swarm program, I cannot change some of them. If I
keep trying, the program crashed. I got the error message shown below:
(gdb) run
Starting program: /home/ashan/swarmProjects/Expertise/influence
Program received signal SIGSEGV, Segmentation fault.
0xf66eb42b in _XimProcSyncReply ()
from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
(gdb) bt
#0 0xf66eb42b in _XimProcSyncReply ()
from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
#1 0xf66e608c in _XimCbDispatch ()
from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
#2 0xf66e6148 in _XimCbDispatch ()
from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
#3 0xf6b89a45 in XFilterEvent () from /usr/X11R6/lib/libX11.so.6
#4 0xf6cfcead in Tk_HandleEvent () from /usr/lib/libtk8.4.so
#5 0xf6cfd47e in TkQueueEventForAllChildren () from /usr/lib/libtk8.4.so
#6 0xf6c9f58a in Tcl_ServiceEvent () from /usr/lib/libtcl8.4.so
#7 0xf6c9f7fa in Tcl_DoOneEvent () from /usr/lib/libtcl8.4.so
#8 0xf6eaeb50 in tkobjc_doOneEventSync () from /usr/lib/swarm/libswarm.so.0
#9 0xf6e62cc5 in swarm_force_references () from
/usr/lib/swarm/libswarm.so.0
#10 0x0804be19 in -[ObserverSwarm buildObjects] (self=0x817cd70,
_cmd=0x8055248) at ObserverSwarm.m:91
#11 0x08049391 in main (argc=0, argv=0x0) at main.m:42
I noticed the word "locale" in the first error message. I guess the
(memory, probabily?) problem will occur under my default locale setting
LC_CTYPE=zh_TW.Big5 (in /etc/sysconfig/i18n).
If I change the setting:
> export LC_CTYPE=en_US.UTF-8, or
> export LC_CTYPE=zh_TW.UTF-8
then the problem is completely gone.
Given no serious flaws in my program (because I can change parameter
values with no problem under en_US.UTF-8), I need a help to fix this
problem so that I don't need to do
> export LC_CTYPE=en_US.UTF-8
every time I run the program.
Thank you very much.
Frank
--
Cheng-shan Frank Liu
Dept. of Political Science E-mail: address@hidden
University of Kansas Web: http://lark.cc.ku.edu/~ashan
1541 Lilac Lane, Room 504 Office: (785) 864-9019
Lawrence, Kansas 66044-3177 FAX: (785) 864-5700
- [Swarm-Modelling] a locale problem,
Cheng-shan Frank Liu <=