You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/08/16 16:46:14 UTC

[jira] Commented: (STDCXX-273) [Sun C++ 5.8/Solaris 10] RUA in strchr()

    [ http://issues.apache.org/jira/browse/STDCXX-273?page=comments#action_12428407 ] 
            
Martin Sebor commented on STDCXX-273:
-------------------------------------

-------- Original Message --------
Subject: Re: (Incident Review ID: 770083) RUA in strchr()
Date: Wed, 16 Aug 2006 03:14:02 -0600 (MDT)
From: Sun Microsystems <In...@sun.com>
To: sebor@roguewave.com

--- Note: you can send us updates about your Incident ---
--- by replying to this mail.  Place new information  ---
--- above these lines.  Do not include attachments.   ---
--- Our system ignores attachments and anything below ---
--- these lines.                                      ---

Hi Martin Sebor,

Please install dbx patch 121023-02. Solaris 10 string functions problems should go away with this new patch. You can read more about this patch in the blog (http://blogs.sun.com/roller/page/dbx?entry=latest_updates_to_run_time) and in CR 6372403.

Regards,
Rose

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This message, including any attachments, is for the intended
recipient(s) only.  If you are not the intended recipient(s), please
reply to the sender, delete this message, and refrain from disclosing,
copying, or distributing this message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--------------- Previous Messages ----------------

----------------------------------------------------
2006-08-14 12:29:48.238   UPDATE RECEIVED FROM CUSTOMER
----------------------------------------------------

Sun Microsystems wrote:

The 2 interrupts is a separate problem that I haven't reported
yet. Our dbx hangs after reading the last .so (in a call to
write on a descriptor trying to write the debuggee) and must
be interrupted.  Some of the truss output relevant to the
descriptor is below.

I'm using dbx 7.5 and Sun C 5.8 on a Solaris 10/SPARC box:

$ dbx -V
Sun Dbx Debugger 7.5 Patch 121023-01 2006/02/09
...
$ cc -V
cc: Sun C 5.8 Patch 121015-02 2006/03/29
...
$ uname -a
SunOS doc 5.10 Generic_118822-19 sun4u sparc SUNW,Ultra-Enterprise

Martin

The (abbreviated) truss output follows:

[...]
open("/proc/21792/ctl", O_WRONLY)		= 8
fcntl(8, F_SETFD, 0x00000001)			= 0
[...]
write(8, 0x100691470, 32)	(sleeping...)
     Received signal #2, SIGINT, in write() [caught]
write(8, "\0\0\0\0\0\0\010\0\0\0\0".., 32)	= 32
lwp_sigmask(SIG_SETMASK, 0x00000002, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
setcontext(0xFFFFFFFF7FFFE960)
lwp_sigmask(SIG_SETMASK, 0x00020000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
sigaction(SIGCLD, 0x00000000, 0xFFFFFFFF7FFFF3F0) = 0
close(7)					= 0
close(9)					= 0
close(11)					= 0
close(-1)					Err#9 EBADF
close(12)					= 0
close(-1)					Err#9 EBADF
close(-1)					Err#9 EBADF
close(-1)					Err#9 EBADF
close(-1)					Err#9 EBADF
close(8)					= 0
     Received signal #2, SIGINT, in waitid() [caught]
waitid(P_PID, 21792, 0xFFFFFFFF7FFFF170, WEXITED|WTRAPPED|WSTOPPED) 
Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00020002, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
write(1, " h a v e   s e e n   2  ".., 23)	= 23
setcontext(0xFFFFFFFF7FFFE910)
write(2, " d b x :   w a r n i n g".., 71)	= 71
sigaction(SIGCLD, 0xFFFFFFFF7FFFF2E0, 0x00000000) = 0
sigaction(SIGCLD, 0xFFFFFFFF7FFFF2E0, 0x00000000) = 0
write(2, " d b x :   d b x   i n t".., 22)	= 22
[...]

> 
----------------------------------------------------
2006-08-13 23:17:25.234   EMAIL SENT BY Rose
----------------------------------------------------

From: Rose Lee
To: sebor@roguewave.com
Subject: Re: (Incident Review ID: 770083) RUA in strchr()
X-IM-Review-ID: 

Hi Martin Sebor,

I was not able to reproduce your problem. 
First, I didn't get the 2 warnings at the end:
==
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!
==

Secondly, I did get a clean run(with no failed messages like below)
==
dbx: internal warning: td_ta_clear_event() failed -- debugger service failed
dbx: internal warning: td_ta_sync_tracking_enable(0) failed -- bad thread agent
==

Can you please provide more information:
- The output of 'dbx -V'( I am using Sun Dbx Debugger 7.5 2005/10/13)
- I tried it on Solaris 10 sun4u sparc machine, are you using the same O/S and architecture?

Regards,
Rose

> [Sun C++ 5.8/Solaris 10] RUA in strchr()
> ----------------------------------------
>
>                 Key: STDCXX-273
>                 URL: http://issues.apache.org/jira/browse/STDCXX-273
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: Sun C++ on Solaris 10
>            Reporter: Martin Sebor
>            Priority: Critical
>
> -------- 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 <In...@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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira