On 09/26/2012 10:20 AM, Jan Kaluža wrote:
On 09/26/2012 02:10 AM, Andy Colson wrote:
sorry, didn't cc the list.


-------- Original Message --------
Subject: Re: trying mod_perl patches for httpd 2.4
Date: Tue, 25 Sep 2012 19:08:16 -0500
From: Andy Colson <a...@squeakycode.net>
To: Jan Kaluža <jkal...@redhat.com>

Try as I might, I cannot get mod_perl debug symbols to work:

perl Makefile.PL MP_APR_CONFIG=/usr/bin/apr-1-config MP_DEBUG=1
MP_TRACE=1

make
make test

.... later ...

[  error] for stacktrace, run: gdb /usr/sbin/httpd -core
/home/andy/apps/mod_perl-2.0/core


$ gdb /usr/sbin/httpd -core /home/andy/apps/mod_perl-2.0/core
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...done.
[New LWP 26308]

warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/usr/sbin/httpd -d /home/andy/apps/mod_perl-2.0/t
-f /home/andy/apps/mod_perl-2'.
Program terminated with signal 11, Segmentation fault.
#0  0xb6efe253 in modperl_env_clear () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
(gdb) bt full
#0  0xb6efe253 in modperl_env_clear () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#1  0xb6ee672e in modperl_boot () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#2  0xb6e3b0a1 in Perl_leave_scope (my_perl=my_perl@entry=0xb7aefb78,
base=0) at scope.c:970
         uv = 30
         type = 30 '\036'
         sv = <optimized out>
         value = <optimized out>
         gv = <optimized out>
         av = <optimized out>
         hv = <optimized out>
         ptr = <optimized out>
         str = <optimized out>
         i = <optimized out>
         was = false
#3  0xb6e3bf63 in Perl_pop_scope (my_perl=my_perl@entry=0xb7aefb78) at
scope.c:110
         oldsave = <optimized out>
#4  0xb6d9491d in S_parse_body (xsinit=0xb6ee682c <modperl_xs_init>,
env=0x0, my_perl=0xb7aefb78) at perl.c:2270
         rsfp = 0xb7b07ec8
         dosearch = false
         doextract = <optimized out>
         argc = 1
         linestr_sv = 0x0
         lex_start_flags = 0
         argv = 0xb7ae4d0c
         scriptname = 0xb6ea2c52 "/dev/null"
         c = <optimized out>
         cddir = <optimized out>
         add_read_e_script = <optimized out>
#5  perl_parse (my_perl=0xb7aefb78, xsinit=0xb6ee682c <modperl_xs_init>,
argc=6, argv=0xb7ae4cf8, env=0x0)
     at perl.c:1633
         oldscope = -1213255152
         ret = 0
         cur_env = {je_prev = 0xb7aefcf4, je_buf = {{__jmpbuf =
{-1225953968, -1225941384, -1213313800, 0, -261314454,
                 -1795530632}, __mask_was_saved = 0, __saved_mask =
{__val = {0, 3068008408, 64, 3068861920,
                   3081712096, 3069013328, 1, 3069013328, 3081736520,
3068688206, 64, 16, 3081737144, 3068110662, 8, 0,
                   3069300928, 3451674880, 1, 16, 3069859476,
3069013328, 3069300928, 3081698168, 3219875352,
                   3068690813, 3068887968, 3069252682, 3069300928, 0,
3069298720, 3081698168}}}}, je_ret = 0,
           je_mustcatch = false}
#6  0xb6ee6ae4 in modperl_startup () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#7  0xb6ee6984 in modperl_startup () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#8  0xb6ee7d8e in modperl_init () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#9  0xb6ee8368 in modperl_hook_init () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#10 0xb6ee83ae in modperl_run () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#11 0xb6eef499 in modperl_cmd_load_module () from
/home/andy/apps/mod_perl-2.0/src/modules/perl/mod_perl.so
No symbol table info available.
#12 0xb774ce94 in invoke_cmd (cmd=0xb6f1c228 <modperl_cmds+456>,
parms=parms@entry=0xbfeb6a3c, mconfig=0xb79bf068,
     args=0xb79ef718 "TestCompat::apache_module") at config.c:1014
         override_list_ok = <optimized out>
         w = <optimized out>
         w2 = <optimized out>
         w3 = <optimized out>
         errmsg = 0x0
#13 0xb774f675 in ap_walk_config_sub (section_vector=0xb79a5bd8,
parms=0xbfeb6a3c, current=0xb79ef6f0) at config.c:1298
         dir_config = <optimized out>
         retval = <optimized out>
         cmd = <optimized out>
         ml = 0xb79bac38
         dir = <optimized out>
#14 ap_walk_config (current=0xb79ef6f0, current@entry=0xb79bf4c0,
parms=parms@entry=0xbfeb6a3c,
     section_vector=0xb79a5bd8) at config.c:1331
         errmsg = 0x0
         oldconfig = 0x0
#15 0xb7750a5d in ap_process_config_tree (s=0xb79a4a70,
conftree=0xb79bf4c0, p=0xb794a0a8, ptemp=0xb79a2a68)
     at config.c:2055
         errmsg = <optimized out>
         parms = {info = 0x0, override = 150, override_opts = 239,
override_list = 0x0, limited = -1,
           limited_xmethods = 0x0, xlimited = 0x0, config_file = 0x0,
directive = 0xb79ef6f0, pool = 0xb794a0a8,
           temp_pool = 0xb79a2a68, server = 0xb79a4a70, path = 0x0, cmd
= 0xb6f1c228 <modperl_cmds+456>,
           context = 0xb79a5bd8, err_directive = 0x0}
#16 0xb772b430 in main (argc=9, argv=0xbfeb6bf4) at main.c:639
         c = 68 'D'
         showcompile = 0
         showdirectives = 0
         confname = 0xbfeb7eeb
"/home/andy/apps/mod_perl-2.0/t/conf/httpd.conf"
         def_server_root = 0xbfeb7ec9 "/home/andy/apps/mod_perl-2.0/t"
         temp_error_log = 0x0
         error = <optimized out>
         process = 0xb7948130
         pconf = 0xb794a0a8
         plog = 0xb79a0a60
         ptemp = 0xb79a2a68
         pcommands = 0xb796c130
         opt = 0xb796c1d0
         rv = <optimized out>
         mod = <optimized out>
         opt_arg = 0xbfeb7f28 "PERL_USEITHREADS"
         signal_server = <optimized out>


Oh, I've checked the patches we use in Fedora and I think this problem
is fixed by this patch:

http://jkaluza.fedorapeople.org/mod_perl/mod_perl-2.0.5-nolfs.patch

It's unrelated to httpd24, but I think this patch could fix it for you.
At least I think I remember this backtrace.

Found downstream bugreport for this one: https://bugzilla.redhat.com/show_bug.cgi?id=730832



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org
For additional commands, e-mail: dev-h...@perl.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org
For additional commands, e-mail: dev-h...@perl.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org
For additional commands, e-mail: dev-h...@perl.apache.org

Reply via email to