[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2017-10-26 Thread Bug Watch Updater
Launchpad has imported 6 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=1007586.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2013-09-12T20:00:33+00:00 Rich wrote:

Description of problem:
I'm trying to rebuild mrpt in f20 and f21, and it looks like arm gcc is hitting 
an error that i686 and x86_64 versions aren't.  You can view the build logs at 
http://koji.fedoraproject.org/koji/taskinfo?taskID=5928632

The i686 and x86_64 builds finish without issue, but the arm version
segfaults consistently at the same point:

cd /builddir/build/BUILD/mrpt-1.0.2/build/libs/slam && /usr/bin/c++   
-DDISABLE_OPENNI -DEIGEN_USE_NEW_STDVECTOR 
-DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -D_FILE_OFFSET_BITS=64 
-D_LARGE_FILES -D__WXGTK__ -Dmrpt_slam_EXPORTS 
-DvtkFiltersStatistics_AUTOINIT="1(vtkFiltersStatisticsGnuR)" 
-DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)"
 -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL)" -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
--param=ssp-buffer-size=4 -grecord-gcc-switches  -march=armv7-a -mfpu=vfpv3-d16 
 -mfloat-abi=hard  -isystem /usr/include/opencv -isystem /usr/include -pthread 
-I /usr/lib/wx/include/gtk2-unicode-release-2.8 -isystem 
/usr/lib/wx/include/gtk2-unicode-release-2.8 -I /usr/include/wx-2.8 -isystem 
/usr/include/wx-2.8  -Wno-deprecated -isystem /usr/include/pcl-1.7 -isystem 
/usr/include/vtk -isystem /usr/include -isystem /usr/include/freetype2 -isystem 
/usr/include/libxml2 -isystem /usr/include/python2.7 -isystem 
/usr/include/eigen3 -isystem /usr/include/qhull  -Wall -Wno-long-long 
-Wno-write-strings -Wno-variadic-macros -pedantic -pthread -std=c++11  -fopenmp 
 -fPIC -I/usr/include/eigen3 -I/usr/include/eigen3/unsupported 
-I/usr/include/opencv -isystem /usr/lib/wx/include/gtk2-unicode-release-2.8 
-isystem /usr/include/wx-2.8 -I/usr/include/vtk -I/usr/include/freetype2 
-I/usr/include/libxml2 -I/usr/include/python2.7 -I/usr/include/pcl-1.7 
-I/usr/include/qhull -I/usr/include/suitesparse 
-I/builddir/build/BUILD/mrpt-1.0.2/. 
-I/builddir/build/BUILD/mrpt-1.0.2/build/include/mrpt-config/unix 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/slam/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/bayes/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/graphs/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/vision/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/scanmatching/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/maps/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/obs/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/opengl/include 
-I/builddir/build/BUILD/mrpt-1.0.2/libs/base/include-o 
CMakeFiles/mrpt-slam.dir/src/slam/CMetricMapBuilderICP.cpp.o -c 
/builddir/build/BUILD/mrpt-1.0.2/libs/slam/src/slam/CMetricMapBuilderICP.cpp
/builddir/build/BUILD/mrpt-1.0.2/libs/slam/src/slam/CMetricMapBuilderICP.cpp:629:1:
 internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.


Version-Release number of selected component (if applicable):
gcc   armv7hl4.8.1-6.fc20

How reproducible:
This bug happens consistently in f20 and rawhide when building the mrpt package.

Steps to Reproduce:
1. Submit mrpt-1.0.2-1 for building on koji
2.
3.

Actual results:
Segmentation fault during build

Expected results:
Finished build

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343/comments/0


On 2013-09-17T20:29:23+00:00 Kyle wrote:

Override CFLAGS and see if it goes away at -O1 or -O0?

--Kyle

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343/comments/1


On 2013-09-18T15:39:19+00:00 Rich wrote:

Thanks Kyle.  I overrode the cflags to pass -O1, and the build completed
without an internal compiler error.  So as a work-around I'll leave mrpt
at -O1 for now.  The bug is still reproducible at -O2, so I'll keep this
bug open.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343/comments/2


On 2013-09-18T15:59:02+00:00 Jakub wrote:

Please provide the preprocessed source (add -save-temps to the above
compilation line and attach CMetricMapBuilderICP.ii it creates).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343/comments/3

--

