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

1.5.7 pre4遇到問題

koshizu
1 1.5.7 pre4遇到問題
Promote 0 Bookmark 02010-10-30quote  

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

環境是ubuntu 10.04,是否是BUG?

eliu
2
Promote 0 Bookmark 02010-10-30quote  
coolcd
3
Promote 0 Bookmark 02010-10-30quote  

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

koshizu
4
Promote 0 Bookmark 02010-10-31quote  
詞音下的狀況,用的是一般標準鍵盤,目前還不知道原因,gcin會自己掛掉重開
winlin
5 1.5.7 pre4遇到問題
Promote 0 Bookmark 02010-10-31quote  

koshizu

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

環境是ubuntu 10.04,是否是BUG?

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

eliu
6
Promote 2 Bookmark 22010-10-31quote  
winlin
7
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) 

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

eliu
8
Promote 1 Bookmark 12010-11-01quote  
edited: 2
winlin
9
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)

eliu
10
Promote 1 Bookmark 12010-11-01quote  

tgdb 這個 script 第1行沒有

#!/bin/bash -f

所以沒有作用。

或是直接把 export GCIN_ERR_COREDUMP=

加在 tgdb 開頭的地方

winlin
11
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 ()

eliu
12
Promote 1 Bookmark 12010-11-01quote  
winlin
13
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 ()

eliu
14
Promote 0 Bookmark 02010-11-01quote  

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