[Bug libfortran/34291] Uninitialized variable is used in io/list_read.c which causes segfault

2007-11-29 Thread ek dot kato at gmail dot com
--- Comment #1 from ek dot kato at gmail dot com 2007-11-29 13:18 --- It turns out that my explanation and assumption about uninitialization was wrong, but the real cause of the segmentation fault is that some functions call free_line(dtp) without resetting line_buffer_enabled. Here is

[Bug libfortran/34291] Uninitialized variable is used in io/list_read.c which causes segfault

2007-11-29 Thread aldot at gcc dot gnu dot org
--- Comment #2 from aldot at gcc dot gnu dot org 2007-11-29 13:27 --- Can you please provide a testcase for the testsuite? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34291

[Bug libfortran/34291] Uninitialized variable is used in io/list_read.c which causes segfault

2007-11-29 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-11-29 15:01 --- Jerry, libgfortran IO is your domain... -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/34291] Uninitialized variable is used in io/list_read.c which causes segfault

2007-11-29 Thread ek dot kato at gmail dot com
--- Comment #4 from ek dot kato at gmail dot com 2007-11-30 01:11 --- I can't provide a simple test case sorry, but I now realized that it seems to be related that READ() for a namelist file ended with END instead of / causes the problem. I use a library which creates namelist file by

[Bug libfortran/34291] Uninitialized variable is used in io/list_read.c which causes segfault

2007-11-29 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2007-11-30 04:04 --- I will get on this soon. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/34291] Uninitialized variable is used in io/list_read.c which causes segfault

2007-11-29 Thread ek dot kato at gmail dot com
--- Comment #5 from ek dot kato at gmail dot com 2007-11-30 02:39 --- Maybe I could find a reliable testcase for the problem. Following program will crash while accessing dtp-u.p.line_buffer[dtp-u.p.item_count]. IMPLICIT NONE CHARACTER(len=10), DIMENSION(2) :: var NAMELIST