You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/02/27 19:48:54 UTC

[jira] Created: (STDCXX-156) [NetBSD 3.0] SIGSEGV in tests/self/printf.cpp

[NetBSD 3.0] SIGSEGV in tests/self/printf.cpp
---------------------------------------------

         Key: STDCXX-156
         URL: http://issues.apache.org/jira/browse/STDCXX-156
     Project: C++ Standard Library
        Type: Bug
  Components: Tests  
    Versions: 4.1.3    
    Reporter: Martin Sebor


>From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200602.mbox/%3c43FF6F6E.6040305@roguewave.com%3e:

While running the different executables in the stdcxx test suite, I 
encountered a segfault executing the printf selftest.  The following is 
the backtrace.

> td143.testdrive.hp.com> gdb 0.printf
> GNU gdb 5.3nb1
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "i386--netbsdelf"...
> (gdb) run
> Starting program: /tmp/ablackrw/stdcxx-11d/tests/0.printf
> "%": percent sign
> "%c": character formatting
> extension: "%{c}": escaped character
> extension: "%{#c}": quoted escaped character
> "%lc": wide character
> extension: "%{lc}": escaped wide character
> extension: "%{#lc}": quoted escaped wide character
> "%s": character string
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xbdab6f2a in memchr () from /usr/lib/libc.so.12
> (gdb) bt
> #0  0xbdab6f2a in memchr () from /usr/lib/libc.so.12
> #1  0x08079164 in __ps_strings ()
> #2  0x0806a154 in _rw_fmtstr(FmtSpec const&, char**, unsigned*, char 
> const*, unsigned) (spec=@0xbfbfe7a0, pbuf=0xbfbfece4, 
> pbufsize=0xbfbfece0,
>     str=0x1 <Error reading address 0x1: Invalid argument>, len=4294967295)
>     at /house/ablackrw/stdcxx/tests/src/printf.cpp:3051
> #3  0x080663b4 in _rw_vasnprintf_c99(FmtSpec*, unsigned, char**, 
> unsigned*, char**) (pspec=0xbfbfe7a0, paramno=0, pbuf=0xbfbfece4, 
> pbufsize=0xbfbfece0,
>     pva=0xbfbfeca8) at /house/ablackrw/stdcxx/tests/src/printf.cpp:681
> #4  0x08066ee9 in rw_vasnprintf(char**, unsigned*, char const*, char*) (
>     pbuf=0xbfbfece4, pbufsize=0xbfbfece0, fmt=0x80728fc "%s",
>     varg=0xbfbfecf4 "\001") at 
> /house/ablackrw/stdcxx/tests/src/printf.cpp:1035
> #5  0x0806c21d in rw_sprintfa(char const*, ...) (fmt=0x80728fc "%s")
>     at /house/ablackrw/stdcxx/tests/src/printf.cpp:4004
> #6  0x0804d9b0 in test_string() ()
>     at /house/ablackrw/stdcxx/tests/self/0.printf.cpp:343
> #7  0x08065763 in main ()
>     at /house/ablackrw/stdcxx/tests/self/0.printf.cpp:2235
> #8  0x08049516 in ___start ()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira