stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (STDCXX-938) [aCC 363/HP 11.11] SEGV in 22.locale.*.mt
Date Fri, 16 May 2008 21:27:55 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek resolved STDCXX-938.
---------------------------------

    Resolution: Fixed

Committed fix in [r657220|http://svn.apache.org/viewvc?rev=657220&view=rev].

> [aCC 363/HP 11.11] SEGV in 22.locale.*.mt
> -----------------------------------------
>
>                 Key: STDCXX-938
>                 URL: https://issues.apache.org/jira/browse/STDCXX-938
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Test Driver
>         Environment: HP-UX B.11.11 U
> aCC: HP ANSI C++ B3910B A.03.63
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.2.2
>
>   Original Estimate: 2h
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> I've reduced the problem to the following testcase...
> {noformat}
> [vitek@jenga tests]$ cat t.cpp; aCC -g t.cpp; gdb a.out
> extern "C" {
>   typedef void rw_signal_handler_t (int);
> }
> rw_signal_handler_t* const rw_sig_ign = (rw_signal_handler_t*)-2;
> unsigned rw_alarm (rw_signal_handler_t* handler)
> {
>   if (rw_sig_ign == handler) {
>     return 4;
>   }
>   else if (handler) {
>     return 5;
>   }
>   return 0;
> }
> extern "C" {
>   void my_signal_handler (int) { }
> }
> int main ()
> {
>   rw_alarm (my_signal_handler);
>   return 0;
> }
> HP gdb 5.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
> and target hppa1.1-hp-hpux11.00.
> Copyright 1986 - 2001 Free Software Foundation, Inc.
> Hewlett-Packard Wildebeest 5.0 (based on GDB) is covered by the
> GNU General Public License. Type "show copying" to see the conditions to
> change it and/or distribute copies. Type "show warranty" for warranty/support.
> ..
> (gdb) run
> Starting program: /build/vitek/4.2.2/12s/tests/a.out 
> Program received signal SIGSEGV, Segmentation fault
>   si_code: 0 - SEGV_UNKNOWN - Unknown Error.
> 0x2d60 in rw_alarm (handler=0x4000113a <my_signal_handler>) at t.cpp:9
> 9         if (rw_sig_ign == handler) {
> (gdb) where
> #0  0x2d60 in rw_alarm (handler=0x4000113a <my_signal_handler>) at t.cpp:9
> #1  0x2df0 in main () at t.cpp:26
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message