[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-30 Thread Launchpad Bug Tracker
This bug was fixed in the package gcc-4.8 - 4.8.2-17ubuntu2

---
gcc-4.8 (4.8.2-17ubuntu2) trusty; urgency=medium

  * Update to SVN 20140329 (r208938) from the gcc-4_8-branch.
- Fix PR libstdc++/60658 (std::atomicT* is unexpectedly not lock-free),
  PR libstdc++/59548 (abort in debug mode),
  PR rtl-optimization/60601 (ice), PR tree-optimization/60429 (wrong code
  building Qt with -O3), PR rtl-optimization/60452 (wrong code with -O1
  and large offsets in the frame),
  PR ipa/60419 (ice-on-valid-code with -O3, LP: #1286343),
  PR fortran/60522 (ice-on-valid-code), PR fortran/60576 (wrong code),
  PR fortran/60677 (wrong code).
  * Don't ignore DEB_CROSS_NO_BIARCH=yes ignored for DEB_TARGET_ARCH=x32.
(Helmut Grohne). Closes: #742358.
  * debian/patches/ada-ppc64.diff: Fix for ppc64el (Ulrich Weigand).
  * Avoid clobbering stack pointer via P8 fusion peephole. fixing Ada build
on ppc64el (Ulrich Weigand).
  * Fix cross building targeting x32 (Helmut Grohne). Closes: #742539.
 -- Matthias Klose d...@ubuntu.com   Sat, 29 Mar 2014 16:32:05 +0100

** Changed in: gcc-4.8 (Ubuntu)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-29 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/gcc-4.8

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-27 Thread Jakub-gcc
Fixed on the trunk so far.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-27 Thread Jamborm
Fixed on 4.8 as well.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-27 Thread Jamborm
Author: jamborm
Date: Wed Mar 26 13:47:46 2014
New Revision: 208844

URL: http://gcc.gnu.org/viewcvs?rev=208844root=gccview=rev
Log:
2014-03-26  Martin Jambor  mjam...@suse.cz

  PR ipa/60419
  * ipa.c (symtab_remove_unreachable_nodes): Clear thunk and
  alias flags of nodes in the border.

testsuite/
  * g++.dg/ipa/pr60419.C: New test.


Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ipa/pr60419.C
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/ipa.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-27 Thread Jamborm
Author: jamborm
Date: Fri Mar 21 12:48:02 2014
New Revision: 208747

URL: http://gcc.gnu.org/viewcvs?rev=208747root=gccview=rev
Log:
2014-03-21  Martin Jambor  mjam...@suse.cz

PR ipa/60419
* ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
in the border.

testsuite/
* g++.dg/ipa/pr60419.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/ipa/pr60419.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa.c
trunk/gcc/testsuite/ChangeLog

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-27 Thread Bug Watch Updater
** Changed in: gcc
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Jakub-gcc
FYI, since r208573 the reduced ppc64 testcase no longer reproduces, but
the #c0 still does.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Trippels
Created attachment 32382
reduced testcase

Here's a reduced testcase that segfaults also on x86_64.

markus@x4 tmp % g++ -std=c++11 -c -O2 -c test.ii 
ASAN:SIGSEGV
=
==17160==ERROR: AddressSanitizer: SEGV on unknown address 0x0010 (pc 
0x00d9b9b7 sp 0x7fff7ac203c0 bp 0x0fffef5840a0 T0)
#0 0xd9b9b6 in cgraph_function_node(cgraph_node*, availability*) 
../../gcc/gcc/cgraph.c:2966
#1 0x25e6923 in propagate_pure_const ../../gcc/gcc/ipa-pure-const.c:1185
#2 0x25e6923 in propagate ../../gcc/gcc/ipa-pure-const.c:1483
#3 0x25e6923 in execute ../../gcc/gcc/ipa-pure-const.c:1536
#4 0x14b93cd in execute_one_pass(opt_pass*) ../../gcc/gcc/passes.c:2229
#5 0x14badd0 in execute_ipa_pass_list(opt_pass*) ../../gcc/gcc/passes.c:2607
#6 0xdb2bb1 in ipa_passes ../../gcc/gcc/cgraphunit.c:2084
#7 0xdb2bb1 in compile() ../../gcc/gcc/cgraphunit.c:2174
#8 0xdb484a in finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2329
#9 0x84561a in cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4610
#10 0x16aa252 in compile_file ../../gcc/gcc/toplev.c:562
#11 0x16af0db in do_compile ../../gcc/gcc/toplev.c:1914
#12 0x16af0db in toplev_main(int, char**) ../../gcc/gcc/toplev.c:1990
#13 0x7ff8fae69faf in __libc_start_main (/lib/libc.so.6+0x1ffaf)
#14 0x5d9460 
(/var/tmp/gcc_sani/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus+0x5d9460)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Trippels
The problem with both pasted testcases is that they don't crash 4.7.4.
The attached one does.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Jakub-gcc
Slightly more reduced testcase:

--- gcc/testsuite/g++.dg/ipa/pr60419.C  2014-03-19 15:57:57.735114622 +0100
+++ gcc/testsuite/g++.dg/ipa/pr60419.C  2014-03-20 10:20:56.245365852 +0100
@@ -0,0 +1,68 @@
+// PR middle-end/60419
+// { dg-do compile }
+// { dg-options -O2 }
+
+struct J
+{
+  J ();
+  virtual void foo (int , int);
+};
+
+struct D
+{
+  virtual void foo (J ) const;
+  void bar ()
+  {
+J p;
+foo (p);
+  }
+};
+
+struct K : J, public D
+{
+};
+
+struct F
+{
+  K *operator-();
+};
+
+struct N : public K
+{
+  void foo (int , int);
+  void foo (J ) const {}
+};
+
+struct L
+{
+  F l;
+};
+
+struct M
+{
+  L *operator-();
+};
+
+struct G
+{
+  G ();
+};
+
+M h;
+
+G::G ()
+try
+{
+  N f;
+  f.bar ();
+  throw;
+}
+catch (int)
+{
+}
+
+void
+baz ()
+{
+  h-l-bar ();
+}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Jamborm
Trunk patch posted to the mailing list:

http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01078.html

4.8 will need some slightly modified variant, I'm still looking for the
best place to reset the flag there.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Jakub-gcc
I have:
--- gcc/testsuite/g++.dg/ipa/pr60419.C  2014-03-19 15:57:57.735114622 +0100
+++ gcc/testsuite/g++.dg/ipa/pr60419.C  2014-03-20 11:13:58.933256068 +0100
@@ -0,0 +1,80 @@
+// PR middle-end/60419
+// { dg-do compile }
+// { dg-options -O2 }
+
+struct C
+{
+};
+
+struct I : C
+{
+  I ();
+};
+
+struct J
+{
+  void foo ();
+  J ();
+  virtual void foo (int , int);
+};
+
+template class
+struct D
+{
+  virtual void foo (I ) const;
+  void bar ()
+  {
+I p;
+foo (p);
+  }
+};
+
+struct K : J, public Dint
+{
+};
+
+struct F
+{
+  K *operator-();
+};
+
+struct N : public K
+{
+  void foo (int , int);
+  I n;
+  void foo (I ) const {}
+};
+
+struct L : J
+{
+  F l;
+};
+
+struct M : F
+{
+  L *operator-();
+};
+
+struct G
+{
+  G ();
+};
+
+M h;
+
+G::G ()
+try
+{
+  N f;
+  f.bar ();
+  throw;
+}
+catch (int)
+{
+}
+
+void
+baz ()
+{
+  h-l-bar ();
+}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Jamborm
Good job reducing the testcase to something this small!

Anyway, Jakub's analysis of what is going on is still correct and all
the high level decisions that we do are IMHO correct too.  The
invocation of symtab_remove_unreachable_symbols that removes the
callers is called with before_inlining_p set to false, even though
that is not technically right, we are still in the middle of inlining
because we are about to inline functions which are called only once.
But the comment in function ipa_inline says this is deliberate because
it helps to find the functions which are only called once.

However, this means that when symtab_remove_unreachable_symbols
correctly figures out that we can devirtualize to the offending thunk,
it assumes that cannot lead to any further inlining.  Because the
thunk is keyed in another compilation unit, it decides it only needs
to keep the symtab node but not the body.  In its terminology, the
node is in the boundary.  The way the function cripples these
boundary nodes is actually the problem because it removes all callees
but not the thunk flag.  This leaves us with a thunk with no callee,
something that should not happen (and there is even a bit in the call
graph verifier that checks it).  Later on, we do perform this
devirtualization during inlining of functions only called once and
connect the crippled thunk to the call graph.  The first time we want
to follow through it, we segfault.

I believe that we do not want to allow thunks with no callees.  This
would mean changing every user of cgraph_function_node so that it can
cope with NULL return value and that is ugly and inconvenient.  This
leaves us with two options.  Either we make
symtab_remove_unreachable_symbols keep callees of thunks when it keeps
the thunk or we simply clear the thunk_p flag.  Given that thunks and
aliases are quite similar and we do clear the alias flag, and that
this should only ever affect nodes that we are not going to output, I
tend to believe the second approach is OK and of course it is much
simpler.  But before I propose the following fix on the mailing list,
I'll try to build some big C++ application with it:

diff --git a/gcc/ipa.c b/gcc/ipa.c
index 572dba1..164de0d 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -488,6 +488,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, 
FILE *file)
  node-definition = false;
  node-cpp_implicit_alias = false;
  node-alias = false;
+ node-thunk.thunk_p = false;
  node-weakref = false;
  if (!node-in_other_partition)
node-local.local = false;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Trippels
(In reply to Markus Trippelsdorf from comment #13)
 The problem with both pasted testcases is that they don't crash 4.7.4.
  4.8.3
of course

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Trippels
So, what about (crashes trunk and 4.8.3) :

class J
{
public:
  J ();
  virtual void m_fn1 (int p1, int);
};
template class TDATA class D
{
public:
  virtual void m_fn1 (TDATA ) const;
  void m_fn2 ()
  {
TDATA p;
m_fn1 (p);
  }
};

class I : J
{
};
class K : J, public DI
{
};
struct F
{
  K *operator-();
};
class N : public K
{
  void m_fn1 (int p1, int);
  I mean;
  void m_fn1 (I ) const {}
};
class L;
struct M : F
{
  L *operator-();
};
class L : J
{
public:
  F poseChange;
};
class G
{
  G ();
};
M h;
G::G () try
{
  N f;
  f.m_fn2 ();
  throw;
}

catch (int) {}

void fn1 () { h-poseChange-m_fn2 (); }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-20 Thread Trippels
A bit more reduced:

markus@x4 tmp % cat test.ii
namespace poses
{
}
namespace utils
{
using namespace poses;
}
namespace poses
{
class J
{
public:
  J ();
  virtual void m_fn1 (int p1, int);
};
class I : utils::J
{
};
class D
{
public:
  virtual void m_fn1 (poses::I ) const;
  void m_fn2 ()
  {
I p;
m_fn1 (p);
  }
};
class K : utils::J, public utils::D
{
};
struct F
{
  K *operator-();
};
class N : public K
{
  void m_fn1 (int p1, int);
  void m_fn1 (I ) const {}
};
class L;
struct M
{
  L *operator-();
};
class L
{
public:
  F poseChange;
};
class G
{
  G ();
};
}

using namespace utils;
M h;
G::G () try
{
  N f;
  f.m_fn2 ();
  throw;
}

catch (int) {}

void fn1 () { h-poseChange-m_fn2 (); }

markus@x4 tmp % g++ -c -O2 test.ii
test.ii:68:40: internal compiler error: Segmentation fault

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-15 Thread Jakub-gcc
Honza or Martin, can you please have a look?  The #c5 testcase should be
reproduceable with a cross to powerpc64-linux.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-10 Thread Jakub-gcc
 in execute_one_pass (pass=opt_pass* 0x1c73710 
inline(53)) at ../../gcc/passes.c:2229
#13 0x00c2a71b in execute_ipa_pass_list (pass=opt_pass* 0x1c73710 
inline(53)) at ../../gcc/passes.c:2607
#14 0x009042ad in ipa_passes () at ../../gcc/cgraphunit.c:2084
#15 0x0090455e in compile () at ../../gcc/cgraphunit.c:2174
#16 0x00904988 in finalize_compilation_unit () at 
../../gcc/cgraphunit.c:2329
#17 0x0068b61d in cp_write_global_declarations () at 
../../gcc/cp/decl2.c:4612
#18 0x00d0ee72 in compile_file () at ../../gcc/toplev.c:562
#19 0x00d11015 in do_compile () at ../../gcc/toplev.c:1914
#20 0x00d11180 in toplev_main (argc=8, argv=0x7fffe358) at 
../../gcc/toplev.c:1990
#21 0x012c0464 in main (argc=8, argv=0x7fffe358) at 
../../gcc/main.c:36

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-10 Thread Jakub-gcc
Created attachment 32321
pr60419.C

This is quite impossible to reduce, at least after 4 days of attempting to 
delta/creduce reduce this I got only to 132KB.
Compile with -m64 -O3 -std=c++11.
Anyway, it is reduced enough that it compiles (and ICEs in a different place) 
with x86_64-linux cc1plus, so also shows a bug in slsr, with -m64 -O3 
-std=c++11 -fno-tree-slsr it compiles with x86_64 target though and thus I 
can't bisect this on x86_64.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-10 Thread Bug Watch Updater
** Changed in: gcc
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-06 Thread Doko-v
yes, the first attachment is for powepc64le-linux-gnu

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-06 Thread Doko-v
Created attachment 32265
preprocessed source (armv7)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343]

