Your message dated Tue, 09 Sep 2014 18:33:36 +0000
with message-id <[email protected]>
and subject line Bug#667443: fixed in cxref 1.6e-1
has caused the Debian Bug report #667443,
regarding cxref dumps core with function def with function pointer
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
667443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667443
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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]
/* cxref-bomb.c */
#include <stdio.h>

int
f1 (a, b)
    int a, b;
{
    return a + b;
}

int
f2 (a, b)
    int a, b;
{
    return a * b;
}

int
f3 (a, b, f)
    int a, b;
    int (*f)(int, int);
/*    int f;*/
{
    return f(a, b);
}

int
main (argc, argv)
    int argc;
    char *argv[];
{
    int d = 1, e =2;
    int g, h;
    int (*fp)(int,int);

/*  g = f3(d, e, f1);
    h = f3(d, e, f2);*/


    fp = f1;
    g = fp(d, e);
    fp = f2;
    h = fp(d, e);

    printf ("d=%d e=%d d+e=g=%d d*e=h=%d\n", d, e, g, h);
    return 0;
}

--- End Message ---
--- Begin Message ---
Source: cxref
Source-Version: 1.6e-1

We believe that the bug you reported is fixed in the latest version of
cxref, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Camm Maguire <[email protected]> (supplier of updated cxref package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 09 Sep 2014 14:14:05 -0400
Source: cxref
Binary: cxref cxref-doc cxref-emacs
Architecture: source all amd64
Version: 1.6e-1
Distribution: unstable
Urgency: high
Maintainer: Camm Maguire <[email protected]>
Changed-By: Camm Maguire <[email protected]>
Description:
 cxref      - Generates LaTeX and HTML documentation for C programs
 cxref-doc  - Generates LaTeX and HTML documentation for C programs
 cxref-emacs - Generates LaTeX and HTML documentation for C programs
Closes: 667443 715771 753998
Changes:
 cxref (1.6e-1) unstable; urgency=high
 .
   * New upstream release
   * Bug fix: "please switch to emacs24", thanks to Gabriele Giacone
     (Closes: #753998).
   * Bug fix: "cxref dumps core with function def with function pointer",
     thanks to John Vogel (Closes: #667443).  Applied FAQ patch.
   * updated watch file
   * Bug fix: "[Mayhem] Bug report on cxref: cxref crashes with exit status
     139", thanks to Alexandre Rebert (Closes: #715771).
Checksums-Sha1:
 ac22ebe86fe35f659b2976d70e1efd984c64d940 1228 cxref_1.6e-1.dsc
 ba960883b40b8afe54aa7e2b9b0ec53501f2496f 381883 cxref_1.6e.orig.tar.gz
 d3d26b415a86bc8fb802782d4c7cd03ec1239134 29800 cxref_1.6e-1.debian.tar.xz
 21cedd4bbf144756e9b16568f727265dcca05696 523638 cxref-doc_1.6e-1_all.deb
 e289798373ceb9172f7c8cbf86e8081af8a6a0c8 16252 cxref-emacs_1.6e-1_all.deb
 4a5df0d022f00167eac96c460820e2270bf43fd3 421324 cxref_1.6e-1_amd64.deb
Checksums-Sha256:
 19c035463f009d7bf65cb9fe7cb12dbb16e1aefa782250462f074580ba001d67 1228 
cxref_1.6e-1.dsc
 21492210f9e1030e4e697f0d84f31ac57a0844e64c8fb28432001c44663242f2 381883 
cxref_1.6e.orig.tar.gz
 b17852f4d981a30f549106051200c53a802fce2aeaab0f4b5b83274845dcfe2b 29800 
cxref_1.6e-1.debian.tar.xz
 9448bf676628a24369ad351e57fcc4a26ab0efc7c9be3ff9a3985ab8294aaf77 523638 
cxref-doc_1.6e-1_all.deb
 9db73480b3f026ac2c7c59b33e4a0a84c3b44d39721c05ffad3f7b5192c8c665 16252 
cxref-emacs_1.6e-1_all.deb
 92cd9a6044cc36a595aaf86d7363d132c47a5e460824a60d15b5414f033f2ff3 421324 
cxref_1.6e-1_amd64.deb
Files:
 1b541365c9c3542bcc78dc37a2c6156f 523638 doc optional cxref-doc_1.6e-1_all.deb
 4217796723912d814321f7469aa15123 16252 editors optional 
cxref-emacs_1.6e-1_all.deb
 fb71b4e6a30bd3c1e93adf582f1ab1c8 421324 devel optional cxref_1.6e-1_amd64.deb
 db3c038aa94cd56205a545f978610a80 1228 devel optional cxref_1.6e-1.dsc
 f8c85c42515f7276abac940444c6ba77 381883 devel optional cxref_1.6e.orig.tar.gz
 32134f8bea88876d0d2d09e53a804c0b 29800 devel optional 
cxref_1.6e-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQPRLMACgkQczG1wFfwRdzW3ACfe2KeTPGLA73C1piT2WN3dbj0
zJ8AnRPNds8S03gTCAANF5fA0/8UO4Gr
=8xvz
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to