Re: XForms: file_selector seg fault

From: Steve Lamont (
Date: Fri Oct 13 2000 - 09:52:12 EDT

  • Next message: Steve Lamont: "Re: XForms: fl_exe_command"

    # To subscribers of the xforms list from Steve Lamont <> :

    > There appears to be a problem with fl_show_file_selector( ) function which
    > when you select a directory which you do not have permission to access the
    > program seg faults immediately. Also if you type in the directory field an
    > incorrect path it will core dump.
    > I'm using xforms vers 0.88 on SuSE Linux 6.3.

    I assume you mean fl_show_fselector().

    I was unable to duplicate the problem under 0.89 on Sun Solaris 2.6.
    I got the error messages below with a dialog box saying the same thing.

      In ReadDir [fselect.c 463] Can't read /home/spl/tmp/forms_try/secret_stuff
      In GetDir [fselect.c 381] invalid dir: /home/spl/tmp/foo/bar/baz--No
      such file or directory

      ncmir:spl> ls -l
      d--------- 2 root sys 512 Oct 13 06:40 secret_stuff/

    I, of course, did not try all the combinations and permutations of the
    permission and ownership fields, so there may still be a problem
    lurking somewhere.

    fl_show_fselector(), of course, returns NULL if nothing is selected
    (the "Cancel" button is pressed). If you're not checking for this,
    the program will, segmentation fault if you try to use the pointer
    returned but I assume from your description that this isn't the

    Can you upgrade to 0.89 and try that?

    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Fri Oct 13 2000 - 09:56:31 EDT