2014-03-06 Thread Y-gribov
Attached code seems to be Power-specific:
 ...
 /usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h:483:56: error: 
‘__builtin_vec_sld’ was not declared in this scope

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1286343]

2014-03-06 Thread Y-gribov
This might have been fixed in trunk already, at least I can't repro for 
arm-v7a15. My fresh gcc is configured with
 ~/src/gcc-master/configure --build=x86_64-pc-linux-gnu 
--host=x86_64-pc-linux-gnu --target=arm-v7a15-linux-gnueabi 
--prefix=/home/ygribov/install/gcc-master-arm-full 
--with-sysroot=/home/ygribov/install/gcc-master-arm-full/arm-v7a15-linux-gnueabi/sys-root/
 --disable-libmudflap --disable-libssp --disable-nls --disable-libstdcxx-pch 
--with-interwork --with-mode=arm --with-fpu=vfpv3 --with-cpu=cortex-a15 
--with-tune=cortex-a15 --with-float=softfp --enable-libgomp 
--enable-poison-system-directories --enable-long-long --enable-threads 
--enable-languages=c,c++ --enable-shared --with-gnu-as --with-gnu-ld 
--with-build-time-tools=/home/ygribov/install/gcc-master-arm-full 
--enable-checking CFLAGS='-g -O0' CXXFLAGS='-g -O0'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-04 Thread Matthias Klose
** Bug watch added: GCC Bugzilla #60419
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60419

