Summary: | vpopmail Segmentation Fault when adding a domain | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | bornsilly <m.purmer> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED NEEDINFO | ||
Severity: | critical | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
bornsilly
2004-01-04 08:26:45 UTC
is your /etc/vpopmail.conf correct? what's your 'emerge info' output and what version of vpopmail? My /etc/vpopmail.conf is setup proper, for both the reader as the writer i am able to login from the prompt with mysql. My emerge info is exactly as how this guide tells me to install it all together. http://forums.gentoo.org/viewtopic.php?t=111817&highlight=qmailctl But i am not sure if this is what you mean. qpkg -c -v vpopmail net-mail/vpopmail-5.2.1-r8 * /etc/vpopmail.conf !md5! 1/79 what does 'vdominfo' do ? what options did you give vadddomain ? I gave /var/vpopmail/bin/vadddomain hide-out.net vdominfo gives me :vdominfo domain: hide-out.net uid: 89 gid: 89 dir: /var/vpopmail/domains/hide-out.net Segmentation fault ok, could you compile with CFLAGS="-O0 -g" and FEATURES="debug nostrip" then enable coredumps ('ulimit -c 8000000') and use gdb on 'vdominfo' to get a backtrace? Removed VPOPMAIL and recompiled with the specified CCFLAGS and Feature but after running /var/vpopmail/bin/vadddomain it still segfaults. Running it in GDB gives me the following results: Starting program: /var/vpopmail/bin/vdominfo Warning: Cannot insert breakpoint -2. Error accessing memory address 0x225dc240: Input/output error. The same program may be running in another process. Running it without gdb will coredump after setting the specified ulimit. Can send ya the core file (632K) if you need it. do: gdb /full/path/to/vdominfo /full/path/to/corefile and type in 'bt'. include all the output from starting gdb up to the prompt at that point. it will have line numbers etc. no response from user, closing bug. I am having the same problem, mostly. It gives me segfaults when trying to add a new domain (there are already few added). root@ces01:/var/bind/pri# vadddomain daXXXide.ro Please enter password for postmaster: enter password again: Segmentation fault root@ces01:/var/bind/pri# The domain get created but cant use password. Strace shows the following: open("/var/qmail/users/assign.24178", O_RDWR|O_CREAT|O_TRUNC, 0666) = 6 open("/var/qmail/users/assign", O_RDWR) = 7 fstat(7, {st_mode=S_IFREG|0644, st_size=1202, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9e5f814000 read(7, "+ciuraru.eu-:ciuraru.eu:89:89:/va"..., 4096) = 1202 fstat(6, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9e5f813000 read(7, ""..., 4096) = 0 close(7) = 0 munmap(0x7f9e5f814000, 4096) = 0 write(6, "+ciuraru.eu-:ciuraru.eu:89:89:/va"..., 1272) = 1272 close(6) = 0 munmap(0x7f9e5f813000, 4096) = 0 rename("/var/qmail/users/assign.24178", "/var/qmail/users/assign") = 0 fcntl(5, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 close(5) = 0 chmod("/var/qmail/users/assign", 0644) = 0 vfork() = 24189 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 24189 --- SIGCHLD (Child exited) @ 0 (0) --- open("/var/qmail/control/rcpthosts", O_RDONLY) = 5 fstat(5, {st_mode=S_IFREG|0644, st_size=236, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9e5f814000 read(5, "ciuraru.eu\nrbs.com.ro\ncredexconsu"..., 4096) = 236 read(5, ""..., 4096) = 0 close(5) = 0 munmap(0x7f9e5f814000, 4096) = 0 open("/var/qmail/control/rcpthosts.lock", O_WRONLY|O_CREAT, 041) = 5 fcntl(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 open("/var/qmail/control/rcpthosts.24178", O_RDWR|O_CREAT|O_TRUNC, 0666) = 6 open("/var/qmail/control/rcpthosts", O_RDWR) = 7 fstat(7, {st_mode=S_IFREG|0644, st_size=236, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9e5f814000 read(7, "ciYYYru.eu\nrbs.XXX.ro\ncrZZZZZnsu"..., 4096) = 236 fstat(6, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9e5f813000 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ I had replaced strings with YYY, XXX and ZZZZZ for obvious reasons. |