public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
@ 2010-07-09 13:55 ro at gcc dot gnu dot org
2010-07-09 16:29 ` [Bug objc/44887] " ebotcazou at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-09 13:55 UTC (permalink / raw)
To: gcc-bugs
Between 20100628 and 20100705, all Objective-C execution tests started to fail
on
Solaris 2/SPARC. E.g,
FAIL: objc.dg/bitfield-1.m -fgnu-runtime execution test
bitfield-1.exe SEGVs with this stacktrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
sel_get_name (selector=0x0) at
/vol/gcc/src/hg/trunk/solaris/libobjc/selector.c:299
(gdb) where
#0 sel_get_name (selector=0x0) at
/vol/gcc/src/hg/trunk/solaris/libobjc/selector.c:299
#1 0xfeb7e8a0 in -[Object notImplemented:] (self=0x20eb4, _cmd=0xfeb97c5c,
aSel=0x0) at /vol/gcc/src/hg/trunk/solaris/libobjc/Object.m:306
#2 0xfeb7e420 in +[Object conformsTo:] (self=<value optimized out>,
_cmd=<value optimized out>, aProtocol=0xfea35800) at
/vol/gcc/src/hg/trunk/solaris/libobjc/Object.m:213
#3 0x00010af4 in main ()
The selector argument to sel_get_name is NULL, so a NULL pointer is
dereferenced.
Unless there is a generic code generation bug here, I strongly suspect this
patch:
2010-07-03 Nathan Froyd <froydnj@codesourcery.com>
PR objc/24867
* objc-act.c (build_sized_array_type): New function.
(add_objc_string): Use it.
(generate_protocol_list): Likewise.
(generate_objc_image_info): Likewise.
(add_field_decl): New function.
(objc_build_struct): Use a VEC rather than building a TREE_LIST.
(generate_struct_by_value_array): Use add_field_decl.
(build_objc_symtab_template): Likewise.
(build_module_descriptor): Likewise.
(build_objc_exception_stuff): Likewise.
(build_protocol_template): Likewise.
(build_method_prototype_list_template): Likewise.
(build_method_prototype_template): Likewise.
(build_category_template): Likewise.
(build_selector_template): Likewise.
(build_class_template): Likewise.
(build_super_template): Likewise.
(build_ivar_template): Likewise.
(build_ivar_list_template): Likewise.
(build_method_list_template): Likewise.
--
Summary: [4.6 regression] All Objective-C execution tests fail on
Solaris 2/SPARC
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2*
GCC host triplet: sparc-sun-solaris2*
GCC target triplet: sparc-sun-solaris2*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
@ 2010-07-09 16:29 ` ebotcazou at gcc dot gnu dot org
2010-07-09 16:34 ` ro at CeBiTec dot Uni-Bielefeld dot DE
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-07-09 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ebotcazou at gcc dot gnu dot org 2010-07-09 16:29 -------
On Solaris 9:
=== objc Summary ===
# of expected passes 767
# of unexpected failures 34
# of expected failures 7
# of unsupported tests 28
I wonder if there isn't a miscompilation somewhere though.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-07-09 16:29:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
2010-07-09 16:29 ` [Bug objc/44887] " ebotcazou at gcc dot gnu dot org
@ 2010-07-09 16:34 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-09 18:27 ` mikpe at it dot uu dot se
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld dot DE @ 2010-07-09 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ro at CeBiTec dot Uni-Bielefeld dot DE 2010-07-09 16:34 -------
Subject: Re: [4.6 regression] All Objective-C execution tests fail on Solaris
2/SPARC
> ------- Comment #1 from ebotcazou at gcc dot gnu dot org 2010-07-09 16:29 -------
> On Solaris 9:
>
> === objc Summary ===
>
> # of expected passes 767
> # of unexpected failures 34
> # of expected failures 7
> # of unsupported tests 28
>
> I wonder if there isn't a miscompilation somewhere though.
Seems so, yes. A tree one rev. before Nathan's patch fails the same
way, so this isn't the culprit. Reghunt in progress, though I'm not
sure if I can get it finished before leaving for the weekend.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
2010-07-09 16:29 ` [Bug objc/44887] " ebotcazou at gcc dot gnu dot org
2010-07-09 16:34 ` ro at CeBiTec dot Uni-Bielefeld dot DE
@ 2010-07-09 18:27 ` mikpe at it dot uu dot se
2010-07-09 18:30 ` ro at CeBiTec dot Uni-Bielefeld dot DE
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mikpe at it dot uu dot se @ 2010-07-09 18:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mikpe at it dot uu dot se 2010-07-09 18:27 -------
These new objc failures are also seen on sparc64-linux btw.
--
mikpe at it dot uu dot se changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-07-09 18:27 ` mikpe at it dot uu dot se
@ 2010-07-09 18:30 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-09 19:04 ` ro at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld dot DE @ 2010-07-09 18:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ro at CeBiTec dot Uni-Bielefeld dot DE 2010-07-09 18:30 -------
Subject: Re: [4.6 regression] All Objective-C execution tests fail on Solaris
2/SPARC
The reghunt revealed Richard's mem-ref2 patch as the culprit:
2010-07-01 Richard Guenther <rguenther@suse.de>
PR middle-end/42834
PR middle-end/44468
* doc/gimple.texi (is_gimple_mem_ref_addr): Document.
* doc/generic.texi (References to storage): Document MEM_REF.
I'm now trying to find out where the miscompilation is.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-07-09 18:30 ` ro at CeBiTec dot Uni-Bielefeld dot DE
@ 2010-07-09 19:04 ` ro at gcc dot gnu dot org
2010-07-09 19:06 ` ro at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-09 19:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ro at gcc dot gnu dot org 2010-07-09 19:04 -------
I've found that sarray.o is miscompiled. The only code changes are in
sarray_at_put and sarray_put_safe, where sarray_at_put is inlined. I've not
yet found what is broken. I'm attaching the good and bad .s files and the
preprocessed source for reference.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (5 preceding siblings ...)
2010-07-09 19:06 ` ro at gcc dot gnu dot org
@ 2010-07-09 19:06 ` ro at gcc dot gnu dot org
2010-07-09 19:07 ` ro at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-09 19:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ro at gcc dot gnu dot org 2010-07-09 19:05 -------
Created an attachment (id=21165)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21165&action=view)
preprocessed source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-07-09 19:04 ` ro at gcc dot gnu dot org
@ 2010-07-09 19:06 ` ro at gcc dot gnu dot org
2010-07-09 19:06 ` ro at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-09 19:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ro at gcc dot gnu dot org 2010-07-09 19:06 -------
Created an attachment (id=21166)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21166&action=view)
good assembler output pre-patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (6 preceding siblings ...)
2010-07-09 19:06 ` ro at gcc dot gnu dot org
@ 2010-07-09 19:07 ` ro at gcc dot gnu dot org
2010-07-24 21:45 ` ebotcazou at gcc dot gnu dot org
2010-07-25 7:09 ` ebotcazou at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-09 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ro at gcc dot gnu dot org 2010-07-09 19:07 -------
Created an attachment (id=21167)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21167&action=view)
bad assembler output with patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (7 preceding siblings ...)
2010-07-09 19:07 ` ro at gcc dot gnu dot org
@ 2010-07-24 21:45 ` ebotcazou at gcc dot gnu dot org
2010-07-25 7:09 ` ebotcazou at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-07-24 21:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from ebotcazou at gcc dot gnu dot org 2010-07-24 21:44 -------
Investigating.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-07-09 16:29:21 |2010-07-24 21:44:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug objc/44887] [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
` (8 preceding siblings ...)
2010-07-24 21:45 ` ebotcazou at gcc dot gnu dot org
@ 2010-07-25 7:09 ` ebotcazou at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-07-25 7:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from ebotcazou at gcc dot gnu dot org 2010-07-25 07:09 -------
On Solaris 8:
=== objc Summary ===
# of expected passes 1983
# of expected failures 15
# of unsupported tests 28
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44887
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-07-25 7:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 13:55 [Bug objc/44887] New: [4.6 regression] All Objective-C execution tests fail on Solaris 2/SPARC ro at gcc dot gnu dot org
2010-07-09 16:29 ` [Bug objc/44887] " ebotcazou at gcc dot gnu dot org
2010-07-09 16:34 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-09 18:27 ` mikpe at it dot uu dot se
2010-07-09 18:30 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-07-09 19:04 ` ro at gcc dot gnu dot org
2010-07-09 19:06 ` ro at gcc dot gnu dot org
2010-07-09 19:06 ` ro at gcc dot gnu dot org
2010-07-09 19:07 ` ro at gcc dot gnu dot org
2010-07-24 21:45 ` ebotcazou at gcc dot gnu dot org
2010-07-25 7:09 ` ebotcazou at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).