** Also affects: gcc via
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60419
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-04 Thread Bug Watch Updater
Launchpad has imported 1 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60419.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2014-03-04T23:04:35+00:00 Doko-v wrote:

Created attachment 32264
preprocessed source

see on
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343
https://bugzilla.redhat.com/show_bug.cgi?id=1007586

seen on armv7, powerpc, ppc64el. lowering the optimization works around
it

$ g++ -std=c++11 -c -O3  -g CMetricMapBuilderICP.ii
/root/mrpt-1.0.2/libs/slam/src/slam/CMetricMapBuilderICP.cpp:629:1: internal 
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

Program received signal SIGSEGV, Segmentation fault.
0x10ae517c in ?? ()
(gdb) bt
#0  0x10ae517c in ?? ()
#1  0x1056a0c0 in execute_one_pass(opt_pass*) ()
#2  0x1056ad88 in execute_ipa_pass_list(opt_pass*) ()
#3  0x1032ce28 in compile() ()
#4  0x1032d6cc in finalize_compilation_unit() ()
#5  0x1019017c in cp_write_global_declarations() ()
#6  0x1062b370 in ?? ()
#7  0x1062dafc in toplev_main(int, char**) ()
#8  0x1010ea88 in main ()

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343/comments/5


** Changed in: gcc
   Status: Unknown = New

