cht電腦資訊gcin已解決問題
adm Find login register

1.5.7 pre4遇到問題

koshizu
joined: 2010-09-18
posted: 21
promoted:
bookmarked:
1subject: 1.5.7 pre4遇到問題Promote 0 Bookmark 02010-10-30quote  

在輸入區使用「`」搭配「~」想要輸出全形「~」的時候會倒置gcin當掉。

環境是ubuntu 10.04,是否是BUG?

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02010-10-30quote  

試不出來,你是用什麼注音鍵盤?

coolcd
joined: 2008-01-21
posted: 2601
promoted: 348
bookmarked: 95
3subject: Promote 0 Bookmark 02010-10-30quote  

我用 gcin 1.5.7.pre5 (on Debian Testing),標準鍵盤,目前試起來還 ok,沒遇到當掉的情形。

koshizu
joined: 2010-09-18
posted: 21
promoted:
bookmarked:
4subject: Promote 0 Bookmark 02010-10-31quote  
詞音下的狀況,用的是一般標準鍵盤,目前還不知道原因,gcin會自己掛掉重開
winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
5subject: 1.5.7 pre4遇到問題Promote 0 Bookmark 02010-10-31quote  

koshizu

在輸入區使用「`」搭配「~」想要輸出全形「~」的時候會倒置gcin當掉。

環境是ubuntu 10.04,是否是BUG?

幫忙用1.5.7-pre5測試一下,發現的確有koshizu所說的情形,
使用詞音時,先按 「`」,再按「shift + `」,gcin就會掛掉重開,
我也是使用標準鍵盤。

-------------------------------------------------------------------
好用的gcin連結:

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
6subject: Promote 2 Bookmark 22010-10-31quote  

compile 成 -g,用 gdb 看當在哪裡

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
7subject: Promote 0 Bookmark 02010-10-31quote  

eliu

compile 成 -g?

歹勢,不知道怎麼compile成「-g」,所以,是直接./configure和make而已,結果測試正常~不會當掉...Orz。

後來我進入dh_make和dpkg-buildpackage編出來的那個gcin資料夾去試,發現接著狀況如下:

winlin@~/download/gcin-1.5.7.pre4$./tgdb 

GNU gdb (GDB) 7.0.1-debian

Copyright (C) 2009 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.  Type "show copying"and "show warranty" for details.This GDB was configured as "i486-linux-gnu".For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>...

Reading symbols from /home/winlin/download/gcin-1.5.7.pre4/gcin.test...(no debugging symbols found)...done.

(gdb) r

Starting program: /home/winlin/download/gcin-1.5.7.pre4/gcin.test [Thread debugging using libthread_db enabled]gcin:bad utf8 char ffffffff ��
Program exited with code 0377.(gdb) cannot read reply from gcin server: Resource temporarily unavailable(gdb) 

好像沒有什麼有用的訊息?

-------------------------------------------------------------------
好用的gcin連結:

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
8subject: Promote 1 Bookmark 12010-11-01quote  

export GCIN_ERR_COREDUMP

 

可以讓 p_err 產生 coredump 就可以知道當在哪裡

edited: 2
winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
9subject: Promote 0 Bookmark 02010-11-01quote  

eliu

export GCIN_ERR_COREDUMP

可以讓 p_err 產生 coredump 就可以知道當在哪裡

eliu兄:

小弟不才,多了這行指令似乎沒有多得到什麼訊息...,
是否方便再多給點提示?

winlin@~/download/gcin-1.5.7.pre4$export GCIN_ERR_COREDUMP
winlin@~/download/gcin-1.5.7.pre4$./tgdb
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/winlin/download/gcin-1.5.7.pre4/gcin.test...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/winlin/download/gcin-1.5.7.pre4/gcin.test
[Thread debugging using libthread_db enabled]
gcin:bad utf8 char ffffffff ��
cannot read reply from gcin server: Resource temporarily unavailable

Program exited with code 0377.
(gdb)

-------------------------------------------------------------------
好用的gcin連結:

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
10subject: Promote 1 Bookmark 12010-11-01quote  

tgdb 這個 script 第1行沒有

#!/bin/bash -f

所以沒有作用。

或是直接把 export GCIN_ERR_COREDUMP=

加在 tgdb 開頭的地方

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
11subject: Promote 0 Bookmark 02010-11-01quote  

eliu兄:有了有了!這次多了最下面那二行,感謝~

winlin@~/download/gcin-1.5.7.pre4$./tgdb
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/winlin/download/gcin-1.5.7.pre4/gcin.test...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/winlin/download/gcin-1.5.7.pre4/gcin.test
[Thread debugging using libthread_db enabled]
gcin:bad utf8 char ffffffff ��

Program received signal SIGABRT, Aborted.
0xb7fe2424 in __kernel_vsyscall ()

-------------------------------------------------------------------
好用的gcin連結:

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
12subject: Promote 1 Bookmark 12010-11-01quote  

接著在 gdb 輸入 bt 就可以知道在那邊當掉

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
13subject: Promote 0 Bookmark 02010-11-01quote  

看到了!

(gdb) bt
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb754c751 in raise () from /lib/i686/cmov/libc.so.6
#2  0xb754fb82 in abort () from /lib/i686/cmov/libc.so.6
#3  0x08051351 in p_err ()
#4  0x08052003 in utf8_sz ()
#5  0x080522f3 in u8cpy ()
#6  0x0805c20a in disp_pho_sub ()
#7  0x0806501f in disp_tsin_pho ()
#8  0x08060af3 in disp_in_area_pho_tsin ()
#9  0x0806301c in feedkey_pp ()
#10 0x08050e54 in ProcessKeyPress ()
#11 0x080728c4 in process_client_req ()
#12 0x08073225 in cb_read_gcin_client_data ()
#13 0xb78226db in ?? () from /lib/libglib-2.0.so.0
#14 0xb77de305 in g_main_context_dispatch ()
   from /lib/libglib-2.0.so.0
#15 0xb77e1fe8 in ?? () from /lib/libglib-2.0.so.0
#16 0xb77e2527 in g_main_loop_run () from /lib/libglib-2.0.so.0
#17 0xb7d12e19 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x0804f618 in main ()

-------------------------------------------------------------------
好用的gcin連結:

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
14subject: Promote 0 Bookmark 02010-11-01quote  

已經在 pre6 中修正

cht電腦資訊gcin已解決問題
adm Find login register
views:33449