feature or useful bug?

Neven Has haski at sezampro.yu
Mon Aug 11 05:02:20 PDT 2003


On Mon, Jun 23, 2003 at 06:06:37PM -0600, Izzy wrote:
> > The Name identifies the entity in an entity reference or, in the
> > case of an unparsed entity, in the value of an ENTITY or ENTITIES
> > attribute. If the same entity is declared more than once, the
> > first declaration encountered is binding; at user option, an XML
> > processor may issue a warning if entities are declared multiple
> > times.
> 
> Oh! So it's a _feature_ of the XML spec.  I have to admit, my
> knowledge of XML is limited.  Playing with ALFS profiles is the
> closest I've come to doing anything XML.  It is good to hear that I
> should be able to depend on this feature in the future.  I was
> worried some one would report it as a bug and render my profiles
> broken! :(
> 
> I'm guessing the XML processor described above is part of nALFS.
> Perhaps having it issue workings, at the users option, would be
> useful.

A warning sounds nice, I'll add an option for it.

> On a related note, while experimenting with this feature, I HAVE
> found a bug!  Creating a circular reference causes nALFS to segfault
> and dump core.  I know, it was a stupid mistake on my part, but it
> should cause nALFS to insult me for being so stupid, not dump core
> for no obvious reason!  Although this could be considered an insult
> :)
> 
> To illustrate, here's a simple example that will cause the coredump
> I've discovered:
<snip>

As Vassili said, this is probably a problem with libxml2.  I can't
reproduce the bug with libxml-2.4.23, try updating the library if you
use some older version.


Neven




More information about the alfs-discuss mailing list