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

[Sun C++ 5.8, Solaris 10] RUA in strchr()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • External
    • None
    • Sun C++ on Solaris 10

    Description

      -------- Original Message --------
      Subject: Your Report (Review ID: 770083) - RUA in strchr()
      Date: Fri, 11 Aug 2006 18:05:33 -0600 (MDT)
      From: IncidentDaemon@sun.com <IncidentDaemon@sun.com>
      To: sebor@roguewave.com

      Dear Sun Studio Developer,

      Thank you for your interest in improving the quality of Sun Studio
      product.

      Your report has been assigned an internal review ID of 770083.

      Please be aware that the large volume of reports we receive sometimes
      prevents us from responding individually to each message.

      If the information is determined to be a new Bug or Request for
      Enhancement (RFE), or a duplicate of a known Bug or RFE, you will
      receive a followup email containing a seven digit bug number. By
      using this seven digit bug number, you may search for, view, or vote
      for this bug in the Bug Database at http://bugs.sun.com/. Please note
      that we cannot promise to fix all reported bugs.

      If you just reported an issue that could have a major impact on your
      project and require a timely response, please consider purchasing
      one of the support offerings described at
      http://developers.sun.com/prodtech/cc/support/support_services.jsp.

      The Sun Developer Network (http://developers.sun.com) is a free service
      that Sun offers. To join, visit http://developers.sun.com/global/join_sdn.html.

      Regards,
      Sun Studio Developer Bug Report Review Team

      ---------------------------------------------------------------

      Date Created: Fri Aug 11 18:05:31 MDT 2006
      Type: bug
      Customer Name: Martin Sebor
      Customer Email: sebor@roguewave.com
      SDN ID: sebor
      status: Waiting
      Category: c
      Subcategory: compiler
      Company: Rogue Wave Software
      release: studio11
      hardware: sun4
      OSversion: solaris_10
      priority: 4
      Synopsis: RUA in strchr()
      Description:
      FULL PRODUCT VERSION :
      N/A

      ADDITIONAL OS VERSION INFORMATION :
      Solaris 10

      A DESCRIPTION OF THE PROBLEM :
      dbx reports a RUA in strchr().

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ cat t.c && cc -g t.c && dbx a.out

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Clean run.
      ACTUAL -
      For information about new features see `help changes'
      To remove this message, put `dbxenv suppress_startup_message 7.5' in your .dbxrc
      Reading a.out
      Reading ld.so.1
      Reading libc.so.1
      ^C^Chave seen 2 interrupts
      dbx: warning: wait for process 7692 failed – Interrupted system call
      dbx: dbx interrupted!
      (dbx) check -access
      access checking - ON
      (dbx) run
      dbx: internal warning: td_ta_clear_event() failed – debugger service failed
      dbx: internal warning: td_ta_sync_tracking_enable(0) failed – bad thread agent
      Running: a.out
      (process id 7736)
      Reading rtcapihook.so
      Reading libdl.so.1
      Reading rtcaudit.so
      Reading libmapmalloc.so.1
      Reading libgen.so.1
      Reading libm.so.2
      Reading libc_psr.so.1
      Reading rtcboot.so
      Reading librtc.so
      RTC: Enabling Error Checking...
      RTC: Running program...
      Read from unallocated (rua):
      Attempting to read 2 bytes at address 0x10c26
      stopped in strchr at 0xebd304cc
      0xebd304cc: strchr+0x008c: ba,a 0xeb948d44 ! 0xeb948d44
      Current function is main
      5 strchr ("NULL=", 61);

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Read from unallocated (rua):
      Attempting to read 2 bytes at address 0x10c26
      stopped in strchr at 0xebd304cc
      0xebd304cc: strchr+0x008c: ba,a 0xeb948d44 ! 0xeb948d44
      Current function is main
      5 strchr ("NULL=", 61);

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      #include <string.h>

      int main ()
      {
      strchr ("NULL=", 61);
      }

      ---------- END SOURCE ----------
      workaround:
      comments: (company - Rogue Wave Software , email - sebor@roguewave.com)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: