FreeBSD Bugzilla – Bug 154483
[patch] devel/cgdb -- fix segfault on amd64
Last modified: 2011-02-03 13:50:07 UTC
A missing declaration of void *cgdb_malloc(size_t) makes the compiler assume that the function return int, thus truncating the returned 64-bit pointer to 32 bits.
This causes the returned malloc'd pointer to point to an invalid location, thus causing the seg-fault. This has been discussed with one of the authors on IRC, a fix will be included in the next version upstream. I think it is important nonetheless to include a patch immediately to prevent systematic segfaults on amd64.
Fix: Add this patch.
Patch attached with submission follows:
How-To-Repeat: Run cgdb on amd64.
Over to maintainer (via the GNATS Auto Assign Tool)
gahr 2011-02-03 13:43:10 UTC
FreeBSD ports repository
devel/cgdb Makefile distinfo
- Fix a segfault at application start on amd64
- Bump PORTREVISION
- Remove MD5 checksum from distinfo
Submitted by: gahr
Approved by: clsung (maintainer)
Feature safe: yes
Revision Changes Path
1.21 +1 -0 ports/devel/cgdb/Makefile
1.6 +0 -1 ports/devel/cgdb/distinfo
1.1 +11 -0 ports/devel/cgdb/files/patch-rline.c (new)
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"