TITLE: Non semi-simple monodromy in an algebraic family
QUESTION [14 upvotes]: I am looking for an example of a (edit: projective) family
$f : X \to Y$
of complex algebraic varieties which is a topologically locally trivial fibration in (singular) varieties and such that there exists an $q$ such that the monodromy representation
$\pi_1(Y,y) \to GL(H^q(F))$
is not semi-simple, where $F := f^{-1}(Y)$.
I guess that such examples should be plentiful but I don't know any.
By Deligne's theorem (the decomposition theorem for smooth families) such behaviour is impossible if $f$ is smooth. Hence the requirement that the fibres should be singular.
I am actually interested in the following: A variety $X$ and a semi-simple local system $\mathcal{L}$ on a Zariski open subset such that some cohomology sheaf of $IC(X, \mathcal{L})$ has non-semi-simple monodromy.
Bonus points: Is there an example with $\mathcal{L}$ trivial?
EDIT (following Piotr's relevant comment below): Note that it is important that $Y$ be an algebraic variety. Indeed, if $Y = \mathbb{A}^1 \setminus \{ x_1, \dots, x_n \}$ and $f$ is smooth then the monodromy around any $x_i$ will be quasi-unipotent. However the representation of the free group will still be semi-simple.

REPLY [4 votes]: So it seems passerby's example can be modified to give a projective example.
(Thanks for de Cataldo and Migliorini for some of the following. All mistakes are mine.)

Fix $E$ an elliptic curve and consider a family over $B = E - \{ id \}$ where the fibre over $s$ is $E$ with $id$ joined to $s$. Let us call this singular elliptic curve E_s. (I have not checked that such a family exists, but I guess it isn't difficult.)
We have an exact sequence
$0 \to H_1(E) \to H_1(E_s) \to Z[c] \to 0$
where c is any cycle that passes through the singular point of E_s. In Deligne's theory $H_1(E)$ is of weight -1 and $Z[c]$ is of weight 0.

Now $\pi_1(B)$ is a free group on 2 generators. Let $p : \pi_1(B) -> H_1(E)$ denote the canonical map (the abelianization). Then I think that if $\gamma \in \pi_1(B)$ then $\gamma$ acts on $[c]$ by
$\gamma(c) = c + p(\gamma).$
This picture might help...

Anyway, this means that the representation of $\pi_1(B)$ is certainly not-semi-simple. (It "mixes weight 0 with weight -1".)
In this context BBD, Proposition 6.2.3 is useful: the weight filtration for a topologically locally trivial family is by locally constant subsystems.
Now suppose that $f : X \to Y$ is some family of stable curves of genus 2 such that the fibres are generically smooth and such there exists some subvariety $E - \{ id \} \in Y$ such that over this subvariety the family is the above example. Then applying the decomposition for $f_* \mathbb{Q}_X$ one gets the non-semi-simple local system above occurring.
I am not sure if such a family exists. But in any case the above seems to suggest that considerations of stable curves should give many such examples of non-semi-simplicity.
(It is nice in this example to imagine the genus 2 curve degenerating and deducing the mixed Hodge structure on the IC from the limit mixed Hodge structure.)