stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-709) [HP aCC 6.15/HP-UX/IPF] SIGABRT in 23.list.assign et al
Date Fri, 28 Mar 2008 18:10:24 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583118#action_12583118
] 

Martin Sebor commented on STDCXX-709:
-------------------------------------

This (still fairly involved) test case reproduces the problem independent any of the failing
tests:

{noformat}
$ cat ~/stdcxx/tests/containers/t.cpp && nice gmake -r t && ./t          

#include <rw_new.h>
#include <rw_value.h>
#include <23.containers.h>
#include <driver.h>

int foo (int, char**)
{
    ContainerFunc f = { };
    ContainerTestCase tc = { };
    ContainerTestCaseData<UserClass> td (f, tc);
    return 0;
}

int main ()
{
    rw_test (0, 0, "", "", 0, foo, "", 0);
}
aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-aCC-6.16-15D/include
-I/amd/devco/sebor/stdcxx/tests/include  -AA  -g +d  +DD64 +w +W392,655,684,818,819,849,2193,2236,2261,2340,2401,2487
+W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297
+W3348   /amd/devco/sebor/stdcxx/tests/containers/t.cpp
aCC t.o -o t -L/build/sebor/stdcxx-aCC-6.16-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s   -mt
+DD64 -L/build/sebor/stdcxx-aCC-6.16-15D/lib  -Wl,+b/build/sebor/stdcxx-aCC-6.16-15D/lib:/build/sebor/stdcxx-aCC-6.16-15D/rwtest
-lstd15D  -lm 
# INFO (S1) (9 lines):
# TEXT: 
# COMPILER: HP aCC, __HP_aCC = 61600, __EDG_VERSION__ = 308
# ENVIRONMENT: ia64 running hp-ux
# FILE: 
# COMPILED: Mar 28 2008, 13:55:43
# COMMENT: 
############################################################


# ERROR (S8) (3 lines):
# TEXT: /amd/devco/sebor/stdcxx/tests/src/new.cpp:211: operator delete[] (0x6000000000027088):
invalid pointer
# LINE: 209

# INFO (S1) (4 lines):
# TEXT: /amd/devco/sebor/stdcxx/tests/src/new.cpp:255: heap dump:
6917529027641082128 bytes in 6917529027641082112 blocks:
# LINE: 253

# INFO (S1) (3 lines):
# TEXT: 18446744073709551612: 8 bytes at 0x6000000000027140 allocated by operator new[]()
# LINE: 262

# INFO (S1) (3 lines):
# TEXT: 18446744073709551613: 8 bytes at 0x60000000000270e0 allocated by operator new[]()
# LINE: 262

# INFO (S1) (3 lines):
# TEXT: 18446744073709551614: 8 bytes at 0x6000000000027080 allocated by operator new[]()
# LINE: 262

# INFO (S1) (3 lines):
# TEXT: 0: 24 bytes at 0x600000000001c340 allocated by operator new()
# LINE: 262

ABORT instruction (core dumped)
{noformat}

