public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Markus Trippelsdorf <markus@trippelsdorf.de>
To: "Martin Liška" <mliska@suse.cz>
Cc: Jan Hubicka <hubicka@ucw.cz>, gcc-patches@gcc.gnu.org, jakub@redhat.com
Subject: Re: ipa-icf::merge TLC
Date: Wed, 25 Feb 2015 19:02:00 -0000	[thread overview]
Message-ID: <20150225184145.GD342@x4> (raw)
In-Reply-To: <54EE1556.1060805@suse.cz>

On 2015.02.25 at 19:32 +0100, Martin Liška wrote:
> On 02/25/2015 06:15 PM, Jan Hubicka wrote:
> >> On 2015.02.25 at 09:38 +0100, Jan Hubicka wrote:
> >>> this patch reorganize sem_function::merge and sem_variable::merge.
> >>> I read the code in detail and found several issues that are fixed in the
> >>> following patch.
> >>
> >> I gave your patch a quick spin. It breaks Chromium. Its protocol buffer
> >> compiler gets miscompiled:
> >
> > I see (I remember running into simiarly looking ICE last time I tried Chromium).
> > Is there any chance you can look into what gets wrong?  I added enough of sanity checking
> > code so I do not see how merging itself can lead to wrong codes without ICEing,
> > but the patch makes considerably more merging to happen (old code had bug where it
> > tried to merge but didn't), so we may run into another previously latent issue.
> > Martin has 3 correctness ipa-icf patches in a way, so perhaps one of them ;)
> >
> > Honza
> 
> Hello.
> 
> I've just updated chromium to latest version, but unfortunately I cannot reproduce the memory corruption.
> Which build flags do you use Markus for Chromium? Can you please run valgrind to spot the problematic function?
> Moreover, I would appreciate if you will be able to find corresponding merge operation (-fdump-ipa-icf)

I'm just using the defaults:
GYP_DEFINES="ffmpeg_branding=Chrome use_kerberos=0 fastbuild=1 remove_webcore_debug_symbols=1 use_pulseaudio=0 use_gnome_keyring=0 use_linux_link_gnome_keyring=0 disable_nacl=1 clang=0 host_clang=0 linux_use_bundled_binutils=0 linux_use_bundled_gold=0 google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc google_default_client_id=329227923882.apps.googleusercontent.com google_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu werror=" gclient sync

and then "ninja chrome" to build.

Program received signal SIGABRT, Aborted.
0x00007ffff78886f8 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff78886f8 in raise () from /lib/libc.so.6
#1  0x00007ffff7889bbd in abort () from /lib/libc.so.6
#2  0x00007ffff78c7663 in __libc_message () from /lib/libc.so.6
#3  0x00007ffff78ccf1d in malloc_printerr () from /lib/libc.so.6
#4  0x00007ffff78cd74b in _int_free () from /lib/libc.so.6
#5  0x000000000045f5c1 in google::protobuf::DescriptorBuilder::BuildFieldOrExtension(google::protobuf::FieldDescriptorProto const&, google::protobuf::Descriptor const*, googl
e::protobuf::FieldDescriptor*, bool) ()
#6  0x0000000000462c8f in google::protobuf::DescriptorBuilder::BuildMessage(google::protobuf::DescriptorProto const&, google::protobuf::Descriptor const*, google::protobuf::D
escriptor*) ()
#7  0x0000000000462cfc in google::protobuf::DescriptorBuilder::BuildMessage(google::protobuf::DescriptorProto const&, google::protobuf::Descriptor const*, google::protobuf::D
escriptor*) ()
#8  0x000000000046683c in google::protobuf::DescriptorBuilder::BuildFile(google::protobuf::FileDescriptorProto const&) ()
#9  0x00000000004677b5 in google::protobuf::DescriptorPool::BuildFileFromDatabase(google::protobuf::FileDescriptorProto const&) const ()
#10 0x00000000004679a3 in google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cons
t&) const ()
#11 0x0000000000467af5 in google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const ()
#12 0x0000000000479d69 in google::protobuf::protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() ()
#13 0x00000000004aa038 in google::protobuf::GoogleOnceInitImpl(long*, google::protobuf::Closure*) ()
#14 0x00000000004aa08f in google::protobuf::GoogleOnceInit(long*, void (*)()) ()
#15 0x000000000046b1f7 in google::protobuf::FileOptions::GetMetadata() const ()
#16 0x00000000004a4812 in google::protobuf::compiler::Parser::ParseOption(google::protobuf::Message*, google::protobuf::compiler::Parser::LocationRecorder const&, google::pro
tobuf::compiler::Parser::OptionStyle) ()
#17 0x00000000004a86af in google::protobuf::compiler::Parser::ParseTopLevelStatement(google::protobuf::FileDescriptorProto*, google::protobuf::compiler::Parser::LocationRecor
der const&) ()
#18 0x00000000004a88ee in google::protobuf::compiler::Parser::Parse(google::protobuf::io::Tokenizer*, google::protobuf::FileDescriptorProto*) ()
#19 0x00000000004a0807 in google::protobuf::compiler::SourceTreeDescriptorDatabase::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<cha
r> > const&, google::protobuf::FileDescriptorProto*) ()
#20 0x00000000004678dd in google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cons
t&) const ()
#21 0x0000000000467af5 in google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const ()
#22 0x000000000040c906 in google::protobuf::compiler::CommandLineInterface::Run(int, char const* const*) ()
#23 0x0000000000403131 in main ()

I have tried to add -fno-ipa-icf when compiling various object files, whose
symbols are in the backtrace, but without success thus far.
 
-- 
Markus

  reply	other threads:[~2015-02-25 18:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25  9:03 Jan Hubicka
2015-02-25 13:10 ` Markus Trippelsdorf
2015-02-25 17:31   ` Jan Hubicka
2015-02-25 18:41     ` Martin Liška
2015-02-25 19:02       ` Markus Trippelsdorf [this message]
2015-02-26 16:46 ` Jack Howarth
2015-02-27  5:55   ` Jan Hubicka
2015-02-27 13:48     ` H.J. Lu
2015-02-27 18:04       ` Jan Hubicka
2015-02-27 18:39     ` Steve Ellcey
2015-02-27 18:56       ` Steve Ellcey
2015-02-27 20:00         ` Martin Liška
2015-02-27 21:16       ` Jan Hubicka
2015-03-01 16:47         ` Christophe Lyon
2015-03-02 19:01           ` Alex Velenko
2015-03-02 20:21             ` Jan Hubicka
2015-03-02 22:04               ` Christophe Lyon
2015-03-03 12:44                 ` Alex Velenko
2015-03-03 15:06                   ` Christophe Lyon
2015-03-03 20:01                     ` Jan Hubicka
2015-03-04  9:11                       ` Christophe Lyon
2015-02-28 16:38     ` James Greenhalgh
2015-02-28 18:15       ` Jan Hubicka
2015-03-04  9:38         ` James Greenhalgh
2015-03-06 16:09           ` [ARM testsuite obvious] Fixup atomic-comp-swap-release-acquire.c to not use ICF James Greenhalgh
2015-03-06 16:13             ` James Greenhalgh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150225184145.GD342@x4 \
    --to=markus@trippelsdorf.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=jakub@redhat.com \
    --cc=mliska@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).