[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Segfault in patch
From: |
Bryce Nesbitt |
Subject: |
Segfault in patch |
Date: |
Wed, 07 Jan 2009 11:38:56 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12 (Ubuntu-1.1.12+nobinonly-0ubuntu0.8.04.1) |
Is this the proper place for "patch" bug reports? I see references to a
"address@hidden" mailing list all over the gnu website, but can't
find the actual list.
Patch mishandles the program name when parsing arguments:
$ ./patch -Verbose
Segmentation fault
$ patch -Verbose
patch: invalid argument `erbose' for `--version-control or -V option'
Valid arguments are:
- `none', `off'
- `simple', `never'
- `existing', `nil'
- `numbered', `t'
$ patch --version
patch 2.5.9
Copyright (C) 1988 Larry Wall
Copyright (C) 2003 Free Software Foundation, Inc.
(gdb) run -Verbose < patch.c
Starting program: /home/bnesbitt/work/patch-2.5.4/patch -Verbose < patch.c
Program received signal SIGSEGV, Segmentation fault.
0xb7e68283 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7e68283 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7e37812 in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7e3d322 in fprintf () from /lib/tls/i686/cmov/libc.so.6
#3 0x0804a006 in error (status=0, errnum=0, message=0x8057b4e "invalid
argument %s for `%s'")
at error.c:136
#4 0x08049a8d in argmatch_invalid (context=0x8058ac0 "--version-control
or -V option",
value=0xbf818741 "erbose", problem=-1) at argmatch.c:162
#5 0x08049ae2 in __xargmatch_internal (context=0x8058ac0
"--version-control or -V option",
arg=0xbf818741 "erbose", arglist=0x8057c00, vallist=0x8057be0 "",
valsize=4, case_sensitive=1,
exit_fn=0x8049750 <__argmatch_die>) at argmatch.c:214
#6 0x08049b68 in get_version (context=0x8058ac0 "--version-control or
-V option",
version=0x63746170 <Address 0x63746170 out of bounds>) at
backupfile.c:251
#7 0x0804edc2 in main (argc=Cannot access memory at address 0x0
) at patch.c:169
(gdb) \q
Bad references to the bug patch mailing list are here:
http://www.gnu.org/software/diffutils/manual/html_node/Bugs.html
- Segfault in patch,
Bryce Nesbitt <=