** Changed in: gcc
   Importance: Unknown = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-03-01 Thread Launchpad Bug Tracker
This bug was fixed in the package mrpt - 1:1.0.2-1ubuntu1

---
mrpt (1:1.0.2-1ubuntu1) trusty; urgency=medium

  * Build with -O1 optimisation level on armhf, powerpc, ppc64el (LP: #1286343)
 -- Dimitri John Ledkov x...@ubuntu.com   Sat, 01 Mar 2014 01:09:06 +

** Changed in: mrpt (Ubuntu)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: FTBFS on armf, powerpc, ppc64el internal compiler error

2014-02-28 Thread Dimitri John Ledkov
** Attachment added: ccvuEZay.out
   
https://bugs.launchpad.net/ubuntu/+source/mrpt/+bug/1286343/+attachment/4001274/+files/ccvuEZay.out

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  FTBFS on armf, powerpc, ppc64el internal compiler error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: FTBFS on armf, powerpc, ppc64el internal compiler error

2014-02-28 Thread Dimitri John Ledkov
ccvuEZay.out is from ppc64el, also FTBFS on armhf and powerpc.

** Also affects: gcc-4.8 (Ubuntu)
   Importance: Undecided
   Status: New

** Tags added: armhf ftbfs powerpc ppc64el

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  FTBFS on armf, powerpc, ppc64el internal compiler error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] [NEW] FTBFS on armf, powerpc, ppc64el internal compiler error

