|
|||||||||||
|
Re: user/3353: egrep -f fails on sparc64 with bus and segmentation faults
From: Brian Poole <raj(at)cerias.purdue.edu>
Date: Wed Jul 16 2003 - 12:45:03 EDT
From: Brian Poole <raj@cerias.purdue.edu>
To: gnats@openbsd.org
Quoting Mathias Gygax (mg@trash.net) from 16 July 2003:
>From the quick look I took, I think its reallocing with the wrong size
> Core was generated by `egrep'.
Here is a better trace.. You would probably find that debugging symbols would just cause gdb insystem to core on you ;-) Program received signal SIGSEGV, Segmentation fault. 0x00000000001027c4 in add_pattern (
pat=0x70c84e "accountment\naccouple\naccouplement\naccouter\naccouterment\naccoy\naccredit\naccreditate\naccreditation\naccredited\naccreditment\naccrementitial\naccrementition\naccresce\naccrescence\naccrescent\naccretal\naccrete\n"..., len=11) at /usr/src/usr.bin/grep/grep.c:175
175 pattern[patterns] = grep_malloc(len + 1);
(gdb) bt
#0 0x00000000001027c4 in add_pattern ( pat=0x70c84e "accountment\naccouple\naccouplement\naccouter\naccouterment\naccoy\naccredit\naccreditate\naccreditation\naccredited\naccreditment\naccrementitial\naccrementition\naccresce\naccrescence\naccrescent\naccretal\naccrete\n"..., len=11) at /usr/src/usr.bin/grep/grep.c:175 #1 0x00000000001029d0 in read_patterns (fn=0xffffffffffffc012 "/usr/share/dict/words") at /usr/src/usr.bin/grep/grep.c:206 #2 0x00000000001036f0 in main (argc=4, argv=0xffffffffffffbb78) at /usr/src/usr.bin/grep/grep.c:360 #3 0x00000000001015ec in ___start () Index: grep.c RCS file: /cvs/src/usr.bin/grep/grep.c,v retrieving revision 1.21 diff -u -r1.21 grep.c
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:30:00 EDT |
||||||||||
|
|||||||||||