Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-87

[Sun C++ 5.9] RUI in std::set::insert()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1.2, 4.1.3, 4.1.4
    • 4.2.2
    • 23. Containers
    • None
    • SunPro 5.7, 5.9/Solaris 10

    • Incorrect Behavior

    Description

      This test case was distilled from the one posted in this thread:
      http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200512.mbox/%3c4FA4B7B3231C5D459E7BAD020213A94201F5F481@bco-exchange.bco.roguewave.com%3e

      $ cat t.cpp && nice gmake t && dbx -q t
      #include <set>

      int main()
      {
      std::set<int>().insert (0);
      }
      generating dependencies for t.cpp
      CC -c -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/sunpro-5.7.j4-11s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -library=%none -g +w t.cpp
      CC t.o -o t -library=%none -L/build/sebor/sunpro-5.7.j4-11s/lib -L/build/sebor/sunpro-5.7.j4-11s/lib -lstd11s -lm
      ^C^Chave seen 2 interrupts
      dbx: warning: wait for process 24188 failed – Interrupted system call
      dbx: dbx interrupted!
      (dbx) check -all
      access checking - ON
      memuse checking - ON
      (dbx) run
      Running: t
      (process id 24234)
      RTC: Enabling Error Checking...
      RTC: Running program...
      Read from uninitialized (rui):
      Attempting to read 3 bytes at address 0xffbff821
      which is 265 bytes above the current stack pointer
      stopped in std::pair<_rw::rw_debug_iter<rw::rb_tree<int,int,rw::ident<int,int>,std::less<int>,std::allocator<int> >,rw::rw_tree_iter<int,int,int*,int&,rw::rw_rb_tree_node<std::allocator<int>,int,int,rw::ident<int,int> > >,rw::rw_tree_iter<int,int,int*,int&,rw::rw_rb_tree_node<std::allocator<int>,int,int,rw::_ident<int,int> > > >,bool>::operator= at 0x0001cd3c
      0x0001cd3c: operator=+0x0024: ba,a 0x00049b3c ! 0x49b3c

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 4h Original Estimate - 4h
                4h
                Remaining:
                Time Spent - 6h Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - 6h Remaining Estimate - 2h
                6h