[Top][All Lists]

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

Re: [ft-devel] Crash because of invalid use of setjmp

From: mpsuzuki
Subject: Re: [ft-devel] Crash because of invalid use of setjmp
Date: Tue, 15 Aug 2006 01:42:04 +0900


On Mon, 14 Aug 2006 08:27:28 -0700 (PDT)
Jens Claudius <address@hidden> wrote:
>on my system ftvalid crashes when I run it on SIL Charis (get it from

>So it seems that we cannot encapsulate setjmp() within a function. Indeed, if
>I replace the function declaration of ft_validator_run() with a macro
>like this
>#define ft_validator_run( valid ) setjmp( (valid)->jump_buffer )
>the crash is gone.
>I would check in this change to CVS, but I_d like to know first why it
>wasn_t done this way before. Are there compatibility problems with
>systems that don_t have (working) setjmp/longjmp?

Thank you for finding the bug.

The original implementation of ft_validator_run was introduced
as a part of (PS-)CMap handler (before ftvalid), 2002-03-22
(raw setjmp() was used).

At present, ft_validator_run() is only used by otvalid/gxvalid.
Unfortunately, the platforms of ftvalid maintainers (Masatake
Yamato and me) are quite limited: Linux/i386 and a few Mac OS X,
thus the bug does not appear. Yet I'm not sure of the intention
of original author, give me a few weeks. If urgent fix is required,
I will write a patch for configure to check ft_validator_run()
works well and replace ft_setjmp() if does not work.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]