Re: gimp i18n == segfault

2000-02-10 Thread Marc Lehmann

On Wed, Feb 09, 2000 at 08:59:43PM +0100, Sven Neumann [EMAIL PROTECTED] 
wrote:
 I haven't beeen able to reproduce the problem, so I depend on more

You recent patch completely fixes the problem for me.


-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



Re: gimp i18n == segfault

2000-02-09 Thread Daniel . Egger

On  9 Feb, Marc Lehmann wrote:

 Since about two weeks, setting LANG to any value results on a
 segmentation fault on startup.

 Since I cannot reproduce this (i.e. GIMP works just fine)
 I'd need more input on this.
 
 Your stacktrace seems like it crashes when initialising the
 help_pages but I can guess that only from the arguments to
 the g_str function. Could you please compile libgimp with
 debugging information and report again? 

-- 

Servus,
   Daniel



Re: gimp i18n == segfault

2000-02-09 Thread Sven Neumann

 Since about two weeks, setting LANG to any value results on a segmentation
 fault on startup.
 
 Program received signal SIGSEGV, Segmentation fault.
 0x4015822d in g_strdup (str=0x81e8273 "help_page") at gstrfuncs.c:56
 gstrfuncs.c:56: No such file or directory.
 (gdb) bt
 #0  0x4015822d in g_strdup (str=0x81e8273 "help_page") at gstrfuncs.c:56
 #1  0x40107f18 in __DTOR_END__ ()
 #2  0x88b4b30 in ?? ()
 #3  0x42207265 in ?? ()
 

There's only one place where the string "help_page" is ever used and that's 
around line 1564 in menus.c:

  gtk_object_set_data (GTK_OBJECT (menu_item), "help_page",
   (gpointer) entry-help_page);

which is called shortly after

  gtk_item_factory_create_item (item_factory,
(GtkItemFactoryEntry *) entry,
callback_data,
callback_type);

This is the function other people reported to crash, so I think you are
observing the same problem. I thought I would found the problem when I 
found out that the german catalog had a multiline help-line string with 
linebreaks etc. as the translation for a plugin menu_path. Up till
today only people using the german catalogs reported this problem. But 
now you are the second one to claim that it is not related to the german
catalog. I have today introduced a patch that should guard us from using
unintentionally wrong translations. 

I haven't beeen able to reproduce the problem, so I depend on more
bugreports. Please update your gimp tree and recompile (everything!), then 
tell us if the problem remains. 


Salut, Sven




gimp i18n == segfault

2000-02-08 Thread Marc Lehmann

Since about two weeks, setting LANG to any value results on a segmentation
fault on startup.

Program received signal SIGSEGV, Segmentation fault.
0x4015822d in g_strdup (str=0x81e8273 "help_page") at gstrfuncs.c:56
gstrfuncs.c:56: No such file or directory.
(gdb) bt
#0  0x4015822d in g_strdup (str=0x81e8273 "help_page") at gstrfuncs.c:56
#1  0x40107f18 in __DTOR_END__ ()
#2  0x88b4b30 in ?? ()
#3  0x42207265 in ?? ()

(The stack-trace option, btw, outputs:)

/usr/app/bin/gimp: fatal error: sigsegv caught
/usr/app/bin/gimp (pid:23146): [E]xit, [H]alt, show [S]tack trace or [P]roceed: s
#0  g_on_error_stack_trace (
#1  0x4016110c in __DTOR_END__ ()
#2  0x7070612f in ?? ()

(i.e. the same output you always get with that option ;)

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |