Opened 9 years ago

Closed 9 years ago

#591 closed bug (fixed)

another segfault when trying to reconstruct function from its string

Reported by: kroeker@… Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: dontKnow Version: 4-0-0
Keywords: reconstruct proc string segfault Cc:

Description

it seems that functions containing strings cannot be reconstructed yet (segfault)

Is it possible to fix this?

Input:

proc foo ()
{
   string bar = "sdfs";
   return (0);
}
foo;

string fooStr = string(foo);
fooStr;

proc reconst = fooStr;
string(reconst);
reconst();

output:

> proc foo ()
. {
.    string bar = "sdfs";
.    return (0);
. }
> foo;
// libname  : 
// procname : foo
// type     : singular
> 
. string fooStr = string(foo);
> fooStr;


   string bar = "sdfs";
   return (0);


;return();


> 
. proc reconst=fooStr;
> string(reconst);

> reconst();
Singular : signal 11 (v: 4001):
current line:>>reconst();<<
Segment fault/Bus error occurred at 7fff4cc77d30 because of 10286 (r:1396034322)
please inform the authors
trying to restart...

Change History (1)

comment:1 Changed 9 years ago by hannes

Resolution: fixed
Status: newclosed

now allows conversion from string variables, not only string constants

Note: See TracTickets for help on using tickets.