------- Comment #5 from pinskia at gcc dot gnu dot org 2008-01-08 20:24 ------- Can you run your program under gdb and then give the backtrace? Are you sure that the ioctl does not keep around the buffer so when you return from main, the buffer becomes invalid?
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34716