New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!

Bug 1321

Summary: Segmentation fault on simple -A*b operation
Product: Eigen Reporter: Arturo Laurenzi <Arturo.Laurenzi>
Component: Core - matrix productsAssignee: Nobody <eigen.nobody>
Severity: Crash CC: Arturo.Laurenzi, chtz, gael.guennebaud
Priority: High    
Version: 3.3 (current stable)   
Hardware: x86 - 64-bit   
OS: Linux   
Description Flags
Example code none

Description Arturo Laurenzi 2016-10-06 11:33:57 UTC
Created attachment 744 [details]
Example code

OS: Ubuntu 16.04 LTS
COMPILER: default version of gcc shipping with the OS (5.4.0)

Computing -A*b gives segmentation fault if:
 - A is a dynamically-allocated matrix with an ODD number of rows
 - b is a statically-allocated vector

As the attachment shows, if A has an EVEN number of rows everything is alright
If b is dynamically-allocated everything is alright.
Comment 1 Gael Guennebaud 2016-10-12 14:49:37 UTC
I cannot reproduce. What are your compiler flags?
Comment 2 Gael Guennebaud 2016-10-12 14:54:14 UTC
ok, that fails with rc1, but this has already been fixed.

*** This bug has been marked as a duplicate of bug 1311 ***