bug-prolog
[Top][All Lists]
Advanced

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

Interfacing with libexpat


From: Thierry Martinez
Subject: Interfacing with libexpat
Date: Wed, 26 Oct 2011 23:38:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (windows-nt)

Hi,

Writing a foreign language interface for libexpat, I noticed that calls
to Prolog from parser callbacks segfault on GNU/Linux (with GNU Prolog
1.4.0 and 1.3.1) but succeed on Mac OS X. A short example is available
at

http://contraintes.inria.fr/~tmartine/tmp/expat_error.tar.gz

"make" builds an executable expat_error which prints "here" once then
segfaults on GNU/Linux and which prints "here" twice (which is correct)
then terminates correctly on Mac OS X.  The first "here" is a witness
for calls to Prolog outside parser callbacks. The second "here" should
be printed by the callback.

Thanks,
-- 
Thierry.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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