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

translate-test failure/crash on Mac OS X (was Re: Subversion 1.2.0 Release Candidate 2 released.)

From: Jim Correia <jim.correia_at_pobox.com>
Date: 2005-04-26 21:07:57 CEST

On Apr 25, 2005, at 2:59 PM, Ben Reser wrote:

> The second release candidate of Subversion 1.2.0 is ready and
> available
> from:
>
> http://subversion.tigris.org/downloads/subversion-1.2.0-rc2.tar.gz

Building from the tarball with GCC 4 translate-test crashes as follows.

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 libSystem.B.dylib 0x90003228 strlen + 8
1 translate-test 0x00002d6c substitute_and_verify + 2712
(translate-test.c:636)
2 translate-test 0x00002f6c noop + 108 (translate-test.c:672)
3 translate-test 0x00004b94 do_test_num + 212
(svn_tests_main.c:159)
4 translate-test 0x00005030 main + 704 (svn_tests_main.c:311)
5 translate-test 0x00001a54 _start + 348 (crt.c:272)
6 translate-test 0x000018f4 start + 60

Thread 0 crashed with PPC Thread State:
   srr0: 0x90003228 srr1: 0x0200f030 vrsave: 0x00000000
     cr: 0x24222422 xer: 0x20000000 lr: 0x00002d6c ctr: 0x90003220
     r0: 0x00002d6c r1: 0xbffff100 r2: 0xffffffff r3: 0x00000000
     r4: 0x00000000 r5: 0x000287d4 r6: 0x000287ec r7: 0xffffffff
     r8: 0x00000000 r9: 0x00000000 r10: 0x00013b98 r11: 0x0002b3d8
    r12: 0x90003220 r13: 0xbffff138 r14: 0x000322e0 r15: 0x00000000
    r16: 0x00000000 r17: 0x20000000 r18: 0x00000001 r19: 0x00000000
    r20: 0x00000000 r21: 0x00000000 r22: 0x00000000 r23: 0x02808460
    r24: 0x02808450 r25: 0x20000000 r26: 0x02808418 r27: 0x00000000
    r28: 0x00025d90 r29: 0x028086f0 r30: 0xbffff154 r31: 0x000022e0

Looks like NULL is passed to strlen, which causes the crash. (The if
on the preceding line appears to be ignored. I haven't disassembled
the output to see why.)

Building with GCC 3 makes the problem go away.

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 26 21:09:05 2005

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