Bug 200982 - patch causes diffstat to segfault when malloc perturb is used.
Summary: patch causes diffstat to segfault when malloc perturb is used.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: diffstat
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC6Update
TreeView+ depends on / blocked
 
Reported: 2006-08-01 23:02 UTC by Dave Jones
Modified: 2015-01-04 22:28 UTC (History)
1 user (show)

Fixed In Version: 1.43-1.fc6
Clone Of:
Environment:
Last Closed: 2007-01-18 18:20:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
the patch in question. (56.23 KB, text/plain)
2006-08-01 23:02 UTC, Dave Jones
no flags Details

Description Dave Jones 2006-08-01 23:02:12 UTC
$ declare -x MALLOC_PERTURB_="106"
$ diffstat pm.diff 
Segmentation fault (core dumped)

gdb says...

Program terminated with signal 11, Segmentation fault.
#0  0x00002aaaaad3d9d2 in strcmp () from /lib64/libc.so.6
(gdb) bt
#0  0x00002aaaaad3d9d2 in strcmp () from /lib64/libc.so.6
#1  0x00002aaaaad93eee in tfind () from /lib64/libc.so.6
#2  0x00000000004017b2 in find_data (name=0x607260 "a/kernel/power/swap.c") at
diffstat.c:350
#3  0x0000000000402068 in do_file (fp=0x605010) at diffstat.c:930
#4  0x0000000000402df7 in main (argc=2, argv=0x7fffea0f6628) at diffstat.c:1487
#5  0x00002aaaaace6aa4 in __libc_start_main () from /lib64/libc.so.6
#6  0x0000000000400fd9 in _start ()

Comment 1 Dave Jones 2006-08-01 23:02:12 UTC
Created attachment 133452 [details]
the patch in question.

Comment 2 Tim Waugh 2007-01-15 12:35:38 UTC
This seems to be fixed in 1.43.


Note You need to log in before you can comment on or make changes to this bug.