Bug 27249 - FAIL: obj-c++.dg/encode-8.mm execution test
Summary: FAIL: obj-c++.dg/encode-8.mm execution test
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: objc++ (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-21 23:38 UTC by John David Anglin
Modified: 2010-06-09 15:22 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail: 4.1.3 4.2.4 4.3.0
Last reconfirmed: 2008-02-08 01:52:15


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2006-04-21 23:38:24 UTC
Executing on host: /home/dave/gcc-4.2/objdir/gcc/testsuite/obj-c++/../../g++ -B/
home/dave/gcc-4.2/objdir/gcc/testsuite/obj-c++/../../ /home/dave/gcc-4.2/gcc/gcc
/testsuite/obj-c++.dg/encode-8.mm  -nostdinc++ -I/home/dave/gcc-4.2/objdir/hppa-
linux/libstdc++-v3/include/hppa-linux -I/home/dave/gcc-4.2/objdir/hppa-linux/lib
stdc++-v3/include -I/home/dave/gcc-4.2/gcc/libstdc++-v3/libsupc++ -I/home/dave/g
cc-4.2/gcc/libstdc++-v3/include/backward -I/home/dave/gcc-4.2/gcc/libstdc++-v3/t
estsuite -fmessage-length=0  -lobjc -I/home/dave/gcc-4.2/gcc/gcc/testsuite/../..
/libobjc    -L/home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs  -L/
home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs -L/home/dave/gcc-4.
2/objdir/hppa-linux/./libiberty -L/home/dave/gcc-4.2/objdir/hppa-linux/./libobjc
/.libs -lobjc -lm   -o ./encode-8.exe    (timeout = 300)
PASS: obj-c++.dg/encode-8.mm (test for excess errors)
Setting LD_LIBRARY_PATH to .:/home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3
/src/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/d
ave/gcc-4.2/objdir/hppa-linux/./libobjc/.libs:/home/dave/gcc-4.2/objdir/gcc:.:/h
ome/dave/gcc-4.2/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gcc-4.2/o
bjdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/.
/libobjc/.libs:/home/dave/gcc-4.2/objdir/gcc:/home/dave/gcc-4.2/objdir/hppa-linu
x/libstdc++-v3/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/libmudflap/.libs:/home
/dave/gcc-4.2/objdir/hppa-linux/libssp/.libs:/home/dave/gcc-4.2/objdir/hppa-linu
x/libgomp/.libs:/home/dave/gcc-4.2/objdir/./gcc:/home/dave/gcc-4.2/objdir/./prev
-gcc:/home/dave/opt/gnu/gcc/gcc-4.1.0/lib
FAIL: obj-c++.dg/encode-8.mm execution test
Comment 1 John David Anglin 2007-11-22 14:10:02 UTC
Also fails on hppa64.
Comment 2 Kaveh Ghazi 2008-02-08 01:52:15 UTC
Bug is not hppa-specific, removing target tags.

I also see the failure on i686 and x86_64 on 4.1, 4.2, and trunk.

http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00469.html
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00468.html
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00466.html
Comment 3 Kaveh Ghazi 2008-02-08 17:58:40 UTC
Below is the info from gdb with mainline on x86_64-linux-gnu.  We're aborting because the encoding for BOOL* doesn't match the expected value.

(gdb) run
Starting program: /home/ghazi/gcc-testing/43/build/gcc/testsuite/obj-c++/encode-8.exe

Program received signal SIGABRT, Aborted.
0x00002ad8f2f4107b in raise () from /lib/libc.so.6
(gdb) bt full
#0  0x00002ad8f2f4107b in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00002ad8f2f4284e in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000004006db in main () at testsuite/obj-c++.dg/encode-8.mm:17
        BOOL_ptr = 0x4007cc "*"
        char_ptr = 0x4007cc "*"
(gdb) list 17
12      int main(void) {
13        const char *BOOL_ptr = @encode(BOOL *);
14        const char *char_ptr = @encode(char *);
15
16        if(strcmp(BOOL_ptr, "^c"))
17          abort();
18
19        if(strcmp(char_ptr, "*"))
20          abort();
21
Comment 4 IainS 2010-03-27 14:38:17 UTC
shouldn't this be NeXT-specific - i.e. skipped for -fgnu-runtime, rather than XFAILED?
Comment 5 Iain Sandoe 2010-06-08 08:55:36 UTC
this has been fixed for some time in the test-suite by running only for *-*-darwin* and skipping for gnu-runtime.