pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47917: shells/posh segmentation faults



>Number:         47917
>Category:       pkg
>Synopsis:       shells/posh segmentation faults
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 11 15:55:00 +0000 2013
>Originator:     Makoto Fujiwara
>Release:        NetBSD 6.1
>Organization:
KINU Corporation
>Environment:
        
        
System: NetBSD modena 6.1 NetBSD 6.1 (GENERIC) amd64
Architecture: x86_64
Machine: amd64
>Description:
        shells/posh will Segmentation fault just after invocation.
        Thanks ryoon@ for reporting this problem.
>How-To-Repeat:
        (cd /usr/pkgsrs/shells/posh; make package-install)
        posh
>Fix:
Index: shells/posh/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/shells/posh/distinfo,v
retrieving revision 1.6
diff -u -r1.6 distinfo
--- shells/posh/distinfo        10 Nov 2005 22:25:13 -0000      1.6
+++ shells/posh/distinfo        11 Jun 2013 15:51:14 -0000
@@ -5,3 +5,4 @@
 Size (posh_0.3.14.tar.gz) = 668729 bytes
 SHA1 (patch-aa) = bdd8ffb67ccd60064b0fb5bda7935001f6807380
 SHA1 (patch-ab) = 1e638fd21d7cab2e0a98c6383ca02e3f7acbd14f
+SHA1 (patch-main.c) = f2970c631b3ef43b642a5ab0909fdadf3567d17a
Index: shells/posh/patches/patch-main.c
===================================================================
RCS file: shells/posh/patches/patch-main.c
diff -N shells/posh/patches/patch-main.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ shells/posh/patches/patch-main.c    11 Jun 2013 15:51:14 -0000
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Avoid getting following warning, 
+  main.c: In function 'main':
+  main.c:205:15: warning: assignment makes pointer from integer without a cast
+and segfaults just after invocation on NetBSD/amd64 6.1
+
+--- main.c.orig        2004-06-09 00:51:50.000000000 +0900
++++ main.c     2013-06-12 00:40:13.000000000 +0900
+@@ -7,6 +7,7 @@
+ #include "sh.h"
+ #include "ksh_stat.h"
+ #include "ksh_time.h"
++#include "src/compat.h"
+ 
+ extern char **environ;
+ 

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index