[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn @1621 segmentation fault in apr_pool_create_ex

From: Jennifer Bevan <jen_at_bounce.alouysius.net>
Date: 2002-04-05 00:26:20 CEST

Hi again,
So, I am figuring out how to use the client library so that I can
use it from my research project at school (I'm a grad student at
UCSC). I found a seg fault in apr_pool_create_ex when attempting
to create a top-level memory pool using svn_pool_create with a
NULL argument.

The gdb trace followed by the program is below. Thanks in advance
for any who see a mistake that I made (i.e., using svn_pool_create
instead of something else, etc.).

-Jen Bevan

------gdb tree------------------
(gdb) run http://localhost/svn/testres
Starting program: /home/jen/research/svnapi_test/./jen http://localhost/svn/testres
[New Thread 1024 (LWP 31061)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 31061)]
0x401fb677 in apr_pool_create_ex (newpool=0xbffff9c0, parent=0x0,
    abort_fn=0x40190fe8 <abort_on_pool_failure>, allocator=0x0) at apr_pools.c:708
708 allocator = parent->allocator;
(gdb) where
#0 0x401fb677 in apr_pool_create_ex (newpool=0xbffff9c0, parent=0x0,
        abort_fn=0x40190fe8 <abort_on_pool_failure>, allocator=0x0) at apr_pools.c:708
#1 0x401915dc in svn_pool_create (pool=0x0)
        at subversion/libsvn_subr/svn_error.c:428
#2 0x08048656 in main () at eval.c:41
#3 0x40065507 in __libc_start_main (main=0x8048620 <main>, argc=2,
        ubp_av=0xbffffa54, init=0x804847c <_init>, fini=0x80486b0 <_fini>,
        rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffffa4c)
        at ../sysdeps/generic/libc-start.c:129

#include <stdio.h>
#include <stdlib.h>
#include <svn_pools.h>
#include <svn_client.h>

int main(int argc, char **argv) {
apr_pool_t *localPool;

    if(argc != 2) {
                printf("Usage: %s repos_url\n", argv[0]);

        localPool = svn_pool_create((apr_pool_t *)NULL);

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 5 00:54:42 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.