perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Seiji T <mlb...@gmail.com>
Subject Re: Apache/1.3.33 (Unix) mod_perl/1.29 on Red Hat Linux release 7.3 (Valhalla) causes segmentation fault (11)
Date Tue, 28 Jun 2005 07:12:41 GMT
Hi. I am still trying to get this thing to work. I've followed the
suggestion (Message-ID: <20050622134533.GA7044@matatu.org>) from
another thread about setting the LANG and LC_ALL to C, recompiled perl
and mod_perl/apache. This time, I changed my perl version from 5.8.6
to 5.8.7 . Still doesn't help.

I've done an ltrace of the process. Any ideas on where in the source
the segfaults are occuring? Or why?

foopc@15:53:46% ltrace -p 18219                                       
                                  [~]
sigemptyset(0xbfffd3f4, 0x0822a728, 0, 0x401a630c, 0x082a37a8) = 0
sigaction(10, 0xbfffd3f0, 0xbfffd360, 0x401a630c, 0x082a37a8) = 0
time(NULL)                                        = 1119941646
strlen(0xbfffd4e0, 0x20000000, 14, 15, 0x082347b0) = 14
memcpy(0x082cbc6c, "GET / HTTP/1.0", 15)          = 0x082cbc6c
strcmp("GET", "GET")                              = 0
strlen(0x082cbc84, 0x082cbc8c, 0x082cbc84, 0x082cb530, 0x082cbc85) = 1
memcpy(0x082cbc8c, "/", 2)                        = 0x082cbc8c
memset(0x082cb68c, '\000', 44)                    = 0x082cb68c
memcpy(0x082cbc94, "/", 1)                        = 0x082cbc94
strlen(0xbfffd4e6, 0x081ec10a, 1, 0x082cbc94, 0x082cb564) = 8
memcpy(0x082cbc9c, "HTTP/1.0", 9)                 = 0x082cbc9c
strlen(0x082cbc9c, 0xbfffd4e6, 0, 0, 0x4009b445)  = 8
memset(0x082cbcc4, '\000', 400)                   = 0x082cbcc4
read(3, "\r\n", 4096)                             = 2
qsort(0xbfffbca0, 0, 12, 0x080b1d4c)              = <void>
strlen(0x081ddca3, 6872, 0, 4096, 0x400126d0)     = 15
strcasecmp("PERL_CUR_HOOK", "PERL_CUR_HOOK")      = 0
strlen(0x081ddb70, 0x081ddca3, 0x400ff7db, 0x401a630c, 0x40012020) = 26
strcasecmp("PERL_CUR_HOOK", "setenvif-phase-flag") = -3
strcasecmp("PERL_CUR_HOOK", "setenvif-phase-flag") = -3
strlen(0x081dda57, 2, 0x400ff7db, 0x401a630c, 0x40012020) = 19
memcpy(0x082cbe54, "setenvif-phase-flag", 20)     = 0x082cbe54
strlen(0x081dda6b, 0x081dda57, 20, 0x401a630c, 20) = 14
memcpy(0x082cbe6c, "post-read done", 15)          = 0x082cbe6c
strlen(0x081dda7a, 0x31323188, 0x401a8d99, 0, 10) = 0
strlen(0x081dda7a, 0x31323188, 0x401a8d99, 0, 12) = 0
strlen(0x081dda7a, 0x31323188, 0x401a8d99, 0, 15) = 0
strlen(0x081dda7a, 0x31323188, 0x401a8d99, 0, 9)  = 0
strlen(0x081dda7a, 0x31323188, 0x401a8d99, 0, 8)  = 0
strcasecmp("PERL_CUR_HOOK", "PERL_CUR_HOOK")      = 0
strcasecmp("setenvif-phase-flag", "PERL_CUR_HOOK") = 3
strlen(0x081ddeaa, 0x0822a728, 0x400ff7db, 0x401a630c, 0x40012020) = 16
strlen(0x0822f324, 0x24000000, 0x400abef8, 0x400f556a, 0x401a630c) = 7
strlen(0x0822f64c, 0x24000000, 0x400abef8, 0x400f556a, 0x401a630c) = 8
strlen(0x0822f99c, 0x24000000, 0x400abef8, 0x400f556a, 0x401a630c) = 9
strlen(0x08224314, 0x08222c84, 0, 0xbffff468, 0x0822e0fc) = 27
strlen(0x08224314, 0x081de33b, 0xbffff448, 16, 0x081de33b) = 27
strlen(0x082cbc94, 0x081de33b, 0xbffff448, 16, 0x081de33b) = 1
strcpy(0x082cbe7c, "/home/toku/ap/apache/htdocs") = 0x082cbe7c
strlen(0x08224314, 0x08224314, 0xbffff448, 16, 0x081de33b) = 27
strcpy(0x082cbe97, "/")                           = 0x082cbe97
strlen(0x082cbc94, 0x082cbc94, 0xbffff448, 16, 0x081de33b) = 1
strlen(0x082cbe7c, 0x082cbe98, 0xbffff478, 0x080bd52e, 0x082cb53c) = 28
__errno_location()                                = 0x401a6b80
__xstat64(3, 0x082cbe7c, 0x082cb62c, 0x082cb62c, 0x082cb564) = 0
strlen(0x082cbe97, 0x082cbe7c, 0x082cb62c, 0x082cb62c, 0x082cb564) = 1
memcpy(0x082cbe9c, "/", 2)                        = 0x082cbe9c
strlen(0x082cbe7c, 0, 0, 0x082cbe98, 0x082cbe7c)  = 27
memcpy(0x082cbea4, "/home/toku/ap/apache/htdocs", 28) = 0x082cbea4
strlen(0x082cbea4, 0x082cbe7c, 0xbffff4a8, 0x080b5516, 0x082cb564) = 27
strcmp("/", "/")                                  = 0
memcpy(0x082cbf3c, "", 96)                        = 0x082cbf3c
memcpy(0x08223fb8, "", 0)                         = 0x08223fb8
strcmp("/home/toku/ap/apache/htdocs/", "/home/toku/ap/apache/htdocs/") = 0
memcpy(0x082cc00c, "$\335"\b\001", 96)            = 0x082cc00c
memcpy(0x08223fb8, "", 0)                         = 0x08223fb8
strcmp("/home/toku/ap/apache/htdocs/", "/home/toku/ap/apache/icons/") = -1
strcmp("/home/toku/ap/apache/htdocs/", "/home/toku/ap/apache/cgi-bin/") = 5
strrchr("/home/toku/ap/apache/htdocs", '/')       = "/htdocs"
strlen(0x082cbe91, 0x401a630c, 0xbffff418, 0x401a630c, 5) = 6
strcasecmp("PERL_CUR_HOOK", "PERL_CUR_HOOK")      = 0
strcasecmp("setenvif-phase-flag", "PERL_CUR_HOOK") = 3
strlen(0x081ddca3, 0x082cbf9c, 0x400ff7db, 0x401a630c, 0x40012020) = 15
strcasecmp("PERL_CUR_HOOK", "PERL_CUR_HOOK")      = 0
strcasecmp("setenvif-phase-flag", "PERL_CUR_HOOK") = 3
strlen(0x081ddc4c, 0x081ddca3, 0x400ff7db, 0x401a630c, 0x40012020) = 23
strcasecmp("PERL_CUR_HOOK", "setenvif-phase-flag") = -3
strcasecmp("setenvif-phase-flag", "setenvif-phase-flag") = 0
strcasecmp("PERL_CUR_HOOK", "PERL_CUR_HOOK")      = 0
strcasecmp("setenvif-phase-flag", "PERL_CUR_HOOK") = 3
strlen(0x081ddde5, 0xbffff764, 0x400ff7db, 0x401a630c, 0x40012020) = 17
strcasecmp("PERL_CUR_HOOK", "PERL_CUR_HOOK")      = 0
strcasecmp("setenvif-phase-flag", "PERL_CUR_HOOK") = 3
strlen(0x081ddda9, 0x081ddde5, 0x400ff7db, 0x401a630c, 0x40012020) = 15
strcasecmp("PERL_CUR_HOOK", "rewrite-forced-mimetype") = -2
strcasecmp("setenvif-phase-flag", "rewrite-forced-mimetype") = 1
--- SIGSEGV (Segmentation fault) ---
chdir("/home/toku/ap/apache")                     = 0
sigemptyset(0xbffff0b8, 8, 1, 0xbffff578, 0)      = 0
sigaction(11, 0xbffff0b4, 0xbffff024, 0xbffff578, 0) = 0
getpid()                                          = 18219
kill(18219, 11)                                   = 0
breakpointed at 0x401b617a (?)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
foopc@15:54:06%  


Seiji Tokunaga


On 6/15/05, Seiji T <mlbots@gmail.com> wrote:
> I am trying to get mod_perl to work /w apache w/o success. Is there
> any one who can tell me what I am doing wrong?
> 
>  - Apache/1.3.33 (Unix) mod_perl/1.29 on Red Hat Linux release 7.3 (Valhalla)
>   - mod_perl is compiled w/o DSO since the web application (Request
> Tracker) recommends so.
>   -  mod_perl + apache segfaults when I try to access the initial page
> (generated by the apache install). No PHP install by the way.
> 
> [Wed Jun 15 13:37:46 2005] [info] created shared memory segment #1212418
> [Wed Jun 15 13:37:46 2005] [notice] Apache/1.3.33 (Unix) mod_perl/1.29
> configured -- resuming normal operations
> [Wed Jun 15 13:37:46 2005] [info] Server built: Jun 15 2005 13:33:02
> [Wed Jun 15 13:37:46 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
> [Wed Jun 15 13:39:53 2005] [notice] child pid 32737 exit signal
> Segmentation fault (11)
> 
>  - Apache alone will not have problem serving the initial page..
>   - This is a user-level installation. Not system-wide installation.
> So apache directories are under my user directory.
>  - I've compiled /w PERL_DEBUG=1 but core dump files does not seem to
> be generated.
> 
> Any help is appreciated. The following are detailed description of the
> enviroment:
> 
> ## perl -v ### some info are masked.
> Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
>   Platform:
>     osname=linux, osvers=2.4.27-xxxx, archname=i686-linux
>     uname='linux XXX 2.4.27-xxxxx #1 wed aug 18 18:49:28 jst 2004 i686 unknown '
>     config_args='-Dprefix=/home/toku/ap/perl -de'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>     optimize='-O2',
>     cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
>     ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3
> 2.96-112)', gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
>     alignbytes=4, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lnsl -ldl -lm -lcrypt -lutil -lc
>     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
>     libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
>     gnulibc_version='2.2.5'
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
> 
> 
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_LARGE_FILES
>   Built under linux
>   Compiled at Apr 28 2005 19:04:57
>   @INC:
>     /home/toku/ap/perl/lib/5.8.6/i686-linux
>     /home/toku/ap/perl/lib/5.8.6
>     /home/toku/ap/perl/lib/site_perl/5.8.6/i686-linux
>     /home/toku/ap/perl/lib/site_perl/5.8.6
>     /home/toku/ap/perl/lib/site_perl
> ## perl -v ### end
> 
> ## make test summary of mod_perl ############################
> modules/actions.......ok
> modules/cgi...........ok
> modules/constants.....ok
> modules/cookie........skipped
>         all skipped: no reason given
> modules/file..........ok
> modules/httpdconf.....ok
> modules/include.......ok
> modules/log...........ok
> modules/module........skipped
>         all skipped: no reason given
> modules/perlrun.......Useless content call in void context at
> ../blib/lib/Apache/testold.pm line 252
> modules/perlrun.......ok
> modules/psections.....skipped
>         all skipped: no reason given
> modules/request.......skipped
>         all skipped: no reason given
> modules/src...........ok
> modules/ssi...........ok
> modules/stage.........skipped
>         all skipped: no reason given
> modules/status........ok
> modules/symbol........skipped
>         all skipped: no reason given
> modules/uri...........ok
> modules/util..........ok
> internal/api..........ok
> internal/auth.........ok
> internal/croak........ok
> internal/dirmagic.....ok
> internal/error........ok
> internal/headers......ok
> internal/hooks........ok
> internal/http-get.....ok
> internal/http-post....ok
> internal/proxy........ok
> internal/redirect.....ok
> internal/rwrite.......ok
> internal/stacked......ok
> internal/table........ok
> internal/taint........ok
> All tests successful, 6 tests skipped.
> Files=34, Tests=401, 26 wallclock secs (21.83 cusr +  1.75 csys = 23.58 CPU)
> ## make test summary of mod_perl ###  end

Mime
View raw message