Re: [vchkpw] Segmentation Fault with new Kernel

2006-05-12 Thread Tom Collins

On May 11, 2006, at 4:51 AM, Bill Gradwohl wrote:

I've got an older vpopmail (5.4.10) that now seg faults on vadduser.

This started after a kernel upgrade on Fedora Core 4. I recompiled the
application, thinking it was a library issue but that did not solve the
problem.

strace shows :
stat64(/home/vpopmail/domains/private.ycc/1/qqq, {st_mode=S_IFDIR|
0750, st_size=4096, ...}) = 0
open(/home/vpopmail/domains/private.ycc/1/qqq, O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


What are you left with in private.ycc/1/qqq?  Has it created the 
Maildir yet?  The subdirectories?  Can you provide some more lines from 
the trace (maybe 30 or so) to help track down where it is in the code?


Also, cdb or one of the database backends?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] Segmentation Fault with new Kernel

2006-05-12 Thread Bill Gradwohl
On Fri, 2006-05-12 at 08:11 -0700, Tom Collins wrote:
 What are you left with in private.ycc/1/qqq?  Has it created the 
 Maildir yet?  The subdirectories?  Can you provide some more lines from 
 the trace (maybe 30 or so) to help track down where it is in the code?
 
 Also, cdb or one of the database backends?

After some more digging, I believe I discovered a bug in glibc. The code
that uncovered it was code I added to vpopmail on my own setup, so it
probably has no impact on anyone else. 

I added 2 calls to ftw() and its been working for over a year. The
latest kernel upgrades cause the 2nd ftw to seg fault immediately
without ftw ever calling my support function. I bugzilla'd it.

Sorry for the false alarm.

-- 
Bill Gradwohl