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

Help debugging rzip_2.0-2 FTBFS on hppa



Hi debian-hppa,

I'm maintaining rzip, an updated version of which FTBFS on hppa [1] with
the error message:

gcc -I. -I. -Wall -g -O3 -c main.c -o main.o
main.c: In function `main':
main.c:331: internal compiler error: Segmentation fault


2.0-1 built fine without any warnings; the difference between the two
'main.c' files centers around an asprintf statement [2].  The only
included header file, 'rzip.h', was not changed.  I've searched around
and have not found any other mention of an incident like this, and am
wondering if it's a bug with gcc on hppa.

I am not a DD and do not have access to a PA-RISC machine.  Would
anyone on this list be willing to help me troubleshoot this?  I'd like
to see if it fails with the same error when it's compiled with -O2 or
without an -O flag.  If neither of those options produces better
results, I'd like to submit a bug report and would need the
preprocessed main.i.

Thanks for your time,

Alec

[1] http://buildd.debian.org/fetch.php?&pkg=rzip&ver=2.0-2&arch=hppa&stamp=1093191324&file=log&as=raw
[2] Diff:
--- main.c      2004-02-12 05:01:02.000000000 -0500
+++ main.c      2004-07-11 12:53:47.000000000 -0400
@@ -209,13 +209,7 @@
        if (control->outname) {
                control->outfile = strdup(control->outname);
        } else {
-               control->outfile = malloc(strlen(control->infile) + 
-						 strlen(control->suffix) + 1);
-               if (!control->outfile) {
-                       fatal("Failed to allocate outfile name\n");
-               }
-               strcpy(control->outfile, control->infile);
-               strcat(control->outfile, control->suffix);
+               asprintf(&control->outfile, "%s%s", control->infile, control->suffix);
        }

        fd_in = open(control->infile,O_RDONLY);

Attachment: signature.asc
Description: Digital signature


Reply to: