Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dot] Crash in dot when using "corner" ports. #849

Closed
GadgetSteve opened this issue Jul 4, 2016 · 1 comment
Closed

[Dot] Crash in dot when using "corner" ports. #849

GadgetSteve opened this issue Jul 4, 2016 · 1 comment

Comments

@GadgetSteve
Copy link
Contributor

GadgetSteve commented Jul 4, 2016

Ported Issue from Mantis
Original ID: 1367
Reported By: Aleksey Nogin

SEVERITY: CRITICAL
Submitted: 2008-07-28 22:49:51

OS: X86-LINUX-RHEL 5.2

VERSION: 2.21.20080727.0445

DESCRIPTION


The following crashes dot.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208367424 (LWP 27778)]
makeFlatEnd (sp=0xbfdfa8b8, P=0x85c9348, n=0x8599b58, e=0x8599cd0, endp=0xbfdf5e5c, isBegin=0 '\0')
    at dotsplines.c:982
982         b.UR.y = endp->boxes[endp->boxn - 1].UR.y;
(gdb) bt
#0  makeFlatEnd (sp=0xbfdfa8b8, P=0x85c9348, n=0x8599b58, e=0x8599cd0, endp=0xbfdf5e5c, isBegin=0 '\0')
    at dotsplines.c:982
#1  0x00ed71de in make_flat_edge (sp=0xbfdfa8b8, P=0x85c9348, edges=0x85cac00, ind=1, cnt=1, et=8)
    at dotsplines.c:1217
#2  0x00ed5c52 in _dot_splines (g=0x85986f8, normalize=1) at dotsplines.c:393
#3  0x00eca9d6 in dot_layout (g=0x85986f8) at dotinit.c:212
#4  0x0030be18 in gvLayoutJobs (gvc=0x858d428, g=0x85986f8) at gvlayout.c:69
#5  0x08048992 in main (argc=2, argv=Cannot access memory at address 0x8e
) at dot.c:180
#6  0x00ae6dec in __libc_start_main () from /lib/libc.so.6
#7  0x08048801 in _start ()
## STEPS TO REPRODUCE

strict digraph G {
   edge [constraint = false];
   Node1 -> Node2; Node1:sw -> Node3:ne;
};

ADDITIONAL INFORMATION

If I use "s" in place of "sw" or "n" in place of "ne", it does not
crash. This might be related to bugs 1370, 1372.

[erg] Works okay in 2.12.

@GadgetSteve
Copy link
Contributor Author

Addressed in 2.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant