Menu

#25 Segmentation fault

None
closed
nobody
None
1
2016-08-03
2016-08-01
Csanyi Pal
No

Hi,

I just tried the command:
dia2code -v -t sql Iskola_2016_17.dia
but get simple:
Segmentation fault

What can I do to solve this problem?

Best, from Pali

1 Attachments

Discussion

  • Oliver Kellogg

    Oliver Kellogg - 2016-08-01

    Hi,

    What diacode version are you using?
    With 1.8.8 and git master, I get:

    ~/tmp> dia2code -v -t sql Iskola_2016_17.dia 
    Finished!
    ~/tmp> ls -ltr
    total 4
    -rw-r--r-- 1 okellogg users 3435 Aug  1 21:01 Iskola_2016_17.dia
    -rw-r--r-- 1 okellogg users    0 Aug  1 22:42 DEFINITION.SQL
    

    Okay, the DEFINITION.SQL is empty... but no crash.
    Why are you using the -v switch?
    It is probably not what you want:

    ~/tmp> dia2code -h
    dia2code version 0.8.8, Copyright (C) 2000-2001 Javier O'Hara
    Dia2Code comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; read the COPYING file for details.
    
    Usage: dia2code [-h|--help] [-d <dir>] [-nc] [-cl <classlist>]
           [-t (ada|c|cpp|csharp|idl|java|php|php5|python|ruby|shp|sql|as3)] [-v]
           [-l <license file>] [-ini <initialization file>]<diagramfile>
    
        -h --help            Print this help and exit
        [...]
        -v                   Invert the class list selection.  When used 
                             without -cl prevents any file from being created
    

    In fact, leaving away -v :

    ~/tmp> dia2code -t sql Iskola_2016_17.dia 
    Finished!
    ~/tmp> ls -ltr
    total 8
    -rw-r--r-- 1 okellogg users 3435 Aug  1 21:01 Iskola_2016_17.dia
    -rw-r--r-- 1 okellogg users 1375 Aug  1 22:51 DEFINITION.SQL
    ~/tmp> cat DEFINITION.SQL 
    CREATE TABLE idoszakok(
    -- Attributes --
      sorSz serial,
      idoSzakNeve text,
      kezdoDatum date,
      vegsoDatum date,
      PRIMARY KEY (
        sorSz)
    );
    
    CREATE TABLE idoszakokNapjai(
    -- Attributes --
      napDatuma date,
    [...]
    

    Hope this helps,

    Oliver

     
    • Csanyi Pal

      Csanyi Pal - 2016-08-03

      Hi,

      2016-08-01 22:54 GMT+02:00 Oliver Kellogg okellogg@users.sf.net:

      Hi,

      What diacode version are you using?

      I'm using version 0.8.7 here, on Gentoo Linux.

      --
      Best, Pali

       
  • Oliver Kellogg

    Oliver Kellogg - 2016-08-03
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.