Re: [Gtranslator-devel] gtranslator crashing



Hi Guntupalli,

I can't seem to reproduce the problem here. Could you obtain a
stacktrace, so we can see exactly where this hang is occuring in the
code?

Assuming you have 'gdb' installed, the process is very simple:

$ cd /usr/local/src/gtranslator (or wherever)
$ gdb src/gtranslator
GNU gdb 2003-06-06-cvs-debian
[snipped verbose gdb output stuff]
(gdb) run
Starting program: /home/rossg/workshop/gtranslator/src/gtranslator
[New Thread 16384 (LWP 3820)]

At this point, gtranslator should start, and you can use it as normal.
Reproduce the problem, and when it has hung, do 'Ctrl-C' in the gdb
window. Then you can use the 'bt' command to find out what part of the
program it is stuck in. For example:

Program received signal SIGINT, Interrupt.
[Switching to Thread 16384 (LWP 3820)]
0x4081c248 in poll () from /lib/libc.so.6
(gdb) bt
#0  0x4081c248 in poll () from /lib/libc.so.6
#1  0x405cadfb in g_main_loop_get_context () from
/usr/lib/libglib-2.0.so.0
#2  0x405ca339 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#3  0x405ca9de in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#4  0x4023cc97 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x0805fc31 in main (argc=0, argv=0xbffffb34) at main.c:509
(gdb)

This shows us the program 'stack' (i.e. which functions in the program
have been executed to get us this far). Please take the output of this
'bt' command and attach it to a bugzilla report, and I'll look into it
a.s.a.p.

Thanks,

--
Ross

On พ., 2003-06-18 at 09:26, Guntupalli Karunakar wrote:
> Hi,
>  I am getting a strange problem, I am using the latest 0.99 release
> 13-6-2003 tar ball release . I did the following
>   Start gtranslator, open a po file with Hindi translations (utf-8
> encoded), the header prop dialog appears, just say ok, then just do a
> File->Close & gtranslator seems to hang - I have to kill it then.
>  Same happens when I open a po file from File -> Import from utf-8.
> 
> below are the messages displayed by gtranslator - when it hangs
> 
> (gtranslator:6388): GnomeUI-WARNING **: Could not find GNOME pixmap
> file gtransl
> ator/fuzzy.png
>  
>  (gtranslator:6388): GLib-CRITICAL **: file gconvert.c: line 498
> (g_convert): as
> sertion `str != NULL' failed
>   
>   (gtranslator:6388): gtranslator-CRITICAL **: file header_stuff.c:
> line 586 (gt
> ranslator_header_comment_convert_for_view): assertion `comment!=NULL'
> failed
>    
>    (gtranslator:6388): GLib-GObject-WARNING **: gsignal.c:1893: signal
> `changed'
>  is invalid for instance `0x8355958'
>     
>     (gtranslator:6388): gtranslator-CRITICAL **: file message.c: line
> 168 (gtran
> slator_message_show): assertion `msg->msgid!=NULL' failed
> 
> What could be the problem?
> 
> Regards,
> Karunakar





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]