forwarded 667443 a...@gedanken.demon.co.uk
thanks

Greetings!  Here is the other issue, a segfault on input function
pointer definitions.

Any thoughts most appreciated!

Take care,
=============================================================================
Subject: Bug#667443: cxref dumps core with function def with function pointer
Reply-To: John Vogel <jvog...@stny.rr.com>, 667...@bugs.debian.org
Resent-From: John Vogel <jvog...@stny.rr.com>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: jvog...@stny.rr.com, Camm Maguire <c...@debian.org>
Resent-Sender: ow...@bugs.debian.org
X-Spam-Status: No, score=-8.2 required=4.0 tests=BAYES_00,FOURLA,
        FVGT_m_MULTI_ODD,HAS_PACKAGE,HELO_LH_HOME,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,
        RDNS_DYNAMIC,SPF_SOFTFAIL,XMAILER_REPORTBUG,X_DEBBUGS_CC autolearn=ham
        version=3.3.1-bugs.debian.org_2005_01_02
Content-Type: multipart/mixed; boundary="===============2027944269885848456=="
From: John Vogel <jvog...@stny.rr.com>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Date: Wed, 04 Apr 2012 02:09:25 -0400

[1:text/plain Hide]
Package: cxref
Version: 1.6c-3
Severity: normal

Greetings,

When cxref encounters a function definition that contains a pointer to function
in the arguments, it segfaults. I have included a smal test file that
demonstrates what I'm seeing. The command line I'm using to reproduce this is:

cxref -xref -CPP "-E -CC -dD -dI" cxref-bomb.c

Trying to use cxref-cpp prevents the segfault, but output is empty except for
the default header from cxref. Switching the comment from the int (*f)(int,int)
to the int f is enough to get cxref through without segfaulting.

I've spent some time trying to get a handle on the fault, but I seems to lead
to the lexer or more likely the parser. If I get some time I'll try to dig
deeper on this. Maybe later this month.

Thanks for your time and efforts

-John



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (800, 'testing'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cxref depends on:
ii  debconf [debconf-2.0]  1.5.42
ii  gcc                    4:4.6.3-4
ii  libc6                  2.13-27

cxref recommends no packages.

Versions of packages cxref suggests:
ii  cxref-doc                1.6c-3
ii  iceweasel [www-browser]  10.0.3esr-3
ii  lynx-cur [www-browser]   2.8.8dev.12-2
ii  texlive-binaries         2011.20120328-1

-- Configuration Files:
/etc/cxref/config changed [not included]
/etc/cxref/cxref-cpp.defines changed [not included]
[2:text/x-c Show Save:cxref-bomb.c (537B)]
=============================================================================

-- 
Camm Maguire                                        c...@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to