[pcre-dev] [Bug 676] pcre 7.4 and 7.6 core dumped on aix 4.3…

Top Page
Delete this message
Author: and_gate
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 676] pcre 7.4 and 7.6 core dumped on aix 4.3.3.0
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=676




--- Comment #3 from and_gate <mallixhere@???> 2008-03-01 13:39:55 ---
OS : AIX 3 4 000839CB4C00 (AIX 4.3.3)
Used native compilers : CC=xlc CXX=xlC

I noticed RE constructor being called twice. And its failing once the
StringPiece constructor is called. I dropped few printf statements in, plz
ignore them.

I am pasting here full back-trace, from "main" to core dump.

main (argc=1, argv=0x2ff216e4) at pcrecpp_unittest.cc:811
811       CHECK(RE("h.*o").FullMatch("hello"));
(gdb) 
pcrecpp::RE::__ct (this=0x2ff1fda0, pat=0x100196a8) at pcrecpp.h:497
497       RE(const char* pat) { printf("RE const char* : %s\n",pat);Init(pat,
NULL); }
(gdb) 
__ct__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc (
    this=0x2ff1fda0) at /usr/vacpp/include/xstring:84
84              _String_val(_Alty _Al = _Alty())
(gdb) 
__ct__Q2_3std9allocatorXTc_Fv (this=0x2ff1fc40)
    at /usr/vacpp/include/xmemory:123
123                     {}
(gdb) 
123                     {}
(gdb) 
__ct__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc (
    this=0x2ff1fda0) at /usr/vacpp/include/xstring:117
117                     : _Mybase()
(gdb) 
__ct__Q2_3std11_String_valXTcTQ2_3std9allocatorXTc__FQ2_3std9allocatorXTc_ (
    this=0x2ff1fda0, _Al=@0x2ff1fc40) at /usr/vacpp/include/xstring:85
85                      : _Alval(_Al) {}
(gdb) 
__ct__Q2_3std9allocatorXTc_FRCQ2_3std9allocatorXTc_ (this=0x2ff1fda0, 
    =@0x2ff1fc40) at /usr/vacpp/include/xmemory:125
125                     {}
(gdb) 
125                     {}
(gdb) 
__ct__Q2_3std11_String_valXTcTQ2_3std9allocatorXTc__FQ2_3std9allocatorXTc_ (
    this=0x2ff1fda0, _Al=@0x2ff1fc40) at /usr/vacpp/include/xstring:85
85                      : _Alval(_Al) {}
(gdb) 
__ct__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc (
    this=0x2ff1fda0) at /usr/vacpp/include/xstring:118
118                     {_Tidy(); }
(gdb) 
_Tidy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Fb
(this=0x2ff1fda0, _Built=false) at /usr/vacpp/include/xstring.t:496
496             {if (!_Built || _Ptr == 0)
(gdb) 
497                     ;
(gdb) 
502             _Ptr = 0, _Len = 0, _Res = 0; }
(gdb) 
502             _Ptr = 0, _Len = 0, _Res = 0; }
(gdb) 
_Copy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=4) at /usr/vacpp/include/xstring.t:454
454             _Ptr = _S + 1;
(gdb) 
455             _Refcnt(_Ptr) = 0;
(gdb) 
_Refcnt__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCc
(this=0x2ff1fc90, _U=0x20002729) at /usr/vacpp/include/xstring:498
498                     {return (((unsigned char *)_U)[-1]); }
(gdb) 
498                     {return (((unsigned char *)_U)[-1]); }
(gdb) 
_Copy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=4) at /usr/vacpp/include/xstring.t:456
456             _Res = _Ns;
(gdb) 
457             _Eos(_Olen); }
(gdb) 
_Eos__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=0) at /usr/vacpp/include/xstring:477
477                     {_Tr::assign(_Ptr[_Len = _N], _E()); }
(gdb) 
assign__Q2_3std11char_traitsXTc_FRcRCc (_X=@0x20002729, _Y=@0x2ff1fa90)
    at /usr/vacpp/include/iosfwd:247
247                     {_X = _Y; }
(gdb) 
247                     {_X = _Y; }
(gdb) 
_Eos__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=0) at /usr/vacpp/include/xstring:477
477                     {_Tr::assign(_Ptr[_Len = _N], _E()); }
(gdb) 
_Copy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=4) at /usr/vacpp/include/xstring.t:457
457             _Eos(_Olen); }
(gdb) 
_Grow__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUlb
(this=0x2ff1fc90, _N=4, _Trim=16777217) at /usr/vacpp/include/xstring.t:491
491                     return (true); }}
(gdb) 
0x100167b4      491                     return (true); }}
(gdb) 
assign__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCcUl
(this=0x2ff1fc90, _S=0x100196a8, _N=4)
    at /usr/vacpp/include/xstring.t:108
