Created attachment 128556 [details] test case
Description of problem: If you have a long option --foobar and pass --fooba getopt_long SEGVs. Version-Release number of selected component (if applicable): FC4 and FC5 glibc, but not RHEL-4 glibc. How reproducible: Always Steps to Reproduce: 1. See attached program. 2. compile. 3. run. Actual results: SEGV Expected results: not SEGV
That testcase is invalid. See the "The last element of the array has to be filled with zeroes." note in man getopt_long which is violated.