bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison core dump


From: Peter Fales
Subject: bison core dump
Date: Thu, 15 Jul 2004 14:51:02 -0500
User-agent: Mutt/1.4.1i

A user reported that the following bison program causes a segmentation 
violation  (this is a stripped down example from the real program):

%token TOK_HELLO                               
%destructor { foo; } TOK_HELLO
%%                            
cmd: TOK_HELLO ;

Using bison-1.875, this example fails on Linux, Solaris, and other
platforms.   The sitution is slightly improved in 1.875a, where it
runs on Linux, but still crashes on Solaris.  Further investigation 
shows that around line 410 of output.c, a NULL parameter is being 
passed for the last %s argument to fprintf.  The Linux fprint can handle
this (it just prints "(null)"), but on other platforms, it causes a
core dump. 

-- 
Peter Fales                       Lucent Technologies, Room 1C-436
N9IYJ                             2000 N Naperville Rd PO Box 3033
internet: address@hidden          Naperville, IL 60566-7033
                                  work: (630) 979-8031




reply via email to

[Prev in Thread] Current Thread [Next in Thread]