Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590258 - app-office/dia2code-0.8.7 - Segmentation fault
Summary: app-office/dia2code-0.8.7 - Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-02 05:30 UTC by Pál Csányi
Modified: 2016-08-04 19:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
This is my .dia file. (Iskola_2016_17.dia,3.35 KB, application/x-dia-diagram)
2016-08-02 05:30 UTC, Pál Csányi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pál Csányi 2016-08-02 05:30:09 UTC
Created attachment 442228 [details]
This is my .dia file.

Hi,

I have installed from Gentoo repository app-office/dia2code version 0.8.7.

When I run it with the command
dia2code -v -t sql Iskola_2016_17.dia
I get:
Segmentation fault

I ask help upstream and get this message:
Hi,

What diacode version are you using?
With 0.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

So it seems to me that that we can get the fresher dia2code, namely the version 0.8.8 here on Gentoo system too. Right?
Comment 1 Pacho Ramos gentoo-dev 2016-08-04 19:10:37 UTC
Please try with that newer version then:
[master 3e07a58] app-office/dia2code: Version bump (#590258 by Pál Csányi)
 2 files changed, 24 insertions(+)
 create mode 100644 app-office/dia2code/dia2code-0.8.8.ebuild