From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 Description of problem: ttcp crashes when run on IA64 This is a problem already know and reported against Redhat 7.2 in bug #80050 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=80050, but still persists in FC3. ttcp.c 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 malloc issue + polished ttcp to get a clean compile (tested on FC3/i686, debian GNU/Linux on IA64, FreeBSD 4.10). Version-Release number of selected component (if applicable): ttcp-1.12-10 How reproducible: Always Steps to Reproduce: 1. compile ttcp.c on IA64 cc -o ttcp -g -Wall ttcp.c 2. run ttcp (transmit, UDP, seed, source a pattern, verbose, destination=localhost) ./ttcp -t -u -s -v 127.0.0.1 3. Actual Results: ttcp core dumps (in function pattern) Expected Results: ttcp starts measuring network throughput Additional info:
Created attachment 110139 [details] fix the malloc issue + polish code (clean compile)
Thanks, it goes to ttcp-1.12-11