> > Hello!
> >
> > I wanted to build a debian package of apache for my specific purposes.
> > My specific purpose is mod_accel support.
> > I downloaded a source for apache debian package (apache-1.3.26)
> > from stable distribution, add mod_accel patches and it
> > have been compiled well.
> [...]
> > Program received signal SIGABRT, Aborted.
> > [Switching to Thread 1024 (LWP 15551)]
> > 0x40107781 in kill () from /lib/libc.so.6
>
> As you can see from the trace if fails when loading your startup file. You
> want to find the offensive line that triggers this failure. One way to do
it
> is to go one frame up:
>
> > (gdb) where
> > #0  0x40107781 in kill () from /lib/libc.so.6
> > #1  0x40373cd3 in Perl_my_unexec () from /usr/lib/libperl.so.5.6
>
> (gdb) up
>
> and then ask perl where it was when the problem has happened.
>
> (gdb) printf "%d:%s\n", PL_curcop->cop_line,
>
((XPV*)(*(XPVGV*)PL_curcop->cop_filegv->sv_any)->xgv_gp->gp_sv->sv_any)->xpv
_pv
>
> This is with non-threaded perl, you didn't send the output of 'perl -V' as
you
> are being suggested to at http://perl.apache.org/bugs/, so in case your
perl
> is threaded, you will want to run:
>
> (gdb) printf "%d:%s\n", my_perl->Tcurcop->cop_line,
my_perl->Tcurcop->cop_file

Perl is not threaded...
---------------
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.20-7um, archname=i386-linux
    uname='linux (none) 2.4.20-7um #1 smp fri aug 8 18:30:28 edt 2003 i686
unknown '




config_args='-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux -Dp
refix=/usr -Dprivlib=/usr/share/perl/5.6.1 -Darchlib=/usr/lib/perl/5.6.1 -Dv
endorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -D
siteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.6.1 -Dsitearch=/usr/
local/lib/perl/5.6.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/
man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_c
sh -Uusesfio -Duseshrplib -Dlibperl=libperl.so.5.6.1 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags
='-DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_
FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-DDEBIAN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)',
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, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldb -ldl -lm -lc -lcrypt
    perllibs=-ldl -lm -lc -lcrypt
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=true,
libperl=libperl.so.5.6.1
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    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 Aug 10 2003 01:06:01
  @INC:
    /usr/local/lib/perl/5.6.1
    /usr/local/share/perl/5.6.1
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.6.1
    /usr/share/perl/5.6.1
    /usr/local/lib/site_perl
    .
-----------

But I have another problem :/

-----
warzavod:/var/www/default/zentrack# gdb /usr/sbin/apache-power
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) set args -X -DPOWER
(gdb) run
Starting program: /usr/sbin/apache -X -DPOWER
perl_parse args: '/dev/null' ...allocating perl interpreter...ok
constructing perl interpreter...ok
PerlPassEnv: `ORACLE_HOME'=`/u01/app/oracle/product/8.1.7'
PerlPassEnv: `NLS_LANG'=`AMERICAN_AMERICA.CL8MSWIN1251'
PerlPassEnv:
`ORA_NLS'=`/u01/app/oracle/product/8.1.7/ocommon/nls/admin/data'
running perl interpreter...ok
mod_perl: 0 END blocks encountered during server startup
PerlRequire: arg=`startup.pl'
attempting to require `startup.pl'
loading perl module 'Apache::Constants::Exports'...ok
[New Thread 1024 (LWP 17423)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 1024 (LWP 17423)]
0x40107781 in kill () from /lib/libc.so.6
(gdb) source ~alexei/forge/furnace/libapache-mod-perl-1.26/.gdbinit
(gdb) up
#1  0x40373cd3 in Perl_my_unexec () from /usr/lib/libperl.so.5.6
(gdb) curinfo
Attempt to extract a component of a value that is not a structure pointer.
-----



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to