YYSTYPE * re_yyget_lval  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yylval;
}

The product dereferences a pointer that it expects to be valid but is NULL.