Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2255

svn_ra_dav unknown crash with SIGSEGV

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • trunk
    • unscheduled
    • libsvn_ra_neon
    • None

    Description

      since re-compile, 'LC_MESSAGES=en_US.UTF-8 svn ls
      http://foo.bar.baz/svn/qux/trunk' crashes with SIGSEGV.
      unusual condition, successfully finish if remove 'LC_MESSAGES=en_US.UTF-8'.
      
      anyway, trace with gdb, 
      
      >Breakpoint 4, find_entry (ht=0x80694b0, key=0xb77f9897, klen=15, val=0x80655d0)
      >    at tables/apr_hash.c:274
      >274         he->next = NULL;
      >(gdb) p (const char *)key
      >$16 = 0xb77f9897 "svn:auth:config"
      
      ....
      
      >Program received signal SIGSEGV, Segmentation fault.
      >0xb7d1446a in find_entry (ht=0x80694b0, key=0xb7e8f897, klen=15, val=0x80655d0)
      >    at tables/apr_hash.c:261
      >
      >261             if (he->hash == hash
      >(gdb) p he->key
      >$93 = (const void *) 0xb77f9897
      >(gdb) p (const char *)he->key
      >$94 = 0xb77f9897 <Address 0xb77f9897 out of bounds>
      
      and, do ugly hack to apr_pstrdup for key (attached), works without SIGSEGV.
      

      Original issue reported by aipot

      Attachments

        1. 1_strdup-literal.diff
          1 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: