I get a segmentation fault in the log-files of apache when I use

What have I done (rather long e-mail)?
Debian - woody (without apache-php-imap)

  make slx
  cd c-client
  ln -s . lib
  ln -s . include
  ln -s c-client.a libc-client.a

  configure --prefix=/usr/local/apache \
            --sysconfdir=/etc/apache \
            --libexecdir=/usr/local/apache/1.3 \
            --enable-shared=max \
  make install

  configure --with-imap=../imap/c-client \
            --with-gettext \
            --with--apxs=/usr/local/apache/bni/apxs \
            --enable-trackvars \
  make install
  cp php.ini-dist /etc/php.ini

/usr/local/apache/bin/apachectl start

That's it

When I make a php-file with phpinfo(), everything looks fine.

  $mbox=imap_open("{mail.khbo.be:143}INBOX", "xxxx", "xxxx");

I get a segmentation fault in the log-files of apache

When I start
gdb /usr/local/apache/bin/httpd
run -X


GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()
#1  0x404fdd88 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#2  0x404fde40 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#3  0x404fc85e in _nss_db_endprotoent () from /lib/libnss_db.so.2
#4  0x404fcac8 in _nss_db_getprotobyname_r () from /lib/libnss_db.so.2
#5  0x401dae9f in getprotobyname_r () from /lib/libc.so.6
#6  0x401dad4d in getprotobyname () from /lib/libc.so.6
#7  0x403d874c in tcp_getbuffer (stream=0xbfffcf2c, size=3221210924,
    s=0xbfffc728 "") at tcp_unix.c:527
#8  0x403d85c0 in tcp_getbuffer (stream=0xbfffd40c, size=0,
    s=0x8f <Address 0x8f out of bounds>) at tcp_unix.c:502
#9  0x403d1ae3 in strcrlflen () at nl_unix.c:84
#10 0x403d0360 in mail_thread_parse_references (s=0xbfffd40c
    flag=0) at mail.c:4539
#11 0x403e89ef in imap_login (stream=0x8110c48, mb=0xd0,
    pwd=0xbfffe7bc "|g??w\2053@H\f\021\b<\031\021\b",
    usr=0x403c6ac8 "\213]\b\211C$\203DtS\213\225\\x??\213B8?P\203D
#12 0x403c6add in mail_fetch_text (stream=0x8110c48, msgno=135338300,
    section=0x0, len=0x40338266, flags=1078515324) at mail.c:1505
#13 0x403385f7 in php_if_imap_set_quota (ht=3, return_value=0x810c7c4,
    this_ptr=0x0, return_value_used=1) at php_imap.c:1082
#14 0x403386ad in php_if_imap_set_quota (ht=3, return_value=0x810c7c4,
    this_ptr=0x0, return_value_used=1) at php_imap.c:1092
#15 0x4030bbb9 in execute (op_array=0x810c6c4) at ./zend_execute.c:1716
#16 0x4031a3fe in _object_init_ex (arg=0x8, class_type=0x3) at
#17 0x4032c084 in php_fopen_url_wrapper (
    path=0xbffffab8 "\002(J@T`\020\b$H\020\b(G\020\b",
    options=-1073743156, issock=0x403286d9, socketd=0x4048d67c,
    opened_path=0x404a281c) at fopen_wrappers.c:472
#18 0x4032873f in php_if_apache_child_terminate (ht=135287100,
    return_value=0x0, this_ptr=0xbffffb0c, return_value_used=1077055758)
    at php_apache.c:131
#19 0x4032911e in php_if_getallheaders (ht=135287100, return_value=0x0,
    this_ptr=0x0, return_value_used=1077055812) at php_apache.c:360
#20 0x4032915a in php_if_getallheaders (ht=135287100,
    this_ptr=0x17, return_value_used=-1) at php_apache.c:354
#21 0x8054959 in ap_invoke_handler ()
#22 0x80692df in process_request_internal ()
#23 0x8069346 in ap_process_request ()
#24 0x8060256 in child_main ()
#25 0x8060411 in make_child ()
#26 0x806058c in startup_children ()
#27 0x8060bfc in standalone_main ()
#28 0x806142c in main ()
#29 0x4011464f in __libc_start_main () from /lib/libc.so.6

I tried another version of each of the three packets, with no results.

Thank you for any advice.

Philip Steeman                    tel: (+32)59 56 90 16
Zeedijk 101                       fax: (+32)59 56 90 01
8400 Oostende                     E-mail: [EMAIL PROTECTED]

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to