108                     {_Tr::copy(_Ptr, _S, _N);
(gdb) 
copy__Q2_3std11char_traitsXTc_FPcPCcUl (_U=0x20002729 "", _V=0x100196a8, _N=4)
    at /usr/vacpp/include/iosfwd:258
258                     {return ((_E *)memcpy(_U, _V, _N)); }
(gdb) 
memcpy (__s1=0x20002729, __s2=0x100196a8, __n=4)
    at /usr/vacpp/include/string.h:115
115               { return __memcpy (__s1, __s2, __n); }
(gdb) 
115               { return __memcpy (__s1, __s2, __n); }
(gdb) 
copy__Q2_3std11char_traitsXTc_FPcPCcUl (_U=0x20002729 "h.*o", _V=0x100196a8, 
    _N=4) at /usr/vacpp/include/iosfwd:258
258                     {return ((_E *)memcpy(_U, _V, _N)); }
(gdb) 
assign__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCcUl
(this=0x2ff1fc90, _S=0x100196a8, _N=4)
    at /usr/vacpp/include/xstring.t:109
109                     _Eos(_N); }
(gdb) 
_Eos__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=4) at /usr/vacpp/include/xstring:477
477                     {_Tr::assign(_Ptr[_Len = _N], _E()); }
(gdb) 
assign__Q2_3std11char_traitsXTc_FRcRCc (_X=@0x2000272d, _Y=@0x2ff1fb50)
    at /usr/vacpp/include/iosfwd:247
247                     {_X = _Y; }
(gdb) 
247                     {_X = _Y; }
(gdb) 
_Eos__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FUl
(this=0x2ff1fc90, _N=4) at /usr/vacpp/include/xstring:477
477                     {_Tr::assign(_Ptr[_Len = _N], _E()); }
(gdb) 
assign__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCcUl
(this=0x2ff1fc90, _S=0x100196a8, _N=4)
    at /usr/vacpp/include/xstring.t:110
110             return (*this); }
(gdb) 
110             return (*this); }
(gdb) 
assign__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCc
(this=0x2ff1fc90, _S=0x100196a8) at /usr/vacpp/include/xstring:239
239                     {return (assign(_S, _Tr::length(_S))); }
(gdb) 
__ct__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc (
    this=0x2ff1fc90, _S=0x100196a8) at /usr/vacpp/include/xstring:141
141                     {_Tidy(), assign(_S); }
(gdb) 
__dt__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc (
    this=0x2ff1fc90, __dtorFlags=2) at /usr/vacpp/include/xstring:197
197                     {_Tidy(true); }
(gdb) 
_Tidy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Fb
(this=0x2ff1fc90, _Built=16777217) at /usr/vacpp/include/xstring.t:496
496             {if (!_Built || _Ptr == 0)
(gdb) 
498             else if (_Refcnt(_Ptr) == 0 || _Refcnt(_Ptr) == _FROZEN)
(gdb) 
_Refcnt__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCc
(this=0x2ff1fc90, _U=0x20002729) at /usr/vacpp/include/xstring:498
498                     {return (((unsigned char *)_U)[-1]); }
(gdb) 
498                     {return (((unsigned char *)_U)[-1]); }
(gdb) 
_Tidy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Fb
(this=0x2ff1fc90, _Built=16777217) at /usr/vacpp/include/xstring.t:499
499                     _Mybase::_Alval.deallocate(_Ptr - 1, _Res + 2);
(gdb) 
deallocate__Q2_3std9allocatorXTc_FPcUl (this=0x2ff1fc90, _P=0x20002728 "", =33)
    at /usr/vacpp/include/xmemory:138
138                     {operator delete(_P); }
(gdb) 
138                     {operator delete(_P); }
(gdb) 
_Tidy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Fb
(this=0x2ff1fc90, _Built=16777217) at /usr/vacpp/include/xstring.t:500
500             else
(gdb) 
502             _Ptr = 0, _Len = 0, _Res = 0; }
(gdb) 
502             _Ptr = 0, _Len = 0, _Res = 0; }
(gdb) 
__dt__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc (
    this=0x2ff1fc90, __dtorFlags=2) at /usr/vacpp/include/xstring:197
197                     {_Tidy(true); }
(gdb) 
pcrecpp::RE::__ct (this=0x2ff1fda0, pat=0x100196a8) at pcrecpp.h:497
497       RE(const char* pat) { printf("RE const char* : %s\n",pat);Init(pat,
NULL); }
(gdb) 
pcrecpp::StringPiece::__ct (this=0x2ff20d08, str=0x100196b0)
    at ./pcre_stringpiece.h:71
71          : ptr_(str), length_(static_cast<int>(strlen(ptr_))) { 
(gdb) 
strlen (__s=0x100196b0) at /usr/vacpp/include/string.h:105
105               { return __strlen (__s); }
(gdb) 
pcrecpp::StringPiece::__ct (this=0x2ff20d08, str=0x100196b0)
    at ./pcre_stringpiece.h:72
72          printf("stringpiec ct: %s %d\n",str,length_);
(gdb) 
stringpiec ct: hello 5
73          printf("stringpiec ct: %s %d\n",ptr_,length_);
(gdb) 
stringpiec ct: hello 5
74          }
(gdb) 
74          }
(gdb) 


Program received signal SIGILL, Illegal instruction.
0x0 in ?? () from (unknown load module)


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email