Would the following help to debug the libarchive failure to build on
Alpha and sh4?
On Alpha I have been able to build libarchive and run test program
libarchive_test under gdb The following occurs:
(gdb) set args 25
(gdb) run
Starting program:
/home/mjc/debian/libarchive/libarchive-2.8.5/libarchive_test 25
[Thread debugging using libthread_db enabled]
If tests fail or crash, details will be in:
/tmp/libarchive_test.2011-10-26T21.26.55-000
Reference files will be read from:
/home/mjc/debian/libarchive/libarchive-2.8.5/libarchive/test
Exercising: libarchive 2.8.5
25: test_read_compress_program
Program received signal SIGPIPE, Broken pipe.
0x000002000036bc08 in write () from /lib/alpha-linux-gnu/libc.so.6.1
(gdb) bt full
#0 0x000002000036bc08 in write () from /lib/alpha-linux-gnu/libc.so.6.1
No symbol table info available.
#1 0x000000012000f104 in child_read (buf_len=<optimized out>,
buf=<optimized out>,
self=<optimized out>) at
libarchive/archive_read_support_compression_program.c:332
ret = <optimized out>
avail = 93
#2 program_filter_read (self=0x1247fb870, buff=<optimized out>)
at libarchive/archive_read_support_compression_program.c:426
state = 0x1247fb910
bytes = <optimized out>
total = 0
p = 0x1247fb950 '`' <repeats 27 times>,
"\"XO+B]`\nM3&]N9TQI;FL", '`' <repeats 49 times>, "\nM", '`' <repeats 60
times>, "\nM```````@(\"`@(#`@`\"`@(\"`@,\"``(\"`@(\"`P(``@"...
#3 0x0000000120008d00 in __archive_read_filter_ahead
(filter=0x1247fb870, min=1, avail=0x11fa62ee0)
at libarchive/archive_read.c:1018
bytes_read = 32
tocopy = <optimized out>
#4 0x0000000120009fa8 in build_stream (a=<optimized out>) at
libarchive/archive_read.c:381
i = 8
best_bid = 32
best_bidder = 0x0
avail = <optimized out>
#5 archive_read_open2 (_a=0x1247fab20, client_data=<optimized out>,
client_opener=<optimized out>,
client_reader=<optimized out>, client_skipper=<optimized out>,
client_closer=<optimized out>)
at libarchive/archive_read.c:340
e = <optimized out>
#6 0x000000012000d1e8 in archive_read_open_memory2 (a=0x1247fab20,
buff=<optimized out>, size=93,
read_size=93) at libarchive/archive_read_open_memory.c:84
No locals.
#7 0x000000012005254c in test_read_compress_program ()
at libarchive/test/test_read_compress_program.c:55
ae = 0x0
a = <optimized out>
#8 0x000000012003c908 in test_run (i=<optimized out>,
tmpdir=0x11fa630e8 "/tmp/libarchive_test.2011-10-26T21.26.55-000")
at libarchive/test/main.c:1708
logfilename =
"test_read_compress_program.log\000\000\260\240\177$\001\000\000\000r\323\t
\001\000\000\000\000\000@@\000\000\000\000\000 \000\000\002\000H\004"
failures_before = 0
#9 0x000000012003d110 in main (argc=<optimized out>, argv=0x11fa63660)
at libarchive/test/main.c:2086
i = 25
tests_run = 0
tests_failed = 0
now = 1319617615
refdir_alloc = <optimized out>
progname = 0x11fa638bb "libarchive_test"
tmp = <optimized out>
option_arg = <optimized out>
p = <optimized out>
tmpdir =
"/tmp/libarchive_test.2011-10-26T21.26.55-000\000\002\000\000@\023\003\000\000\002\000\000\211\257D\000\000\002\000\000\370\253)\000\000\002\000\000ȓD\000\000\002\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\002\000\000\000\000\000\000\001\000\000\000P2\246\037\001\000\000\000h\323(\000\000\002\000\000`2\246\037\001\000\000\000\370\364(\000\000\002\000\000\000\000\000\---Type
<return> to continue, or q <return> to quit---
000\002\000\000\001\022\000\001`\204\240\204\004h\235(\000\000\002\000\000\200\301(\000\000\002\000\000@<\003\000\000\002\000\000\377\377\377\377\000\000\000\000\000\000\000\360\000\000\000\000\233\361\001\000\000\002\000\000\204\277\304\002\000\000\000\000@2\246\037\001\000\000\000\027",
'\000' <repeats 11 times>...
tmpdir_timestamp =
"2011-10-26T21.26.55\000\000\002\000\000\r\000\000\000\000\000\000\000\000`D\000\000\002\000\000l\276\000\000\000\002\000\000)+\000
\001\000\000\000xqD\000\000\002\000\000\320\064\246\037\001\000\000\000\bR\003\000\000\002\000\000pU\003\000\000\002\000\000.N=\366\000\000\000\000
3\246\037\001", '\000' <repeats 11 times>,
"2\t\000\000\000\000\000\000xqD\000\000\002\000\000@\023\003\000\000\002\000\000)+\000
\001\000\000\000\370\253)\000\000\002\000\000\000\030\000
\001\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\000\000\000\360\000\000\000\000\240\063\246\037\001\000\000\000\060\236)\000\000\002\000\000\200\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000"...
Cheers
Michael.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]