Share

Scid

Tracker: Bugs

5 pgnscid/scid segmentation fault - ID: 2857960
Last Update: Attachment added ( nobody )

when importing the attached pgn file, pgnscid crashes with segmentation
fault.
This happens on a Suse 11.1 64-bit system, scid version 4.0. scid 3.6.1
displays the same bug.
Same thing happens when starting scid and importing with "Tools/Import File
of PGN Games".

Immediate cause seems to be line 2406 of src/position.cpp
when the string s is shorter than expected (slen=1).

gdb ./pgnscid
...
This GDB was configured as "x86_64-suse-linux".
(gdb) set args -f test.pgn
(gdb) run
Starting program: /home/duschek/workbench/scid.git/pgnscid -f test.pgn
Converting file test.pgn to Scid database test:
Errors/warnings will be written to test.err.

[0% 10 20 30 40 50 60 70 80 90 100]
[
Program received signal SIGSEGV, Segmentation fault.
0x0000000000413e3c in Position::ReadMove (this=0x67faf0,
m=0x7fffffffd960,
str=0x6800b0 "e", token=5) at src/position.cpp:2406
2406 toFyle = fyle_FromChar (s[slen-2]);
(gdb)


Nobody/Anonymous ( nobody ) - 2009-09-13 09:22

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
test.pgn pgnscid test case Download

Change ( 1 )

Field Old Value Date By
File Added 342782: test.pgn 2009-09-13 09:22 nobody