Take the file http://mekk.waw.pl/download/scid/pgnscid_fail.pgn
and try running

   pgnscid pgnscid_fail.pgn

The result is somewhat unexpected considering the file contains
just two games:

   Converting file pgnscid_fail.pgn to Scid database pgnscid_fail:
   Errors/warnings will be written to pgnscid_fail.err.

     [0% 10   20   30   40   50   60   70   80   90  100]
     [.......................................
   ERROR: Too many player names!  The maximum allowable number is 1048575.
   Aborting pgnscid; try using a smaller PGN file.

Even more interesting thing: while trying to examine it, I added one-line
diagnostic printf to the scid sources (NameBase::AddName, namebase.cpp):

    if (Header.numNames[nt] >= NAME_MAX_ID[nt]) {
        fprintf(stderr, "Error: %d names of type %d registered!", 
Header.numNames[nt], nt);
        return ERROR_NameBaseFull;   // Too many names already.
    }

The result:

    Error: 1931506803 names of type 0 registered!

Is something overwritting memory somewhere???

PS self-compiled scid 3.6.24, linux i386
PS I know, this PGN is not very typical. Nevertheless...

-- 
----------------------------------------------------------------------
| Marcin Kasperski   |   The goal of a software process is the
| http://mekk.waw.pl | production of software (...) Intermediate
|                    | artifacts are not the goal (Booch,Martin)
----------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to