[imp] IMP 3.1 segfault

Iain iain@myspinach.org
Thu, 12 Sep 2002 13:11:12 +1000


Hi,

I seem to have found a work around for this. I recompiled the PHP4 debian 
packages with the option:

export DEB_BUILD_OPTIONS="debug nostrip"

which is equivalent to --enable-debug and not stripping the binaries.

Anyway after installing the new packages the bug mysteriously dissappears. 
Very unsatisfying :(

hope this helps someone  else.

Iain.

On Thu, 12 Sep 2002 12:08, Iain wrote:
> Hi,
>
> I have been having a problem with IMP 3.1 causing a segfault. The segfa=
ult
> occurs when I press send-message in the compose window. I have tried th=
is
> with PHP 4.1.2 and 4.2.2. I am using apache 1.3.26 on a Debian Woody
> system.
>
> I have tried getting a backtrace but am not sure if I am doing the righ=
t
> thing:
>
> After running gdb --args apache -X:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x40146c1b in free () from /lib/libc.so.6
> (gdb) backtrace
> #0  0x40146c1b in free () from /lib/libc.so.6
> #1  0x40146aa3 in free () from /lib/libc.so.6
> #2  0x4027260b in _efree () from /usr/lib/apache/1.3/libphp4.so
> #3  0x40272b03 in shutdown_memory_manager () from
> /usr/lib/apache/1.3/libphp4.so
> #4  0x40298ba0 in php_request_shutdown () from
> /usr/lib/apache/1.3/libphp4.so #5  0x40295cb3 in apache_php_module_main=
 ()
> from
> /usr/lib/apache/1.3/libphp4.so
> #6  0x4029675e in php_restore_umask () from /usr/lib/apache/1.3/libphp4=
.so
> #7  0x402967c5 in php_restore_umask () from /usr/lib/apache/1.3/libphp4=
.so
> #8  0x08053a94 in ap_invoke_handler ()
> #9  0x0806339c in ap_some_auth_required ()
> #10 0x080633f8 in ap_process_request ()
> #11 0x0805cbdb in ap_child_terminate ()
> #12 0x0805cd6c in ap_child_terminate ()
> #13 0x0805ce89 in ap_child_terminate ()
> #14 0x0805d365 in ap_child_terminate ()
> #15 0x0805da6d in main ()
> #16 0x400f114f in __libc_start_main () from /lib/libc.so.6
>
> and from running strace apache -X:
>
> write(6, "00000006 LOGOUT\r\n", 17)     = 17
> time(NULL)                              = 1031823615
> time(NULL)                              = 1031823615
> select(7, [6], NULL, [6], NULL)         = 1 (in [6])
> time(NULL)                              = 1031823615
> read(6, "* BYE Courier-IMAP server shutti"..., 8192) = 71
> alarm(0)                                = 0
> alarm(0)                                = 0
> time(NULL)                              = 1031823615
> alarm(0)                                = 0
> alarm(0)                                = 0
> close(6)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> alarm(0)                                = 0
> brk(0x82b4000)                          = 0x82b4000
> setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL)=
 = 0
> setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL=
) = 0
> rt_sigaction(SIGPROF, {0x40284084, [PROF], SA_RESTART|0x4000000},
> {0x40284084, [PROF], SA_RESTART|0x4000000}, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++
>
> Is there something else I should do to debug this problem?
>
> thanks, Iain.

-- 
PGP info: http://www.myspinach.org/~iain/pgpinfo.html