the cause: segmentation fault at: rv = apr_socket_bind(sock, to); from static void sendto_receivefrom(abts_case *tc, void *data) from testsockets.c the second parameter given is NULL: apr_socket_bind (sock=0x80d3c78, sa=0x0) at network_io/unix/sockets.c:154
the NULL value comes from rv = apr_sockaddr_info_get(&to, addr, APR_UNSPEC, 7772, 0, p); Which was supposed to initialize it, but failed to. digging deeper we get into network_io/unix/soccaddr.c, where there's a this call error = getaddrinfo(hostname, servname, &hints, &ai_list); This returns -9 which gai_strerror says it means "Address family for hostname not supported". getaddrinfo's input params are: hostname ="::1" servname = 0x0 hints = {ai_flags = AI_ADDRCONFIG, ai_family = 0, ai_socktype = 1, ai_protocol = 0, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0} Will dig deeper, but if somebody has some knowledge why this would fail, jump in :) -- Lucian Adrian Grijincu On 6/6/07, Lucian Adrian Grijincu <[EMAIL PROTECTED]> wrote:
I took http://apr.apache.org/dev/dist/apr-1.2.9.tar.gz Hope I'm on target now:) I've done two tests. One in which I ran buildconf myself and one without. For each test I then ran: ./configure make make test Both failed with: testsockets : \/bin/bash: line 1: 10039 Segmentation fault (core dumped) ./$prog the line possition it reports differs from run to run. Same system: Ubuntu 7.04, 32bit. Also: Still haven't checked if this is to be expected running ./test/testall gives: testatomic : SUCCESS testdir : SUCCESS testdso : FAILED 8 of 9 testdup : SUCCESS testenv : SUCCESS testfile : SUCCESS testfilecopy : FAILED 2 of 4 testfileinfo : SUCCESS testflock : FAILED 2 of 3 testfmt : SUCCESS testfnmatch : FAILED 2 of 2 testargs : SUCCESS testhash : SUCCESS testipsub : SUCCESS testlock : SUCCESS testlfs : SUCCESS testmmap : |Segmentation fault (core dumped) Even though they pass when run from make check. On 6/6/07, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > note trunk isn't 1.2.9 - it's actually 1.3.0 with some additional > socket features, so this is quite possibly not a problem with the > new tarball. would you mind also trying branches/1.2.x or the > tarball i created? > > Lucian Adrian Grijincu wrote: > > Disclaimer: I haven't checked to see if this is the right behaviour, I > > have an exam tomorow :( > > > > Ubuntu 7.04 32 bit > > testsockets : \Segmentation fault (core dumped) > > > > I've tested it twice, with a clean checkout of trunk both times; same > > behaviour. > > All tests before this one worked fine. > > > > -- > > Lucian Adrian Grijincu > > > > On 6/5/07, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > >> http://apr.apache.org/dev/dist/ > >> > >> +/-1? Package to release > >> [ ] apr-0.9.14 > >> [ ] apr-1.2.9 > >> [ ] apr-iconv-1.2.0 > >> > >> Three packages so far to consider, votes welcome > >> > >> > > > > >