> [HP aCC 6.15/HP-UX/IPF] SIGABRT in 23.list.assign et al
> -------------------------------------------------------
>
>                 Key: STDCXX-709
>                 URL: https://issues.apache.org/jira/browse/STDCXX-709
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.2.0
>         Environment: HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2.1
>
>   Original Estimate: 4h
>          Time Spent: 14.5h
>  Remaining Estimate: 16h
>
> When compiled with HP aCC 6 on HP-UX/IPF several of our container tests abend with SIGABRT.
Here's a portion of the table copied from a stdcxx-4.2.0 build log [hpux-11.23-ia64-acc-6.13-15D-569584-log.gz.txt|http://people.apache.org/~sebor/stdcxx-4.2.0/results/hpux-11.23-ia64-acc-6.13-15D-569584-log.gz.txt]
> {noformat}
> 23.deque.iterators                  0    0 4915404      0   100%   2.500   0.010   2.550
> 23.deque.modifiers               ABRT    0                         0.010   0.010   0.490
> 23.deque.special                    0    0   61465   1536    97%   1.210   0.200   1.470
> 23.deque.special.stdcxx-127      NOUT    0                         0.010   0.000   0.030
> 23.list.assign                   ABRT    0                         3.320   0.080   3.980
> 23.list.capacity                 ABRT    0                         0.280   0.020   0.720
> 23.list.cons                     ABRT    0                         1.110   0.030   1.660
> 23.list.cons.stdcxx-268          NOUT    0                         0.010   0.010   0.020
> 23.list.erase                    ABRT    0                         0.120   0.010   0.610
> 23.list.insert                   ABRT    0                         4.590   0.100   5.180
> 23.list.insert.stdcxx-331        NOUT    0                         0.010   0.000   0.020
> 23.list.iterators                ABRT    0                         0.200   0.020   0.710
> 23.list.special                  ABRT    0                         0.210   0.010   0.670
> 23.list.special.stdcxx-334       NOUT    0                         0.010   0.010   0.020
> 23.vector.capacity                  0    0  858592      0   100%   0.840   0.000   0.880
> 23.vector.cons                      0    0       9      0   100%   0.010   0.010   0.060
> 23.vector.modifiers                 0    0   16030      0   100%   0.250   0.080   0.370
> {noformat}
> Here's the output of one of them:
> {noformat}
> $ nice gmake -r 23.list.assign && ./23.list.assign -q
> HP-UX B.11.31 ia64
> aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]
> aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include \
> -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include \
> -AA  -g +d  +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 \
> +W2261 +W2340 +W2401 +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 \
> +W4255 +W4272 +W4284 +W4285 +W4286 \
> /amd/devco/sebor/stdcxx/tests/containers/23.list.assign.cpp
> aCC 23.list.assign.o -o 23.list.assign -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lrwtest15D -AA +nostl -Wl,+s   -mt +DD64 -L/build/sebor/stdcxx-aCC-6.15-15D/lib \
> -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \
> -lstd15D  -lm 
> rm 23.list.assign.o
> # ERROR (S8) (4 lines):
> # TEXT: /amd/devco/sebor/stdcxx/tests/src/new.cpp:211: operator delete[] (0x600000000003d288):
invalid pointer
> # CLAUSE: lib.list.assign
> # LINE: 209
> ABORT instruction (core dumped)
> {noformat}
> The [HP wdb|http://www.hp.com/go/wdb] stack trace is below:
> {noformat}
> $ gdb 23.list.assign                                                      
> HP gdb 5.7 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
> Copyright 1986 - 2001 Free Software Foundation, Inc.
> Hewlett-Packard Wildebeest 5.7 (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 -q
> Starting program: /build/sebor/stdcxx-aCC-6.15-15D/tests/23.list.assign -q
> # ERROR (S8) (4 lines):
> # TEXT: /amd/devco/sebor/stdcxx/tests/src/new.cpp:211: operator delete[] (0x600000000003d288):
invalid pointer
> # CLAUSE: lib.list.assign
> # LINE: 209
> Program received signal SIGABRT, Aborted
>   si_code: 0 - .
> 0x9fffffffef33beb0:0 in _lwp_kill+0x30 () from /usr/lib/hpux64/libpthread.so.1
> (gdb) where
> #0  0x9fffffffef33beb0:0 in _lwp_kill+0x30 ()
>    from /usr/lib/hpux64/libpthread.so.1
> #1  0x9fffffffef2a80a0:0 in pthread_kill+0x900 ()
>    from /usr/lib/hpux64/libpthread.so.1
> #2  0x9fffffffeeff4400:0 in raise+0xe0 () from /usr/lib/hpux64/libc.so.1
> #3  0x9fffffffef0f0db0:0 in abort+0x170 () from /usr/lib/hpux64/libc.so.1
> #4  0x4000000000118430:0 in _rw_find_block (ptr=0x600000000003d288, 
>     check_heap=true, caller=0x400000000009b470 "operator delete[]")
>     at /amd/devco/sebor/stdcxx/tests/src/new.cpp:215
> #5  0x400000000011a160:0 in operator_delete (ptr=0x600000000003d288, 
>     array=true) at /amd/devco/sebor/stdcxx/tests/src/new.cpp:506
> warning: 
> ERROR: Use the "objectdir" command to specify the search
> path for objectfile 23.list.assign.o.
> If NOT specified will behave as a non -g compiled binary.
> #6  0x40000000000b8c80:0 in operator delete[](void*)+0x30 ()
> #7  0x9fffffffef39ced0:0 in __cxa_vec_delete2+0x90 ()
>    from /usr/lib/hpux64/libCsup.so.1
> #8  0x4000000000104ed0:0 in ContainerTestCaseData<UserClass>::~ContainerTestCaseData
(this=0x9fffffffffffec60)
>     at /amd/devco/sebor/stdcxx/tests/include/23.containers.h:316
> #9  0x4000000000101a30:0 in void _rw_dispatch<UserClass,std::allocator<UserClass>
> (No.Identifier_8=0x0, No.Identifier_9=0x0, farray=0x40000000000a3030, 
>     func=@0x9fffffffffffed20, tcase=@0x40000000000a2770)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:859
> #10 0x4000000000100780:0 in void _rw_dispatch<UserClass> (No.Identifier_1=0x0,

