You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Travis Vitek (JIRA)" <ji...@apache.org> on 2007/11/17 00:50:43 UTC

[jira] Updated: (STDCXX-649) [IBM XLC++ 9.0/AIX 5.3] SIGSEGV in 0.printf

     [ https://issues.apache.org/jira/browse/STDCXX-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Travis Vitek updated STDCXX-649:
--------------------------------

    Attachment: stdcxx-649.patch


2007-11-16  Travis Vitek  <vi...@roguewave.com>

	STDCXX-649
	* printf.cpp (_rw_fmtinteger): Implement `z' format specifier
	support to avoid issues on platforms where size_t is not the
	same size as int.

> [IBM XLC++ 9.0/AIX 5.3] SIGSEGV in 0.printf 
> --------------------------------------------
>
>                 Key: STDCXX-649
>                 URL: https://issues.apache.org/jira/browse/STDCXX-649
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.2.0
>         Environment: 64-bit builds only
>            Reporter: Travis Vitek
>             Fix For: 4.2.1
>
>
> extension: "%{@}" nested format directive
> Segmentation fault in memchr.memchr at 0x90000000007fa84 ($t1)
> 0x90000000007fa84 (memchr+0x18) 8ca40001       lbzu   r5,0x1(r4)
> Here is the stack trace
> (dbx) where
> memchr.memchr(??, ??, ??) at 0x90000000007fa84
> collate.memchr(const void*,int,unsigned long)(0x18786400000000, 0x0, 0x1000), line 125 in "string.h"
> unnamed block $b893, line 221 in "memattr.cpp"
> unnamed block $b891, line 221 in "memattr.cpp"
> __rw_memattr(const void*,unsigned long,int)(addr = 0x0018786400000000, nbytes = 18446744073709551615, attr = -1), line 221 in "memattr.cpp"
> printf.strlen(const char*)(0xfffffffffffd8a0, 0xffffffffffff648, 0x18786400000000, 0xffffffffffffffff, 0x300000003), line 1939 in "printf.cpp"
> _rw_fmtstr(const FmtSpec&,Buffer&,const char*,unsigned long)(spec = &(...), buf = &(...), str = (invalid char ptr (0x0018786400000000)), len = 18446744073709551615), line 2373 in "printf.cpp"
> unnamed block $b661, line 597 in "printf.cpp"
> _rw_vasnprintf_c99(FmtSpec*,unsigned long,Buffer&,VarArgs*)(pspec = 0x0fffffffffffd858, paramno = 1, buf = &(...), pva = 0x0fffffffffffe3c8), line 597 in "printf.cpp"
> unnamed block $b709, line 901 in "printf.cpp"
> unnamed block $b708, line 901 in "printf.cpp"
> unnamed block $b704, line 901 in "printf.cpp"
> _rw_pvasnprintf(Buffer&,const char*,VarArgs*)(buf = &(...), fmt = ", %#s)", pva = 0x0fffffffffffe3c8), line 901 in "printf.cpp"
> unnamed block $b677, line 3229 in "printf.cpp"
> _rw_fmtnested(const FmtSpec&,Buffer&,const char*,VarArgs*)(spec = &(...), buf = &(...), fmt = "(%zu, %#s)", pva = 0x0ffffffffffff670), line 3229 in "printf.cpp"
> unnamed block $b679, line 2604 in "printf.cpp"
> _rw_vasnprintf_ext(FmtSpec*,unsigned long,Buffer&,const char*,VarArgs*)(pspec = 0x0fffffffffffeac8, paramno = 0, buf = &(...), fmt = " .*A@", pva = 0x0ffffffffffff670), line 2604 in "printf.cpp"
> unnamed block $b706, line 810 in "printf.cpp"
> unnamed block $b704, line 810 in "printf.cpp"
> _rw_pvasnprintf(Buffer&,const char*,VarArgs*)(buf = &(...), fmt = "{%{ .*A@}}", pva = 0x0ffffffffffff670), line 810 in "printf.cpp"
> rw_vasnprintf(char**,unsigned long*,const char*,char*)(pbuf = 0x0ffffffffffff760, pbufsize = 0x0ffffffffffff768, fmt = "{%{ .*A@}}", varg = ""), line 1013 in "printf.cpp"
> rw_sprintfa(const char*,...)(fmt = "{%{ .*A@}}", ... = 0x3, 0x100188370, 0x11000ed18, 0x0, 0x0, 0x1, 0x10030260), line 3316 in "printf.cpp"
> test_nested_format()(), line 2953 in "0.printf.cpp"
> main(), line 3064 in "0.printf.cpp"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.