Re: how to debug (and fix) mutt?
On 2006-02-24, jurriaan@xxxxxxxxxxxxxxxxxxxxxx wrote:
> From: Bram Mertens <bram-mertens@xxxxxxxx>
> Date: Fri, Feb 24, 2006 at 06:47:09PM +0100
> >
> > I'm not used to gdb so I may still be missing something, if so please
> > let me know.
> >
> Have you tried strace ?
>
> strace -o large_mutt_log.log mutt <blablabla>
>
> then post the last 100 lines of large_mut_log.log - perhaps that will
> enlighten some gurus here.
Here's the output:
write(1, "\33[?25l", 6) = 6
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
write(1, "\r\33[37m\33[40m 6 r + 02-12-24 11:"..., 234) = 234
rt_sigaction(SIGINT, {0x80acd20, [], 0}, NULL, 8) = 0
gettimeofday({1140814939, 323122}, NULL) = 0
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 600000) = 1
gettimeofday({1140814939, 741132}, NULL) = 0
read(0, "*", 1) = 1
rt_sigaction(SIGINT, {0x80acd20, [], SA_RESTART}, NULL, 8) = 0
write(1, "\33[?12l\33[?25h", 12) = 12
time(NULL) = 1140814939
select(4, [3], NULL, NULL, {0, 0}) = 0 (Timeout)
time(NULL) = 1140814939
time(NULL) = 1140814939
time(NULL) = 1140814939
write(1, "\33[?25l", 6) = 6
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
time(NULL) = 1140814939
write(1, "\33[2;3H\33[37m\33[40m97 + 05-11-23 "..., 2800) = 2800
write(1, "40mt\33[0m\33(B\33[31m\33[40m>\33[37m\33[40m"..., 913) = 913
rt_sigaction(SIGINT, {0x80acd20, [], 0}, NULL, 8) = 0
gettimeofday({1140814939, 754689}, NULL) = 0
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 600000) = 1
gettimeofday({1140814940, 686122}, NULL) = 0
read(0, "m", 1) = 1
rt_sigaction(SIGINT, {0x80acd20, [], SA_RESTART}, NULL, 8) = 0
write(1, "\33[?12l\33[?25h", 12) = 12
gettimeofday({1140814940, 686394}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 84987}, ru_stime={0, 31995}, ...}) = 0
time(NULL) = 1140814940
times({tms_utime=8, tms_stime=3, tms_cutime=0, tms_cstime=0}) = 429973999
gettimeofday({1140814940, 686519}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 84987}, ru_stime={0, 31995}, ...}) = 0
time(NULL) = 1140814940
times({tms_utime=8, tms_stime=3, tms_cutime=0, tms_cstime=0}) = 429973999
send(3, "\27\3\1\0\300\236\n\205\35\240\177\256w\363\220\222C\1"..., 197, 0) =
197
recv(3, "\27\3\1\0p", 5, 0) = 5
recv(3, "O\36\320\277\302\351\303U|\300\16\266\317\254\4\314/\v"..., 111, 0) =
111
recv(3, "w", 1, MSG_PEEK) = 1
gettimeofday({1140814940, 688761}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 84987}, ru_stime={0, 31995}, ...}) = 0
time(NULL) = 1140814940
times({tms_utime=8, tms_stime=3, tms_cutime=0, tms_cstime=0}) = 429974000
gettimeofday({1140814940, 688896}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 84987}, ru_stime={0, 31995}, ...}) = 0
time(NULL) = 1140814940
times({tms_utime=8, tms_stime=3, tms_cutime=0, tms_cstime=0}) = 429974000
recv(3, "w", 1, 0) = 1
time(NULL) = 1140814940
time(NULL) = 1140814940
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
--
# Mertens Bram "M8ram" <bram-mertens@xxxxxxxx> Linux User #349737 #
# debian testing kernel 2.6.15-1-686 i686 1024MB RAM #
# 22:03:10 up 5 days, 4:58, 1 user, load average: 0.00, 0.00, 0.00 #