Interfacing with libexpat

Thierry Martinez <[email protected]> Wed, 26 Oct 2011 23:38:23 +0200
Newsgroups gmane.comp.gnu.prolog.bugs
Organization INRIA Paris-Rocquencourt
Message-ID <[email protected]>
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.

_______________________________________________
Bug-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-prolog
smime.p7s (application/x-pkcs7-signature, 4.1 KB) - not displayed