Re: [moto-users] Apache crashes on page load

David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Tue, 4 Feb 2003 19:24:54 -0500
Newsgroups gmane.comp.lang.moto.devel,gmane.comp.lang.moto.user
Message-ID <[email protected]>
	Argh! That was painfully obvious bug! I will make a 0.18.1 bug fix 
release soon ... in the mean time you can open up the file 
mx/codex/io/pfs.c and change line 260 from

    struct tm *tmp,* d = (struct tm*)emalloc(sizeof(struct tm*));

to

    struct tm *tmp,* d = (struct tm*)emalloc(sizeof(struct tm));

and then make install in just that directory. That should fix 
everything.

-Dave

On Tuesday, February 4, 2003, at 01:26  AM, Dean Mills wrote:

> I just downloaded and installed moto 0.18 as per the instructions, and
> created a test.moto page using the Midafternoon Commander example on 
> the
> project's website. When I attempt to load the page, Apache crashes. 
> This is
> the contents of the error_log created, it's dying in sharemem.c in the
> deleteFreeNode() function...
>
> ### Pre-Loading Extension 'libmx_cstdlib.so' from
> '/usr/moto/mx/cstdlib/libmx_cstdlib.so'
> ### Pre-Loading Extension 'libmx_codex_util.so' from
> '/usr/moto/mx/codex/util/libmx_codex_util.so'
> ### Pre-Loading Extension 'libmx_codex_io.so' from
> '/usr/moto/mx/codex/io/libmx_codex_io.so'
> ### Pre-Loading Extension 'libmx_codex_http.so' from
> '/usr/moto/mx/codex/http/libmx_codex_http.so'
> ### Pre-Loading Extension 'libmx_codex_db_mysql.so' from
> '/usr/moto/mx/codex/db/mysql/libmx_codex_db_mysql.so'
> ### Pre-Loading Extension 'libmx_moto.so' from
> '/usr/moto/mx/moto/libmx_moto.so'
> [Mon Feb  3 22:05:16 2003] [info] mod_unique_id: using ip addr 
> 127.0.0.1
> ### Pre-Loading Extension 'libmx_cstdlib.so' from
> '/usr/moto/mx/cstdlib/libmx_cstdlib.so'
> ### Pre-Loading Extension 'libmx_codex_util.so' from
> '/usr/moto/mx/codex/util/libmx_codex_util.so'
> ### Pre-Loading Extension 'libmx_codex_io.so' from
> '/usr/moto/mx/codex/io/libmx_codex_io.so'
> ### Pre-Loading Extension 'libmx_codex_http.so' from
> '/usr/moto/mx/codex/http/libmx_codex_http.so'
> ### Pre-Loading Extension 'libmx_codex_db_mysql.so' from
> '/usr/moto/mx/codex/db/mysql/libmx_codex_db_mysql.so'
> ### Pre-Loading Extension 'libmx_moto.so' from
> '/usr/moto/mx/moto/libmx_moto.so'
> [Mon Feb  3 22:05:17 2003] [info] mod_unique_id: using ip addr 
> 127.0.0.1
> [Mon Feb  3 22:05:17 2003] [info] created shared memory segment #851968
> [Mon Feb  3 22:05:18 2003] [notice] Apache/1.3.27 (Unix) 
> mod_moto/0.18.0
> mod_tsunami/1.1 FrontPage/4.0.4.3 mod_ssl/2.8.12 OpenSSL/0.9.6h
> configured -- resuming normal operations
> [Mon Feb  3 22:05:18 2003] [info] Server built: Feb  2 2003 23:53:57
> [Mon Feb  3 22:05:18 2003] [notice] Accept mutex: sysvsem (Default: 
> sysvsem)
> ### Pool doesn't match!
> ### Trying to delete a free node that doesn't exist
> sharedmem.c:443: *** uncaught exception: NullPointerException
>
> ### Pool doesn't match!
> ### Trying to delete a free node that doesn't exist
> sharedmem.c:443: *** uncaught exception: NullPointerException
>
> [Mon Feb  3 22:05:42 2003] [notice] child pid 16509 exit signal 
> Aborted (6)
> [Mon Feb  3 22:05:42 2003] [notice] child pid 16508 exit signal 
> Aborted (6)
>
> As you can see from the [notice] line above, I am running mod_tsunami, 
> FPSE,
> mod_ssl, as well am using mm 1.2.2 and PHP 4.23
> Base system is RH 7.3, Quad Xeon 550's w/ 1GB RAM. Configured moto as
> below...
>
> ./configure --with-apache=/usr/apache --with-mysql=/var/mysql 
> --prefix=/usr/
> moto
> make -j 4 *
> make install
>
> * Failed, seems the threads ran into each other, had to do a `make 
> clean &&
> make` and then all was well.
>
> Sorry in advance if this is a FAQ, I'm just rarin' to get moto going! 
> :)
> TIA!
>
> D.Mills
>
>