perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Veyron <>
Subject Mixed Children on amd64
Date Mon, 20 Sep 2010 23:00:22 GMT

I wrote a web application for case management (legal, insurance) with
mod_perl. The app is visible at :

I recently purchased a
'dedibox' (
intended to host it, and configured it with Debian. 

My setup is as follow :
Two instances of Apache2 sit on the server, one with mod_ssl enabled,
the other without. The former serves registered users on port 443, the
latter serves only the demo account which is visible on the home page. 

After an initial connection to a common session database (using
Apache::Session and cookies for session management), each server
connects to a different PostgreSQL database for the data. This system
has been running fine for several months on various 32bit systems.

Problem description :
When I use this new machine (it is currently disabled), my registered
users on occasion will retrieve the data from the demo account instead
of their own, as if the children spawned by the two apache2 processes
got mixed up. This never happened before, so I'm guessing it is related
to the fact that this is a 64bit processor, which I never used before. 

Could someone let me know from looking at the information below what I
might have done wrong in my installation? 

Thank you.

Below are the commands used to compile Perl and the 2 instances
(without/with mod_ssl) of Apache2/mod_perl/libapreq. Then follows the
output of `cat /proc/cpuinfo` and `Perl -V`

# uname -a
Linux sd-21096 2.6.32-bpo.4-amd64 #1 SMP Thu Apr 8 10:20:24 UTC 2010
x86_64 GNU/Linux

#Apache2/mod_perl version
Apache/2.2.16 (Unix) mod_apreq2-20090110/2.7.1 mod_perl/2.0.4

wget -c
tar -xzf perl-5.12.1.tar.gz

#./Configure -des -Dcc=gcc -Dprefix=/home/perl/5.12.1
-Dextras="Compress::Zlib Bundle::LWP ExtUtils::XSBuilder CGI::Cookie

#configure for 64bit platform
CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags=-fPIC -Dcc=gcc
-Dprefix=/home/perl/5.12.1 -Dextras="Compress::Zlib Bundle::LWP
ExtUtils::XSBuilder CGI::Cookie URI::Escape"


wget -c
tar -xzf httpd-2.2.16.tar.gz 
mkdir -p /home/httpd/2.2.16

cd /home/user1/src/httpd-2.2.16
./configure --prefix=/home/httpd/2.2.16 --enable-rewrite
make && make install


wget -c
/home/perl/5.12.1/bin/perl Makefile.PL MP_AP_PREFIX=/home/httpd/2.2.16
make && make test && make install

Test Summary Report
t/hooks/authen_basic.t                (Wstat: 0 Tests: 4 Failed: 1)
  Failed test:  4
t/hooks/authz.t                       (Wstat: 0 Tests: 4 Failed: 1)
  Failed test:  4
t/modules/apache_status.t             (Wstat: 0 Tests: 15 Failed: 2)
  Failed tests:  14-15
Files=238, Tests=2404, 163 wallclock secs ( 2.98 usr  1.48 sys + 122.83
cusr 15.66 csys = 142.95 CPU)
Result: FAIL
Failed 3/238 test programs. 4/2404 subtests failed.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)
| Please file a bug report: |

make[1]: *** [] Erreur 1
make[1]: quittant le répertoire
« /home/user1/src/mod_perl-2.0.4/src/modules/perl »

 For details on getting started with mod_perl 2, see:         |
|                                                              |
| |


wget -c

/home/perl/5.12.1/bin/perl Makefile.PL

make test
make install

Test Summary Report
t/apreq/cgi.t      (Wstat: 0 Tests: 71 Failed: 5)
  Failed tests:  52, 56, 60, 64, 68
t/apreq/upload.t   (Wstat: 0 Tests: 80 Failed: 10)
  Failed tests:  41, 45, 49, 53, 57, 61, 65, 69, 73, 77
Files=11, Tests=287, 15 wallclock secs ( 2.00 usr  0.07 sys +  7.36 cusr
0.97 csys = 10.40 CPU)
Result: FAIL
Failed 2/11 test programs. 15/287 subtests failed.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)
make[1]: *** [run_tests] Erreur 1
make[1]: quittant le répertoire
« /home/user1/src/libapreq2-2.12/glue/perl »
make: *** [perl_test] Erreur 2


mkdir -p /home/httpd/2.2.16-ssl
cd /home/user1/src/httpd-2.2.16
./configure --prefix=/home/httpd/2.2.16-ssl --enable-rewrite
make clean && make && make install
cd /home/user1/src/mod_perl-2.0.4
make clean
/home/perl/5.12.1/bin/perl Makefile.PL
make && make install
cd /home/user1/src/libapreq2-2.12
make clean
/home/perl/5.12.1/bin/perl Makefile.PL
make && make install

#System info

# cat /proc/cpuinfo
processor	: 0
vendor_id	: CentaurHauls
cpu family	: 6
model		: 15
model name	: VIA Nano processor U2250 (1.6GHz Capable)
stepping	: 3
cpu MHz		: 1596.084
cache size	: 1024 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat clflush acpi mmx fxsr sse sse2 ss tm pbe syscall nx lm constant_tsc
up rep_good pni monitor vmx est tm2 ssse3 cx16 xtpr rng rng_en ace
ace_en ace2 phe phe_en lahf_lm
bogomips	: 3192.16
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 48 bits virtual
power management:

# /home/perl/5.12.1/bin/perl -V
Summary of my perl5 (revision 5 version 12 subversion 1) configuration:
    osname=linux, osvers=2.6.32-bpo.4-amd64, archname=x86_64-linux
    uname='linux sd-21096 2.6.32-bpo.4-amd64 #1 smp thu apr 8 10:20:24
utc 2010 x86_64 gnulinux '
    config_args='-des -A ccflags=-fPIC -Dcc=gcc
-Dprefix=/home/perl/5.12.1 -Dextras=Compress::Zlib Bundle::LWP
ExtUtils::XSBuilder CGI::Cookie URI::Escape'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='gcc', ccflags ='-fPIC -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
    cppflags='-fPIC -fno-strict-aliasing -pipe -fstack-protector
    ccversion='', gccversion='4.3.2', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib

Characteristics of this binary (from libperl): 
                        USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
  Built under linux
  Compiled at Aug 17 2010 03:30:11

View raw message