Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106901 - net-irc/bnc-2.9.3-r1/r2 segfaults on amd64 after connect
Summary: net-irc/bnc-2.9.3-r1/r2 segfaults on amd64 after connect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 10:23 UTC by Marcus D. Hanwell (RETIRED)
Modified: 2005-10-08 05:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bnc-pointer.patch (bnc-pointer.patch,402 bytes, patch)
2005-09-22 10:29 UTC, Marcus D. Hanwell (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus D. Hanwell (RETIRED) gentoo-dev 2005-09-22 10:23:03 UTC
I have been testing bnc-2.9.3-r1 and r2 on amd64. On hardened I got the error 
'bnc: stack smashing attack in function send_queued()' whenever I connected, 
and on the normal amd64 profile I just got a silent segfault of the bnc 
process. Jim Laflin (one of the amd64 ATs) has also confirmed this bug, and 
could workaround it by replacing econf with a ./configure call - not sure why 
that worked. 
 
I have patched the source file as it was a pointer issue, and the patched 
version seems to work well. Not sure how this got keyworded and stabled with 
this bug though. Attaching my patch in a second.
Comment 1 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-09-22 10:29:07 UTC
Created attachment 69017 [details, diff]
bnc-pointer.patch

This is patched against 2.9.4 as I thought I would try the latest version
before patching. It will probably apply against 2.9.3, but is a very simple
patch anyway. This has cleared up the compilation warnings, and seems to have
solved the segfaulting. It could use more testing though.
Comment 2 Jim Laflin 2005-09-22 13:11:30 UTC
Patch works perfectly fine.

Jim
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-10-08 05:12:45 UTC
i was so free to stick the patch into portage and rekeyword