pspp-dev
[Top][All Lists]
Advanced

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

scanner / lexer problem in GUI


From: John Darrington
Subject: scanner / lexer problem in GUI
Date: Sat, 5 May 2012 21:38:45 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

Looking at the bug recently reported on bug-gnu-pspp I notice the following.

Valgrind reports:

Invalid read of size 1
==25266==    at 0x41AC189: u8_mbtouc (u8-mbtouc.c:33)
==25266==    by 0x40495FD: count_columns (lexer.c:977)
==25266==    by 0x4049777: lex_source_get_last_column (lexer.c:1010)
==25266==    by 0x404A10E: lex_source_error_valist (lexer.c:1328)
==25266==    by 0x4048810: lex_next_error_valist (lexer.c:392)
==25266==    by 0x40482C5: lex_error (lexer.c:247)
==25266==    by 0x4048E62: lex_force_string (lexer.c:623)
==25266==    by 0x405E8CC: cmd_variable_labels (variable-label.c:50)
==25266==    by 0x40468FE: do_parse_command (command.c:222)
==25266==    by 0x404662F: cmd_parse_in_state (command.c:136)
==25266==    by 0x4046713: cmd_parse (command.c:152)
==25266==    by 0x8097815: execute_syntax (executor.c:121)
==25266==  Address 0x69f27d8 is 0 bytes after a block of size 144 alloc'd
==25266==    at 0x4024046: realloc (vg_replace_malloc.c:525)
==25266==    by 0x41AD940: xrealloc (xmalloc.c:63)
==25266==    by 0x41AD89B: x2nrealloc (xalloc.h:215)
==25266==    by 0x41AD989: x2realloc (xmalloc.c:78)
==25266==    by 0x4049BE6: lex_source_expand__ (lexer.c:1197)
==25266==    by 0x4049C15: lex_source_read__ (lexer.c:1214)
==25266==    by 0x404A2C9: lex_source_get__ (lexer.c:1399)
==25266==    by 0x4048241: lex_get (lexer.c:228)
==25266==    by 0x4046982: do_parse_command (command.c:235)
==25266==    by 0x404662F: cmd_parse_in_state (command.c:136)
==25266==    by 0x4046713: cmd_parse (command.c:152)
==25266==    by 0x8097815: execute_syntax (executor.c:121)


When running the GUI with this input :

DATA LIST LIST / dataSetId (F20.0) q456 * q465 * q470c472 * q470c473 * q470c474 
* q470c475 * q470c476 * .
begin data.
1 460 492 0 1 1 1 0 
2 462 468 0 0 0 0 1 
3 459 469 1 1 0 0 0 
4 460 492 1 1 1 1 1 
end data.

variable labels
    q456 "Wie finden Sie Auswahlfragen?"
    q465 "Wie finden Sie Ausklappauswahlfragen?"
    q470c472 "Wie finden Sie Mehrfachauswahlfragen? => praktisch"
    q470c473 "Wie finden Sie Mehrfachauswahlfragen? => sch??n"
    q470c474 "Wie finden Sie Mehrfachauswahlfragen? => h????lich"
    q470c475 "Wie finden Sie Mehrfachauswahlfragen? => ??berfl??ssig"
    q470c476 "Wie finden Sie Mehrfachauswahlfragen? => mir doch egal"
    .
value labels q456 
    459 "die sehen einfach toll aus"
    460 "die so einfach sind"
    461 "einfach so"
    462 "bl??d"
    .
value labels q465 
    468 "doof"
    469 "praktisch"
    492 "sch??n"
    493 "h????lich"
    .
value labels q470c472
    0 'nicht ausgew??hlt'
    1 'ausgew??hlt'.
value labels q470c473
    0 'nicht ausgew??hlt'
    1 'ausgew??hlt'.
value labels q470c474
    0 'nicht ausgew??hlt'
    1 'ausgew??hlt'.
value labels q470c475
    0 'nicht ausgew??hlt'
    1 'ausgew??hlt'.
value labels q470c476
    0 'nicht ausgew??hlt'
    1 'ausgew??hlt'.
.
missing values q456 (-1).
missing values q465 (-1).
missing values q470c472 (-1).
missing values q470c473 (-1).
missing values q470c474 (-1).
missing values q470c475 (-1).
missing values q470c476 (-1).

list.
display dictionary.





-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

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