This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/9584: stl_tree.h:_Rb_tree_rebalance() __x->_M_parent->_M_parent not initialized?


>Number:         9584
>Category:       c++
>Synopsis:       stl_tree.h:_Rb_tree_rebalance() __x->_M_parent->_M_parent not initialized?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 05 15:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     M bumble
>Release:        gcc-3.2
>Organization:
>Environment:
Linux cadence.glidepath.org 2.4.20-pre7 #9 SMP Sun Jan 26 12:17:55 EST 2003 i686 i686 i386 GNU/Linux

/usr/local/build/static/bin/gcc -v
Reading specs from /usr/local/build/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/usr/local/build/static --enable-languages=java,c,c++,f77,objc --disable-nls --disable-shared
Thread model: posix
gcc version 3.2
>Description:
In stl_tree.h, 
function _Rb_tree_rebalance(_Rb_tree_node_base* __x,         _Rb_tree_node_base*& __root)

Line: 312

	if (__x->_M_parent ==   __x->_M_parent->_M_parent->_M_left) 

In my test code, __x->_M_parent->_M_parent == 0x0, so during the attempt above to get the left node of 0x0, the software crashes.  I am trying to figure out where the node should have been initialized, but meanwhile, placing this bug report.  I am writing an allocator.  

Thanks,

Marc
>How-To-Repeat:
Works with generic STL calls when no allocator specified but not with my allocator. I believe that my allocator matches the standard allocator interface.  I am not sure what, if anything might else be needed.

Still studying this issue.  Early report
>Fix:
none yet
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]