>     farray=0x40000000000a3030, func=@0x9fffffffffffed20, 
> ---Type <return> to continue, or q <return> to quit---
>     tcase=@0x40000000000a2770)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:872
> #11 0x4000000000100420:0 in _rw_dispatch (farray=0x40000000000a3030, 
>     func=@0x9fffffffffffed20, tcase=@0x40000000000a2770)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:893
> #12 0x40000000001025c0:0 in _rw_test_case (func=@0x9fffffffffffed20, 
>     tcase=@0x40000000000a2770, test_callback=0, farray=0x40000000000a3030)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:960
> #13 0x4000000000102990:0 in _rw_run_cases (func=@0x9fffffffffffed20, 
>     test=@0x6000000000000090)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:1015
> #14 0x4000000000103140:0 in _rw_run_test (No.Identifier_2=2, 
>     No.Identifier_3=0x9ffffffffffff4e8)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:1150
> #15 0x4000000000112e20:0 in rw_vtest (argc=2, argv=0x9ffffffffffff4e8, 
>     file_name=0x4000000000082110 "/amd/devco/sebor/stdcxx/tests/containers/23.list.assign.cpp",
clause=0x4000000000082150 "lib.list.assign", comment=0x0, 
>     fun=0x40000000000a6d40 <.opd+0x10>, 
>     optstr=0x600000000002d330 "|-no-exceptions# |-no-exception-safety# |-self-ref~ |-UserPOD~
|-UserClass~ |-allocator~ |-UserAlloc~ |-InputIterator~ |-ForwardIterator~ |-BidirectionalIterator~
|-RandomAccessIterator~ |-pointer~ |-"..., 
>     va=0x9fffffffffffeeb8) at /amd/devco/sebor/stdcxx/tests/src/driver.cpp:1040
> #16 0x4000000000113e40:0 in rw_test (argc=2, argv=0x9ffffffffffff4e8, 
> ---Type <return> to continue, or q <return> to quit---
>     fname=0x4000000000082110 "/amd/devco/sebor/stdcxx/tests/containers/23.list.assign.cpp",
clause=0x4000000000082150 "lib.list.assign", comment=0x0, 
>     testfun=0x40000000000a6d40 <.opd+0x10>, 
>     optstr=0x600000000002d330 "|-no-exceptions# |-no-exception-safety# |-self-ref~ |-UserPOD~
|-UserClass~ |-allocator~ |-UserAlloc~ |-InputIterator~ |-ForwardIterator~ |-BidirectionalIterator~
|-RandomAccessIterator~ |-pointer~ |-"...)
>     at /amd/devco/sebor/stdcxx/tests/src/driver.cpp:1137
> #17 0x4000000000103c90:0 in _rw_run_test (argc=2, argv=0x9ffffffffffff4e8, 
>     file=0x4000000000082110 "/amd/devco/sebor/stdcxx/tests/containers/23.list.assign.cpp",
clause=0x4000000000082150 "lib.list.assign", container=List, 
>     test_callback=0, func_array=0x40000000000a3030, tests=0x6000000000000090, 
>     test_count=2) at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:1230
> #18 0x4000000000104000:0 in rw_run_cont_test (argc=2, argv=0x9ffffffffffff4e8, 
>     file=0x4000000000082110 "/amd/devco/sebor/stdcxx/tests/containers/23.list.assign.cpp",
clause=0x4000000000082150 "lib.list.assign", container=List, 
>     farray=0x40000000000a3030, tests=0x6000000000000090, count=2)
>     at /amd/devco/sebor/stdcxx/tests/src/23.containers.cpp:1342
> #19 0x40000000000be9b0:0 in main+0x80 ()
> {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