ports/125108: BitchX core dumps on AMD64

Chris Pet chrispetso at gmail.com
Mon Jun 30 01:40:02 UTC 2008


>Number:         125108
>Category:       ports
>Synopsis:       BitchX core dumps on AMD64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 30 01:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Chris Pet
>Release:        FreeBSD 7.0-STABLE AMD64
>Organization:
None
>Environment:
FreeBSD slappy.domain 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Jun 25 04:25:57 CDT 2008     root at .gateway.2wire.net:/usr/obj/usr/src/sys/chris  amd64

>Description:
BitchX 1.1-final and 1.2-SVN both coredump when loaded on a AMD64 based pc. I have tested this with a old patch named patch-amd64 which fixes the issue. Not sure why the patch was removed and also why the commit notes say some patches were removed as they were added to the branch. Any who the patch fixes the coredump this issue is irrelevant in the trunk version of BitchX.
>How-To-Repeat:
compile bitchx from ports on a AMD64 pc
>Fix:


Patch attached with submission follows:

diff -ur BitchX.orig/include/module.h BitchX/include/module.h
--- BitchX.orig/include/module.h	Fri Apr 11 03:09:07 2003
+++ include/module.h	Sun Jan  8 17:18:15 2006
@@ -15,7 +15,7 @@
 
 #include "struct.h"
 
-typedef int (*Function_ptr)();
+typedef long (*Function_ptr)();
 
 #ifdef WANT_DLL
 #ifdef HPUX
diff -ur BitchX.orig/include/modval.h BitchX/include/modval.h
--- BitchX.orig/include/modval.h	Fri Apr 11 03:09:07 2003
+++ include/modval.h	Sun Jan  8 17:18:15 2006
@@ -318,7 +318,7 @@
 #define show_window(x) ((void) (global[SHOW_WINDOW]((Window *)x)))
 #define get_status_by_refnum(x, y) ((char *) (global[GET_STATUS_BY_REFNUM]((unsigned int)x, (unsigned int)y)))
 #define get_visible_by_refnum(x) ((int) (global[GET_VISIBLE_BY_REFNUM]((char *)x)))
-#define get_window_by_desc(x) ((Window *) (global[GET_WINDOW_BY_DESC]((unsigned int)x)))
+#define get_window_by_desc(x) ((Window *) (global[GET_WINDOW_BY_DESC]((unsigned long)x)))
 #define get_window_by_refnum(x) ((Window *) (global[GET_WINDOW_BY_REFNUM]((unsigned int)x)))
 #define get_window_by_name(x) ((Window *) (global[GET_WINDOW_BY_NAME]((char *)x)))
 #define next_window(x, y) ((void) (global[FUNC_NEXT_WINDOW]((char)x, (char *)y)))
diff -ur BitchX.orig/source/screen.c BitchX/source/screen.c
--- BitchX.orig/source/screen.c	Thu Jul 31 09:01:08 2003
+++ source/screen.c	Sun Jan  8 17:18:18 2006
@@ -1377,8 +1377,8 @@
 {
 	if (!w)
 		w = current_window;
-	if (w->screen)
-		w->screen->cursor_window = w;
+/*	if (w->screen)
+		w->screen->cursor_window = w;*/
 }
 
 /*


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list