------- Comment #2 from jmcdonald at fairfield dot com 2009-03-27 22:05 ------- Created an attachment (id=17550) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17550&action=view) Sources for self-contained test case which recreated bug.
This attachment contains the complete sources & makefile for recreating the bug. To recreate it, simply untar the file into an empty folder ('tar -xzvf bug_39569_test_case.tgz'), cd to that folder, and enter the make command. Once you have the test_main executable, you can enter: ./test_main to run the executable and 'log' to std out, which will work correctly... or ./test_main 1 to run the executable and log to syslog(), which will demonstrate the apparent memory corruption. I've tried to make the example as concise and helpful as possible... but if I've missed anything, please don't hesitate to contact me. I thank you very much for any help you can provide... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39569