GNOME Bugzilla – Bug 146653
lot of errors and crash with "charset=CHARSET" in a po file
Last modified: 2005-02-06 22:03:05 UTC
Distribution: Debian testing/unstable Package: gtranslator Severity: critical Version: HEAD Synopsis: lot of errors and crash with "charset=CHARSET" in a po file Bugzilla-Product: gtranslator Bugzilla-Component: Generally bug'd Bugzilla-Version: HEAD BugBuddy-GnomeVersion: 2.0 (2.6.1.1) Description: Description of the crash: Try to open an iso-8859 po file with "charset=CHARSET" in the header Steps to reproduce the crash: 1. open the file (it displays a lot of errors in the console) 2. close the info box without changing anything 3. close the file without saving it 4. try to open a new file Expected Results: 1- don't display all these errors 2- don't crash How often does this happen? every time Additional Information: Debugging Information: Backtrace was generated from '/usr/bin/gtranslator' Using host libthread_db library "/lib/tls/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 1087404928 (LWP 12566)] 0x408a340e in __waitpid_nocancel () from /lib/tls/libpthread.so.0
+ Trace 48081
Thread 1 (Thread 1087404928 (LWP 12566))
------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-07-09 04:21 ------- Unknown platform unknown. Setting to default platform "Other". Unknown milestone "unknown" in product "gtranslator". Setting to default milestone for this product, '1.0' Setting to default status "UNCONFIRMED". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
*** Bug 152191 has been marked as a duplicate of this bug. ***
Created attachment 36946 [details] [review] Fix for this crash This patch fixes the problem here, it basically changes the type of test used to know whether we can rely on the current opened file to guess the current directory, and adds safety checks for parameters and against reusal of freed vars.
Patch applied to CVS. Thanks again.
(Closing this bug after the release.)