apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: segfault in apr_bucket_delete
Date Thu, 20 May 2004 09:41:43 GMT
Stas Bekman wrote:
> Doing just:
>   apr_brigade_create(p, ba);
> and leaving here segfaults:

I think my manual expansion of multiple nested macros went wrong somewhere, 
the real backtrace for the cvs version is:

#0  0x4037db83 in mallopt () from /lib/tls/libc.so.6
#1  0x4037b8ba in free () from /lib/tls/libc.so.6
#2  0x4017a847 in apr_brigade_cleanup (data=0x93e6ff8) at apr_brigade.c:50
#3  0x4017a7d6 in brigade_cleanup (data=0x93e6ff8) at apr_brigade.c:33
#4  0x40277e4e in run_cleanups (cref=0x93f88f0) at apr_pools.c:1997
#5  0x402775eb in apr_pool_destroy (pool=0x93d90f0) at apr_pools.c:763
#6  0x402775ad in apr_pool_clear (pool=0x93d30d8) at apr_pools.c:723
#7  0x080d9a76 in child_main (child_num_arg=1) at prefork.c:528
#8  0x080d9dbb in make_child (s=0x81420c0, slot=1) at prefork.c:703
#9  0x080d9e30 in startup_children (number_to_start=1) at prefork.c:721
#10 0x080da235 in ap_mpm_run (_pconf=0x813d0a8, plog=0x81851c8, s=0x81420c0)
     at prefork.c:940
#11 0x080e0ea9 in main (argc=9, argv=0xbffff264) at main.c:619

So I guess it segfaults elsewhere inside the multiple nested macros. I hope 
you have a clear head, I don't, I'm heading to sleep. Just write that one 
liner from above to reproduce. Thanks!

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

View raw message