Crash when processing my .yy file.

Bug #80975 reported by H. Cassé
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bison++ (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: bison++

The file is included below:

================================================

/*
 * $Id$
 * Copyright (c) 2005, IRIT-UPS <email address hidden>
 *
 * src/prog/util_fft_parser.yy -- parser of FlowFactLoader.
 */
%{
#include <otawa/util/FlowFactLoader.h>
#include <elm/io.h>
using namespace elm;
int util_fft_lex(void);
void util_fft_error(otawa::FlowFactLoader *loader, const char *msg);
%}

%name-prefix="util_fft_"
%locations
%defines
%error-verbose
%parse-param {otawa::FlowFactLoader *loader}

%union {
 long _int;
 elm::String *_str;
}

%token <_int> INTEGER
%token <_str> STRING;
%token LOOP
%token CHECKSUM
%token BAD_TOKEN

%%

file:
 /* empty */
| commands
;

commands:
 command
| commands command
;

command:
 LOOP INTEGER INTEGER ';'
  {
   //cout << "loop " << (void *)$2 << ", " << $3 << "\n";
   loader->onLoop((otawa::address_t)$2, $3);
  }
| CHECKSUM STRING INTEGER ';'
  {
   //cout << "checksum = " << io::hex($2) << io::endl;
   loader->onCheckSum(*$2, $3);
   delete $2;
  }
;

%%

// Error managed
void util_fft_error(otawa::FlowFactLoader *loader, const char *msg) {
 loader->onError(msg);
}

================================================

Revision history for this message
H. Cassé (casse) wrote :

The same file works very well with bison (without ++).

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is crash log.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Confirming with latest dev release.

lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10
black:/tmp$ apt-cache policy bison++
bison++:
  Installed: 1.21.11-3
  Candidate: 1.21.11-3

Changed in bison++:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.