bug reading ascii data



I just tried opening a trivial ascii file in gnumeric 1.7.0 and got a segfault. The content of the file:

waverley:~$ cat ma.txt
y
112
118
132
129
121
135
148
148
136
119

waverley:~$ gnumeric ma.txt
Reading file:///home/cottrell/ma.txt
Segmentation fault

In gdb:

(gdb) set args ma.txt
(gdb) run
Starting program: /opt/gnumeric/bin/gnumeric ma.txt
[Thread debugging using libthread_db enabled]
[New Thread -1224411472 (LWP 20912)]
Reading file:///home/cottrell/ma.txt

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1224411472 (LWP 20912)]
0xb7b4bc13 in strchr () from /lib/libc.so.6
(gdb) bt
#0  0xb7b4bc13 in strchr () from /lib/libc.so.6
#1  0xb7d33cb8 in stf_parse_options_guess ()
   from /opt/gnumeric/lib/libspreadsheet-1.7.0.so
#2  0xb7d3016b in stf_read_workbook_auto_csvtab ()
   from /opt/gnumeric/lib/libspreadsheet-1.7.0.so
#3  0xb7a4ccc9 in go_file_opener_open_real ()
   from /opt/gnumeric/lib/libgoffice-0.so.3
#4  0xb7a4d538 in go_file_opener_open ()
   from /opt/gnumeric/lib/libgoffice-0.so.3
#5  0xb7d440a8 in wb_view_new_from_input ()
   from /opt/gnumeric/lib/libspreadsheet-1.7.0.so
#6  0xb7d44377 in wb_view_new_from_uri ()
   from /opt/gnumeric/lib/libspreadsheet-1.7.0.so
#7  0x0804b940 in main ()

If I add dopey trailing commas to every line in ma.txt, it opens OK.

Allin Cottrell
Wake Forest University.



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