Hello again. Sorry for the late reply - I had made squirrelmail unavailible
for my users after I sent my post (they have an alternative webmail). I was
thinking I could reproduce the error myself, but that failed. So I gave my
users access again and had to wait for it to "hang" again...
I did nothing special when compiling the bin (./configure --prefix ... &&
make && make install). I'm not 100 percent sure if I did a install-strip,
but I believe not. The binary is still the original I made first - I can try
to remake it if you like.
Anyway, here's a few gdb outputs (they look very similar to me at least):
Regards,
Lasse Danielsen
#> top
load averages: 4.15, 3.86, 3.76
12:32:12
74 processes: 4 running, 70 idle
CPU states: 99.2% user, 0.0% nice, 0.0% system, 0.8% interrupt, 0.0%
idle
Memory: Real: 81M/157M act/tot Free: 27M Swap: 97M/256M used/tot
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
4305 vpopmail 61 0 9936K 3892K run - 53:59 31.84% bincimapd
32007 vpopmail 63 0 9936K 3828K run - 50:06 31.01% bincimapd
18614 vpopmail 60 0 9936K 3852K run - 50:32 30.62% bincimapd
#> gdb /var/qmail/bincimap/bin/bincimapd 4305
GNU gdb 4.16.1
Attaching to program `/var/qmail/bincimap/bin/bincimapd', process 4305
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libstdc++.so.31.0...done.
Reading symbols from /usr/lib/libm.so.1.0...done.
Reading symbols from /usr/lib/libc.so.29.0...done.
0x40247e62 in memcpy ()
(gdb) bt
#0 0x40247e62 in memcpy ()
#1 0x1a8000 in ?? ()
#2 0x401a99bd in __overflow ()
#3 0x401a9e1d in _IO_default_xsputn ()
#4 0x401a3b98 in streambuf::xsputn ()
#5 0x401a1ec3 in ostream::write ()
#6 0x733be in
__ls__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_R7ostre
amRCt12basic_string3ZX01ZX11ZX21_R7ostream ([EMAIL PROTECTED], [EMAIL PROTECTED]) at
/usr/include/g++/std/bastring.cc:470
#7 0x735a4 in
__ls__H1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp
late2b0i0_Q24Binc2IORCX01_RQ24Binc2IO (
this=0x184000, [EMAIL PROTECTED]) at convert.h:295
#8 0x71419 in Binc::MaildirMessage::printBody (this=0x19c3bc) at
maildirmessage.cc:848
#9 0xec0d2 in Binc::FetchOperator::process (this=Error accessing memory
address 0x0: Invalid argument.
) at operator-fetch.cc:280
#10 0x16580 in main (argc=1, argv=0xcfbfd164) at bincimapd.cc:147
-
#> gdb /var/qmail/bincimap/bin/bincimapd 32007
GNU gdb 4.16.1
Attaching to program `/var/qmail/bincimap/bin/bincimapd', process 32007
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libstdc++.so.31.0...done.
Reading symbols from /usr/lib/libm.so.1.0...done.
Reading symbols from /usr/lib/libc.so.29.0...done.
0x40247e62 in memcpy ()
(gdb) bt
#0 0x40247e62 in memcpy ()
#1 0x1a8000 in ?? ()
#2 0x401a99bd in __overflow ()
#3 0x401a9e1d in _IO_default_xsputn ()
#4 0x401a3b98 in streambuf::xsputn ()
#5 0x401a1ec3 in ostream::write ()
#6 0x733be in
__ls__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_R7ostre
amRCt12basic_string3ZX01ZX11ZX21_R7ostream ([EMAIL PROTECTED], [EMAIL PROTECTED]) at
/usr/include/g++/std/bastring.cc:470
#7 0x735a4 in
__ls__H1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp
late2b0i0_Q24Binc2IORCX01_RQ24Binc2IO (
this=0x184000, [EMAIL PROTECTED]) at convert.h:295
#8 0x71419 in Binc::MaildirMessage::printBody (this=0x19c3bc) at
maildirmessage.cc:848
#9 0xec0d2 in Binc::FetchOperator::process (this=Error accessing memory
address 0x0: Invalid argument.
) at operator-fetch.cc:280
#10 0x16580 in main (argc=1, argv=0xcfbfd108) at bincimapd.cc:147
-
#> gdb /var/qmail/bincimap/bin/bincimapd 18614
Attaching to program `/var/qmail/bincimap/bin/bincimapd', process 18614
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libstdc++.so.31.0...done.
Reading symbols from /usr/lib/libm.so.1.0...done.
Reading symbols from /usr/lib/libc.so.29.0...done.
0x40247e62 in memcpy ()
(gdb) bt
#0 0x40247e62 in memcpy ()
#1 0x1a8000 in ?? ()
#2 0x401a99bd in __overflow ()
#3 0x401a9e1d in _IO_default_xsputn ()
#4 0x401a3b98 in streambuf::xsputn ()
#5 0x401a1ec3 in ostream::write ()
#6 0x733be in
__ls__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_R7ostre
amRCt12basic_string3ZX01ZX11ZX21_R7ostream ([EMAIL PROTECTED], [EMAIL PROTECTED]) at
/usr/include/g++/std/bastring.cc:470
#7 0x735a4 in
__ls__H1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp
late2b0i0_Q24Binc2IORCX01_RQ24Binc2IO (
this=0x184000, [EMAIL PROTECTED]) at convert.h:295
#8 0x71419 in Binc::MaildirMessage::printBody (this=0x19c3bc) at
maildirmessage.cc:848
#9 0xec0d2 in Binc::FetchOperator::process (this=Error accessing memory
address 0x0: Invalid argument.
) at operator-fetch.cc:280
#10 0x16580 in main (argc=1, argv=0xcfbfd170) at bincimapd.cc:147
----------------------------------------------------------------------------
---
I don't understand how this could be, as the fetchoperator should abort if
this=0. Did you compile with debug info first, then run gdb, or did you
already have an unstripped binary?
If you compiled and then attached, the backtrace from gdb may be wrong.
In any case, could you try again with a gdb backtrace, so that we can
check if this breakpoint is consistent or not?
Thanks for the help,
Andy
--
Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP | "It is better not to do something
| than to do it poorly."