2014-02-28 Thread Dimitri John Ledkov
Public bug reported:

[ 61%] Building CXX object 
libs/slam/CMakeFiles/mrpt-slam.dir/src/slam/CMetricMapBuilderICP.cpp.o
cd /root/mrpt-1.0.2/libs/slam  /usr/bin/c++   -D_FILE_OFFSET_BITS=64 
-D_LARGE_FILES -D__WXGTK__ -Dmrpt_slam_EXPORTS -isystem /usr/include/opencv 
-isystem /usr/include -pthread -I 
/usr/lib/powerpc64le-linux-gnu/wx/include/gtk2-unicode-release-2.8 -isystem 
/usr/lib/powerpc64le-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I 
/usr/include/wx-2.8 -isystem /usr/include/wx-2.8  -Wall -Wno-long-long 
-Wno-write-strings -Wno-variadic-macros -pedantic -pthread -std=c++11   -O3 
-DNDEBUG -fPIC -I/usr/include/eigen3 -I/usr/include/eigen3/unsupported 
-I/usr/include/opencv -I/usr/include/ffmpeg -I/usr/include/libavcodec 
-I/usr/include/libavformat -I/usr/include/libswscale -isystem 
/usr/lib/powerpc64le-linux-gnu/wx/include/gtk2-unicode-release-2.8 -isystem 
/usr/include/wx-2.8 -I/root/mrpt-1.0.2/. 
-I/root/mrpt-1.0.2/include/mrpt-config/unix 
-I/root/mrpt-1.0.2/libs/slam/include -I/root/mrpt-1.0.2/libs/bayes/include 
-I/root/mrpt-1.0.2/libs/graphs/include -I/root/mrpt-1.0.2/libs/vision/include 
-I/root
 /mrpt-1.0.2/libs/scanmatching/include -I/root/mrpt-1.0.2/libs/maps/include 
-I/root/mrpt-1.0.2/libs/obs/include -I/root/mrpt-1.0.2/libs/opengl/include 
-I/root/mrpt-1.0.2/libs/base/include-o 
CMakeFiles/mrpt-slam.dir/src/slam/CMetricMapBuilderICP.cpp.o -c 
/root/mrpt-1.0.2/libs/slam/src/slam/CMetricMapBuilderICP.cpp
/root/mrpt-1.0.2/libs/slam/src/slam/CMetricMapBuilderICP.cpp:629:1: internal 
compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.8/README.Bugs for instructions.
Preprocessed source stored into /tmp/ccvuEZay.out file, please attach this to 
your bugreport.
make[2]: *** 
[libs/slam/CMakeFiles/mrpt-slam.dir/src/slam/CMetricMapBuilderICP.cpp.o] Error 1

** Affects: gcc-4.8 (Ubuntu)
 Importance: Undecided
 Status: New

** Affects: mrpt (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: armhf ftbfs powerpc ppc64el

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  FTBFS on armf, powerpc, ppc64el internal compiler error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: FTBFS on armf, powerpc, ppc64el internal compiler error

2014-02-28 Thread Dimitri John Ledkov
Build succeeds at -O1

** Bug watch added: Red Hat Bugzilla #1007586
   https://bugzilla.redhat.com/show_bug.cgi?id=1007586

** Also affects: gcc (Fedora) via
   https://bugzilla.redhat.com/show_bug.cgi?id=1007586
   Importance: Unknown
   Status: Unknown

** Changed in: mrpt (Ubuntu)
   Status: New = In Progress

** Changed in: mrpt (Ubuntu)
 Assignee: (unassigned) = Dimitri John Ledkov (xnox)

** Tags removed: ftbfs

** Summary changed:

- FTBFS on armf, powerpc, ppc64el internal compiler error
+ mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1286343] Re: mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

2014-02-28 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/mrpt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1286343

Title:
  mrpt triggers ICE on armf, powerpc, ppc64el at -O2 or higher

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1286343/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs