Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117955 - net-analyze/knocker-0.7.1 works on amd64 with a patch
Summary: net-analyze/knocker-0.7.1 works on amd64 with a patch
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 16:22 UTC by Ruben G. Martin
Modified: 2006-01-16 12:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben G. Martin 2006-01-05 16:22:51 UTC
net-analyze/knocker-0.7.1 crashes on the AMD64 architecture when its config file (~/.knocker/...) already exists:

  ruben@oberon ~/local/src/knocker-0.7.1 $ src/knocker -H localhost
  *** glibc detected *** double free or corruption (out): 0x00000000006c6677 ***
  Aborted

The following patch seems to be fixing it:

diff -ur knocker-0.7.1/src/knocker_conf.c knocker-0.7.1-diff/src/knocker_conf.c
--- knocker-0.7.1/src/knocker_conf.c    2002-05-24 01:58:45.000000000 +0200
+++ knocker-0.7.1-diff/src/knocker_conf.c       2006-01-06 00:03:04.000000000 +0100
@@ -234,7 +234,11 @@

   if (!_isblank (*tmpp) || *tmpp != KNOCKER_OPTION_TOKEN)
     {
-      free (tmpp);
+           /* free (tmpp); this crashes knocker in AMD64 */
+           /* with a very ugly */
+           /* "*** glibc detected *** double free or corruption (out): */
+           /*                                  0x00000000006c6677 ***" */
+           /* error */
       return 0;
     }
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-01-16 12:09:45 UTC
This package has no amd64 or ~amd64 keyword, so you shouldn't be astonished that it breaks. Beside that, it breaks in another line for me (the return 1; at the end), the free() you are commenting out is never executed here. There seem to be more issues, there is already a comment there stating that free(p) also produces a segfault, so this is definitively no gentoo-related issue. Please report it upstream.