Bug#1509: error 139 with jgraph/core dump
> So I tried manually
> $ jgraph < cube.jgr > cube.eps
> Segmentation fault (core dumped)
I wonder if someone with better and/or more recent low level
debugging skills than I could take a quick look at this.
Jgraph appears to be getting a segfault before reaching
main(). It looks like either I'm missing something really
obvious, or there's a wider problem here.
I installed the last known working version of jgraph, and
it runs fine. I rebuilt from those sources, and it segfaults.
I rebuilt using -g and ran it under gdb, and it gets a segfault
before reaching main(). It also segfaults before reaching
main() if built from current sources, which haven't changed
substantively from the last known working sources.
Here's a log of my gdb session:
Script started on Fri Sep 29 17:58:24 1995
[?1h=bash# gdb jgraph
[?1l>GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.14 (i486-debian-linux), Copyright 1995 Free Software Foundation, Inc...
(gdb) break main
Breakpoint 1 at 0xd44b: file jgraph.c, line 332.
(gdb) run
Starting program: /home/debian/packages/work/jgraph-83/old/jgraph-83/jgraph
Program received signal SIGSEGV, Segmentation fault.
0x62f013be in end ()
(gdb) where
#0 0x62f013be in end ()
#1 0x0 in ?? ()
(gdb) list
323 int i;
324 int show, pp;
325 int landscape;
326 int comments;
327 int nfiles;
328
329 #ifdef VMS
330 IOSTREAM = stdin; /* for token.c -hdd */
331 #endif
332 show = 0;
(gdb) list 318
313 newg->epifile = 0;
314 if (first(gs) == nil(gs)) newg->page = 1; else newg->page = last(gs)->page+1;
315 insert(newg, gs);
316 }
317
318 main(argc, argv)
319 int argc;
320 char **argv;
321 {
322 Graphs gs;
(gdb)
323 int i;
324 int show, pp;
325 int landscape;
326 int comments;
327 int nfiles;
328
329 #ifdef VMS
330 IOSTREAM = stdin; /* for token.c -hdd */
331 #endif
332 show = 0;
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) y
[?1h=bash#
Script done on Fri Sep 29 17:59:37 1995
Reply to: