Oden Eriksson wrote:
> 
> On 24 Oct 2000, at 23:38, Daniel Augusto Fernandes wrote:
> 
> >
> > Hello,
> >
> > here I am again with our old problem to make sqwebmail+vpopmail.
> >
> > When I run authlib/authtest:
> > $ authlib/authtest [EMAIL PROTECTED] #####
> > Authenticated: module authvchk
> > Home directory: /home/vpopmail/domains/epostal.com.br/G/daftm
> > UID/GID: 3367/503
> > [EMAIL PROTECTED]
> > AUTHFULLNAME=Daniel Augusto Fernandes
> >
> > Ok!
> >
> > But when I try to login:
> > sqwebmail: Cache create failure - bad code.
> >
> > In my debug, I found it crashing in if sqwebmail/logincache.c:
> > #if ((login_time=strchr(userid, ' ')) == 0)
> >
> > userid has something like: nhl
> >
> > Could you help me out?
> >
> >
> >
> > pipe([3, 4])                            = 0
> > fork()                                  = 10888
> > [pid 10873] close(3)                    = 0
> > [pid 10873] open("/usr/local/share/sqwebmail/authmodulelist",
> > O_RDONLY) = 3 [pid 10873] read(3, "authvchkpw\n", 1024) = 11 [pid
> > 10873] close(3)                    = 0 [pid 10873] kill(10888,
> > SIGTERM)        = 0 [pid 10873] close(4)                    = 0 [pid
> > 10873] access("/usr/local/share/sqwebmail/noimages", F_OK) = -1 ENOENT
> > (No such [pid 10873]
> > open("/usr/local/share/sqwebmail/html/pt-BR/invalid.html", O_RDONLY) =
> > 3 [pid 10873] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
> > [pid 10873] mmap(0, 4096, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = [pid 10873] fstat(3,
> > {st_mode=S_IFREG|0644, st_size=3073, ...}) = 0 [pid 10873] mmap(0,
> > 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = [pid
> > 10873] read(3, "<!DOCTYPE HTML PUBLIC \"-//W3C//"..., 4096) = 3073
> > [pid 10873] open("/usr/local/share/sqwebmail/logindomainlist",
> > O_RDONLY) = -1 ENOENT [pid 10873] read(3, "", 4096)           = 0 [pid
> > 10873] close(3)                    = 0 [pid 10873] munmap(0x400ed000,
> > 4096)    = 0 [pid 10873] write(1, "Content-Language:
> > pt-BR\nCache-C"..., 3214) = 3214 [pid 10873] _exit(0)
> >   = ?
> 
> Hi Daniel,
> 
> Could you please tell us how you got this debug info. I think it
> would help a great deal when/if there's a suspected bug.
> 
> Thanks in advance.

Hello Oden,

Mr. Sam once suggested me this:

> Basically, you'd put in a sleep() call just before the code point you want
> to strace, make a request, find the pid of the sleeping process, then
> strace it.

You can edit sqwebmail/sqwebmail.c, put a sleep(5) call somewhere in
main() for example. In your webserver you can use strace to intercept
the system calls. I believe you can use a debbuger too like gdm or so if
you compile with debug symbols.

Hope it helps.

--------------------------------------------------------------------
Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
GCSNet                                    http://www.gcsnet.com.br/
--------------------------------------------------------------------
                     Se voc� n�o encontra
                     o sentido das coisas
                     � porque este n�o
                     se encontra, se cria.
                                   Antoine Saint-Exup�ry

Reply via email to