Bug 80050
Summary: | ttcp crashes on ia64 because of missing malloc.h in source | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Geert Albert Smant <smant> | ||||
Component: | ttcp | Assignee: | Nalin Dahyabhai <nalin> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.2 | CC: | mencl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | ia64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-02-13 10:38:56 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Geert Albert Smant
2002-12-19 08:00:43 UTC
Created attachment 110012 [details]
fix malloc issue + polish source code (clean compile)
This bug was reported in Redhat 7.2, but still persists in FC3.
ttcp does not include stdlib.h, the right header to get malloc defined
(according to C99).
On IA64, sizeof(int) is 4 but sizeof(void *) is 8.
Thus, all allocated pointers are trimmed and ttcp core dumps.
In the attached patch, I have fixed this + polished ttcp to get a clean compile
(tested on FC3/i686, debian GNU/Linux on IA64, FreeBSD 4.10).
Please please, include this patch - although I acknowledge that IA64 is not
really supported by the Fedora Project now.
Fixed in -11, soon in FC devel. |