Bug 91812 - [patch] irssi crashes on amd64 with new malloc
Summary: [patch] irssi crashes on amd64 with new malloc
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-15 03:30 UTC by Giorgos Keramidas
Modified: 2006-01-17 04:50 UTC (History)
0 users

See Also:


Attachments
file.diff (449 bytes, patch)
2006-01-15 03:30 UTC, Giorgos Keramidas
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Giorgos Keramidas freebsd_committer freebsd_triage 2006-01-15 03:30:03 UTC
    The new malloc implementation of CURRENT exposes a bug in irssi's
    source.

Fix: Add the following patch to our local irssi patches
    collection.

    The missing prototype causes the function to default to a return
    type of `int', which is not large enough to hold pointer values on
    amd64.  This results in crashes when irssi tries to access addresses
    whose high bit has been trimmed (i.e. 0x803095c3 becomes 0x3095c3).

%%%
How-To-Repeat: 
    Build irc/irssi on a relatively recent CURRENT snapshot
    and type "/nick ".  The space character shouldn't appear
    at all and irssi will dump core.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2006-01-15 09:01:02 UTC
State Changed
From-To: open->closed

Committed, thanks! Please make sure to submit the patch to irssi developers, too!
Comment 2 Giorgos Keramidas freebsd_committer freebsd_triage 2006-01-17 04:43:18 UTC
Adding to the audit trail, for anyone doing future imports of
irssi releases:

A bug has been filed with the same patch in irssi's bug
tracking system.  The bug report can be accessed at:

    http://bugs.irssi.org/index.php?do=details&id=367