On Wed, Apr 14, 2010 at 07:46:11PM -0300, Marco Túlio Gontijo e Silva wrote:
> This bug is also reported in: 
> https://bugs.launchpad.net/ubuntu/+source/gplcver/+bug/243980
> 
> For instance, using:
> 
> $dumpfile("teste-disco.vcd"); // it creates isco.vcd
> $dumpfile("disco.vcd"); // it creates isco.vcd
> $dumpfile("isco.vcd"); // it creates nothing
> $dumpfile("o.vcd"); // it creates nothing
---end quoted text---

  The bug reported in LP 243980 is what I am experiencing here (I am 
  on an amd64 machine). Yet the symptoms you mentioned are different, 
  and I am not able to reproduce it here.

  Actually I realized the following:
  $dumpfile("test.vcd"); // dumps to '.vcd' file
  $dumpfile("test.VCD"); // dumps to '.VCD' file
  $dumpfile("test"); // dumps to 'test' file

  So it seems the problem is with parsing the string which contains a 
  dot '.'

  I ran cver through the debugger, I started from src/v_ex.c(4903), 
  which calls __get_eval_cstr from src/v_cnv.c.

  In the first case (ie. "test.vcd") the value of `__exprline' variable 
  after execution of line src/v_cnv.c:1721 is "\0\0\0\0.vcd" !
  So for some reason, the characters before the dot are converted to 
  nulls !
  Also the value of `xsp->xslen' is 64 after execution of line 
  src/v_cnv.c:1715

  In the third case (ie. "test") the value of `__exprline' variable 
  after execution of line src/v_cnv.c:1721 is "test", and the value of 
  `xsp->xslen' is 32 after execution of line src/v_cnv.c:1715

  I will try to investigate further

-- 
 ‎أحمد المحمودي (Ahmed El-Mahmoudy)
  Digital design engineer
 GPG KeyID: 0xEDDDA1B7
 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8  B176 BC19 6A94 EDDD A1B7

Attachment: signature.asc
Description: Digital signature

Reply via email to