segfaults when executing quota command
craigwhite at azapple.com
Tue Apr 12 03:51:55 EDT 2005
On Mon, 2005-04-11 at 23:37 -0400, Derrick J Brashear wrote:
> On Mon, 11 Apr 2005, Craig White wrote:
> >>> thanks - I know not of these things - appreciate your patience with me.
> >>> (gdb) where
> >>> #0 0x00be1513 in _int_realloc () from /lib/tls/libc.so.6
> >>> #1 0x00be0156 in realloc () from /lib/tls/libc.so.6
> >>> #2 0x00c1b586 in glob_in_dir () from /lib/tls/libc.so.6
> >>> #3 0x00c1a7fc in glob () from /lib/tls/libc.so.6
> >>> #4 0x0808328e in mboxlist_findsub_alt ()
> >>> #5 0x0804baa0 in ?? ()
> >>> #6 0x0811b1e8 in ?? ()
> >>> #7 0xbfff8580 in ?? ()
> >>> #8 0x00000000 in ?? ()
> >>> indeed, it was not the only stack. There was no rest of the backtrace
> >>> unless you are asking for the stuff that came 'before' I executed '(gdb)
> >>> run -f' which I didn't include because I didn't think that it had
> >>> meaningful information but for completeness...
> >> no, you answered what i wanted to know, above. I need to look at the regex
> >> code in mboxlist_findsub_alt
> > ----
> > any progress here?
> Not especially. Having symbols would help. It's going to be something in
> foreach() in lib/cyrusdb_quotalegacy.c, though, since that's the only
> place you'd be using the system glob().
> I suppose, for simplicity, you can just add a
> printf("%s\n", quota_path);
> before and after
> /* strip off the qr specific path and replace with pattern */
> sprintf(strstr(quota_path, FNAME_QUOTADIR) + strlen(FNAME_QUOTADIR),
> "?/%s*", prefix);
> And see what 2 lines you get just before the crash, as a way of cheating.
OK - excuse my ignorance here please...
locate quotalegacy turns up nothing
I used invoca.ch srpms and did rpmbuild from them and never actually
compiled from source so I suspect that is why I can't locate it.
This is a whiteboxlinux 3 (RHEL 3 clone) - and I would take direction
here...should I install some symbol package for debugging or untar the
tarball - and compile after your suggested changes ? Which would be the
better course? I actually have this problem on my system (whiteboxlinux)
and a client system (RHEL 3 ES) but I would rather fool with this on my
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus