[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 Eric Botcazou changed: What|Removed |Added Status|WAITING |ASSIGNED AssignedTo|unassigned at gcc dot |ebotcazou at gcc dot |gnu.org |gnu.org --- Comment #7 from Eric Botcazou 2011-07-14 14:02:57 UTC --- > gcc -c -O0 -gnato -I- -gnatA > /ncplc/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-menus.adb > > raised STORAGE_ERROR : stack overflow (or erroneous memory access) > > Make sense, I guess. Sort of. :-) This doesn't really ring a bell, so I'll investigate.
[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 --- Comment #6 from Vorfeed Canal 2011-07-14 13:52:07 UTC --- Ah-ha. Here we go: gcc -c -O0 -gnato -I- -gnatA /ncplc/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-menus.adb raised STORAGE_ERROR : stack overflow (or erroneous memory access) Make sense, I guess.
[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 --- Comment #5 from Eric Botcazou 2011-07-14 13:33:41 UTC --- > Ah, I see. Well, it looks it's -gnatafno option which triggers the error. -gnatafno is -gnata -gnatf -gnatn -gnato. Can you further narrow it down?
[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 --- Comment #4 from Vorfeed Canal 2011-07-14 13:22:31 UTC --- Ah, I see. Well, it looks it's -gnatafno option which triggers the error. And I have no idea what it's supposed to do :-( /localbuild/build/sysnative-prencurses-5.9/narrowc/Ada95/src$ PATH=/sysnative/bin:$PATH gnatmake -f -P/localbuild/src/sysnative-prencurses-5.9/Ada95/src/library.gpr -XBUILD_DIR=`cd ..;pwd` -XSOURCE_DIR=`cd ..;pwd` -XSOURCE_DIR2=`cd /localbuild/src/sysnative-prencurses-5.9/Ada95/src;pwd` -XLIB_NAME=AdaCurses -XSONAME=libAdaCurses.so.1 -XLIB_KIND=static gcc -c -O0 -gnatafno -I- -gnatA /localbuild/build/sysnative-prencurses-5.9/narrowc/Ada95/src/terminal_interface-curses-trace.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-text_io-fixed_io.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-termcap.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-forms-field_types-alpha.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-text_io-integer_io.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-forms-field_types-enumeration-ada.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-text_io-enumeration_io.adb gcc -c -O0 -gnatafno -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-menus.adb raised STORAGE_ERROR : stack overflow (or erroneous memory access) gnatmake: "/localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-menus.adb" compilation error
[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 --- Comment #3 from Eric Botcazou 2011-07-14 12:12:35 UTC --- > Which compilation options? -g -O2 -gnata -gnatf -gnatn -gnato -gnatVa It's usually more convenient to change them for a particular file in the project file than patching the source code directly.
[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 --- Comment #2 from Vorfeed Canal 2011-07-14 12:07:01 UTC --- Which compilation options? I'm not specifying anything strange and even if I use -O0 the result is the same: /localbuild/build/sysnative-prencurses-5.9/narrowc/Ada95/src$ gnatmake -O0 -P/ncplc/src/sysnative-prencurses-5.9/Ada95/src/library.gpr -XBUILD_DIR=`cd ..;pwd` -XSOURCE_DIR=`cd ..;pwd` -XSOURCE_DIR2=`cd /localbuild/src/sysnative-prencurses-5.9/Ada95/src;pwd` -XLIB_NAME=AdaCurses -XSONAME=libAdaCurses.so.1 -XLIB_KIND=static gcc -c -g -O2 -gnatafno -gnatVa -gnatwa -O0 -I- -gnatA /localbuild/src/sysnative-prencurses-5.9/Ada95/src/terminal_interface-curses-menus.adb raised STORAGE_ERROR : stack overflow (or erroneous memory access) GCC 4.4 works fine (I don't have GNAT 4.5 here to test)
[Bug ada/49732] GNAT 4.6.[01] crashes on terminal_interface-curses-menus.adb from ncruses 5.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49732 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2011.07.14 08:18:37 CC||ebotcazou at gcc dot ||gnu.org Ever Confirmed|0 |1 --- Comment #1 from Eric Botcazou 2011-07-14 08:18:37 UTC --- Please find out which compilation option is responsible for the crash instead.