wrong options usually lead to helpful output but not always:
address@hidden:~/patch-2.7.1> ./src/patch -dry-run
./src/patch: **** Can't change to directory ry-run : No such file or directory
Segmentation fault
address@hidden:~/patch-2.7.1> gdb ./src/patch
GNU gdb (GDB) SUSE (7.5.1-2.1.1)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
Reading symbols from /home/ralf/patch-2.7.1/src/patch...done.
(gdb) set args -dry-run
(gdb) r
Starting program: /home/ralf/patch-2.7.1/src/patch -dry-run
home/ralf/patch-2.7.1/src/patch: **** Can't change to directory ry-run : No such file or directory
Program received signal SIGSEGV, Segmentation fault.
gl_list_iterator_inline (list=0x0) at ../lib/gl_list.h:762
762 ->iterator (list);
(gdb) bt
#0 gl_list_iterator_inline (list=0x0) at ../lib/gl_list.h:762
#1 forget_output_files () at patch.c:1935
#2 cleanup () at patch.c:1978
#3 0x0000000000407058 in fatal_exit (address@hidden) at patch.c:1953
#4 0x000000000040cf3e in pfatal (
address@hidden "Can't change to directory %s") at util.c:952
#5 0x0000000000402f7e in get_some_switches () at patch.c:875
#6 main (argc=<optimized out>, argv=<optimized out>) at patch.c:156
(gdb)
Regards,