Bug#894589: graphviz: Segmentation fault in feasible_tree() at at ns.c:516 in libgvc.so.6

2018-04-01 Thread Boyuan Yang
Control: notfound -1 2.38.0-17
Control: found -1 2.40.1-2

2018-04-02 8:46 GMT+08:00 Boyuan Yang <073p...@gmail.com>:
> Package: graphviz
> Version: 2.40.1-2
> Severity: important
>
> Dear Maintainer,
>
> I run "dot -Tsvg pkg-deepin-dep.today.dot" and got segfault.
>
> Reading symbols from /usr/bin/dot...Reading symbols from 
> /usr/lib/debug/.build-
> id/b2/d9312242d7e1e1734fd2e8a3555268ddbea8bf.debug...done.
> done.
> (gdb) set pagination off
> (gdb) r -Tsvg pkg-deepin-dep.today.dot
> Starting program: /usr/bin/dot -Tsvg pkg-deepin-dep.today.dot
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>
> Program received signal SIGSEGV, Segmentation fault.
> feasible_tree () at ns.c:516
> 516 ns.c: 没有那个文件或目录.
> (gdb) bt full
> #0  feasible_tree () at ns.c:516
> tree = 0x55964110
> i = 
> n = 
> subtree_count = 
> #1  rank2 (g=g@entry=0x5577ea40, balance=balance@entry=2,
> maxiter=2147483647, search_size=) at ns.c:821
> iter = 0
> ns = 0x77bb7b5e "network simplex: "
> f = 
> #2  0x77b88c64 in rank (g=g@entry=0x5577ea40,
> balance=balance@entry=2, maxiter=) at ns.c:870
> s = 
> search_size = 
> #3  0x71d15db5 in dot_position (g=g@entry=0x5577ea40,
> asp=asp@entry=0x0) at position.c:132
> __PRETTY_FUNCTION__ = "dot_position"
> #4  0x71d0e259 in dotLayout (g=g@entry=0x5577ea40) at 
> dotinit.c:326
> aspect = {targetAR = 3.9525251667299724e-323, combiAR =
> 9.8813129168249309e-324, prevIterations = -9280, curIterations = 32767,
> nextIter = 0, nPasses = -1335793544, badGraph = 0}
> asp = 0x0
> maxphase = -1
> #5  0x71d0eaa8 in doDot (g=0x5577ea40) at dotinit.c:463
> ccs = 
> sg = 
> i = 
> ncc = -1335793544
> pinfo = {aspect = 1.70365918e+13, sz = 0, margin = 8, doSplines = 0,
> mode = l_node, fixed = 0x0, vals = 0x0, flags = 0}
> Pack = -1
> mode = l_undef
> #6  dot_layout (g=0x5577ea40) at dotinit.c:509
> No locals.
> #7  0x77b5cdcb in gvLayoutJobs (gvc=, g=0x5577ea40)
> at gvlayout.c:85
> gvle = 0x71f27690 
> p = 
> rc = 
> #8  0x502f in main (argc=, argv=) at
> dot.c:134
> prev = 0x0
> r = 
> rc = 0
>
> The input file can be found at
> https://salsa.debian.org/pkg-deepin-team/progress-
> tracker/tree/02359e87d31274e3d314e91112c21b9260a883c8/depgraph
> (by running make -B) and I have attached an example file too.

Graphviz in Stretch is not affected, btw.

--
Regards,
Boyuan Yang



Bug#894589: graphviz: Segmentation fault in feasible_tree() at at ns.c:516 in libgvc.so.6

2018-04-01 Thread Boyuan Yang
Package: graphviz
Version: 2.40.1-2
Severity: important

Dear Maintainer,

I run "dot -Tsvg pkg-deepin-dep.today.dot" and got segfault.

Reading symbols from /usr/bin/dot...Reading symbols from /usr/lib/debug/.build-
id/b2/d9312242d7e1e1734fd2e8a3555268ddbea8bf.debug...done.
done.
(gdb) set pagination off
(gdb) r -Tsvg pkg-deepin-dep.today.dot
Starting program: /usr/bin/dot -Tsvg pkg-deepin-dep.today.dot
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
feasible_tree () at ns.c:516
516 ns.c: 没有那个文件或目录.
(gdb) bt full
#0  feasible_tree () at ns.c:516
tree = 0x55964110
i = 
n = 
subtree_count = 
#1  rank2 (g=g@entry=0x5577ea40, balance=balance@entry=2,
maxiter=2147483647, search_size=) at ns.c:821
iter = 0
ns = 0x77bb7b5e "network simplex: "
f = 
#2  0x77b88c64 in rank (g=g@entry=0x5577ea40,
balance=balance@entry=2, maxiter=) at ns.c:870
s = 
search_size = 
#3  0x71d15db5 in dot_position (g=g@entry=0x5577ea40,
asp=asp@entry=0x0) at position.c:132
__PRETTY_FUNCTION__ = "dot_position"
#4  0x71d0e259 in dotLayout (g=g@entry=0x5577ea40) at dotinit.c:326
aspect = {targetAR = 3.9525251667299724e-323, combiAR =
9.8813129168249309e-324, prevIterations = -9280, curIterations = 32767,
nextIter = 0, nPasses = -1335793544, badGraph = 0}
asp = 0x0
maxphase = -1
#5  0x71d0eaa8 in doDot (g=0x5577ea40) at dotinit.c:463
ccs = 
sg = 
i = 
ncc = -1335793544
pinfo = {aspect = 1.70365918e+13, sz = 0, margin = 8, doSplines = 0,
mode = l_node, fixed = 0x0, vals = 0x0, flags = 0}
Pack = -1
mode = l_undef
#6  dot_layout (g=0x5577ea40) at dotinit.c:509
No locals.
#7  0x77b5cdcb in gvLayoutJobs (gvc=, g=0x5577ea40)
at gvlayout.c:85
gvle = 0x71f27690 
p = 
rc = 
#8  0x502f in main (argc=, argv=) at
dot.c:134
prev = 0x0
r = 
rc = 0

The input file can be found at
https://salsa.debian.org/pkg-deepin-team/progress-
tracker/tree/02359e87d31274e3d314e91112c21b9260a883c8/depgraph
(by running make -B) and I have attached an example file too.

--
Regards,
Boyuan Yang



-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'buildd-unstable'), (500, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages graphviz depends on:
ii  libann0  1.1.2+doc-6
ii  libc62.27-3
ii  libcairo21.15.10-2
ii  libcdt5  2.40.1-2
ii  libcgraph6   2.40.1-2
ii  libexpat12.2.5-3
ii  libgcc1  1:8-20180331-1
ii  libgd3   2.2.5-4
ii  libglib2.0-0 2.56.0-4
ii  libgts-0.7-5 0.7.6+darcs121130-4
ii  libgvc6  2.40.1-2
ii  libgvpr2 2.40.1-2
ii  libice6  2:1.0.9-2
ii  liblab-gamut12.40.1-2
ii  libltdl7 2.4.6-2
ii  libpango-1.0-0   1.42.0-1
ii  libpangocairo-1.0-0  1.42.0-1
ii  libpathplan4 2.40.1-2
ii  libsm6   2:1.2.2-1+b3
ii  libstdc++6   8-20180331-1
ii  libx11-6 2:1.6.5-1
ii  libxaw7  2:1.0.13-1+b2
ii  libxdot4 2.40.1-2
ii  libxext6 2:1.3.3-1+b2
ii  libxmu6  2:1.1.2-2
ii  libxpm4  1:3.5.12-1
ii  libxt6   1:1.1.5-1
ii  zlib1g   1:1.2.8.dfsg-5

Versions of packages graphviz recommends:
ii  fonts-liberation  1:1.07.4-5

Versions of packages graphviz suggests:
pn  graphviz-doc  
ii  gsfonts   1:8.11+urwcyr1.0.7~pre44-4.4

-- no debconf information
digraph "deepin-dependency-list" {
/**
 *
 * PKG-DEEPIN TEAM
 *
 * pkg-deepin-de...@lists.alioth.debian.org
 * salsa.debian.org/pkg-deepin-team
 *
 * * * * * * * * * * * * * * * * * * * * * *
 *
 * ACCEPTED: green
 * NEW: magenta
 * RFS: deepskyblue
 * ITP: yellow
 *  non-ITP-blocked: grey
 * with-problem: red
 * deepin packages: square/octagon
 * non-deepin packages: diamond
 */

rankdir=LR;
node [style=filled];

subgraph "DeepinPackages" {
node [penwidth=4, shape=octagon];
"deepin-boot-maker" [color=yellow];
"deepin-calculator" [color=green];
"deepin-image-viewer" [color=green];
"deepin-terminal" [color=green];
"deepin-screenshot" [color=green];
"deepin-movie-reborn" [color=green];
"deepin-music" [color=grey];