I did a clean build of the same version of PSPP that you did, in /tmp, using the login you lent me. I saw the same problem that you did: that command-line arguments with options cause segfaults.
I experimented using printf()s to show the address of optarg from various spots. I discovered that &optarg is *different* from different parts of the program. (It's not just the difference between optarg from libc and rpl_optarg from gnulib, either: there are at least *three* different variables.) I think that this must have something to do with dynamic libraries and dynamic linking: I tried reconfiguring with "--disable-shared" and that took care of the problem. (I actually did my experiments with the simpler tests program tests/data/datasheet-test instead of src/ui/terminal/pspp. The former doesn't take quite as long to build.) With --disable-shared, much of the testsuite passes. It's not a proper fix--we should figure out why the variable is duplicated--but at least we're starting to track it down. -- Ben Pfaff http://benpfaff.org _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
