From nobody@FreeBSD.org  Mon May 19 21:55:44 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6AEEB4D2
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 May 2014 21:55:44 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 582312C3E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 May 2014 21:55:44 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4JLthrA021037
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 May 2014 21:55:43 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4JLthOe021036;
	Mon, 19 May 2014 21:55:43 GMT
	(envelope-from nobody)
Message-Id: <201405192155.s4JLthOe021036@cgiserv.freebsd.org>
Date: Mon, 19 May 2014 21:55:43 GMT
From: Richard Kettlewell <rjk@greenend.org.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sccs create segfaults
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: oliver@fromme.com

>Number:         189975
>Category:       ports
>Synopsis:       devel/cssc: sccs create segfaults
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 19 22:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Tue May 20 14:50:01 UTC 2014
>Originator:     Richard Kettlewell
>Release:        10
>Organization:
>Environment:
FreeBSD neutraloid 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
[richard@neutraloid ~]$ mkdir test
[richard@neutraloid ~]$ cd test
[richard@neutraloid ~/test]$ touch one
[richard@neutraloid ~/test]$ mkdir SCCS
[richard@neutraloid ~/test]$ sccs create one

one:
sccs: admin: Signal 11 (core dumped)

[richard@neutraloid ~/test]$ gdb /usr/local/libexec/cssc/admin admin.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `admin'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc++.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc++.so.1
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcxxrt.so.1
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000800b02e96 in __cxa_begin_catch () from /lib/libcxxrt.so.1
(gdb) bt
#0  0x0000000800b02e96 in __cxa_begin_catch () from /lib/libcxxrt.so.1
#1  0x0000000000404399 in ?? ()
#2  0x00007fffffffd330 in ?? ()
#3  0x0000000000404389 in ?? ()
Previous frame identical to this frame (corrupt stack?)

[richard@neutraloid ~/test]$ pkg info cssc
cssc-1.3.0
Name           : cssc
Version        : 1.3.0
Installed on   : Mon May 19 22:32:41 BST 2014
Origin         : devel/cssc
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : devel
Licenses       : GPLv3
Maintainer     : oliver@fromme.com
WWW            : http://www.gnu.org/software/cssc/
Comment        : Workalike for the source code control system SCCS
Options        :
        BINARY         : on
Flat size      : 1.21MiB
Description    :
CSSC is the GNU Project's replacement for SCCS.  SCCS is a proprietary suite
of tools which is provided with most commercial versions of Unix.  The purpose
behind CSSC is to provide a work-alike for SCCS which can be used on the
various Free versions of Unix.

SCCS was the only major form of source code control on Unix platforms for many
years, until RCS came along.  SCCS was an effective method for small projects,
but these days it is less popular, particularly for projects involving large
numbers of files.  A certain amount of old software is still in SCCS form, and
CSSC is designed to retrieve that software.  Once retrieved, it is recommended
to bring the source under the control of a more modern source code control
system, such as git or Apache Subversion.

However, SCCS (and CSSC) is still perfectly adequate for small projects.  For
example, if you are familiar with SCCS, it is not unreasonable to control the
files in /etc and /usr/local/etc on your private FreeBSD machine with CSSC.

WWW: http://www.gnu.org/software/cssc/

>How-To-Repeat:
[richard@neutraloid ~]$ mkdir test
[richard@neutraloid ~]$ cd test
[richard@neutraloid ~/test]$ touch one
[richard@neutraloid ~/test]$ mkdir SCCS
[richard@neutraloid ~/test]$ sccs create one

one:
sccs: admin: Signal 11 (core dumped)

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue May 20 13:54:43 UTC 2014 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189975 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue May 20 13:55:35 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189975 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: oliver@fromme.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/189975: devel/cssc: sccs create segfaults
Date: Tue, 20 May 2014 13:55:34 UT

 Maintainer of devel/cssc,
 
 Please note that PR ports/189975 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/189975
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Oliver Fromme <oliver@fromme.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/189975: devel/cssc: sccs create segfaults
Date: Tue, 20 May 2014 16:18:28 +0200 (CEST)

 Unfortunately I cannot reproduce the problem under FreeBSD 9.x
 (I've tried both i386 and amd64) with gcc as system compiler:
 
         $ mkdir test
         $ cd test
         $ touch one
         $ mkdir SCCS
         $ sccs create one
         
         one:
         admin: warning: SCCS/s.one: No id keywords.
         get: warning: SCCS/s.one: No id keywords.
         1.1
         0 lines
         $ 
 
 Unfortunately I do not have a FreeBSD 10 system (yet), so I'm
 not able to debug this.  If someone else can look into this,
 please be my guest.
>Unformatted:
