[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfault by wrong option -Efoo+
From: |
ITO Tsuyoshi |
Subject: |
Re: Segfault by wrong option -Efoo+ |
Date: |
Mon, 28 Jan 2002 15:22:55 +0900 (JST) |
Hello,
From: ITO Tsuyoshi <address@hidden>
Date: Sat, 26 Jan 2002 17:27:04 +0900 (JST)
Message-Id: <address@hidden>
> I am using a2ps 4.13 on Solaris 2.6 run on Sparc machine. When I
> invoked a2ps with a wrong -E (or equivalent --pretty-print) option
> which ended with ``+'', it failed with a segmentation fault.
I recompiled a2ps 4.13b and executed on GDB debugger. Here is the
backtrace:
> GNU gdb 4.18
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or 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.
> This GDB was configured as "sparc-sun-solaris2.6"...
> (gdb) r -Efoo+ /dev/null
> Starting program: /home2/users/tsuyoshi/usrlocal/a2ps-4.13b/bin/a2ps -Efoo+
> /dev/null
> a2ps: cannot find file `foo.ssh'
> a2ps: cannot find style sheet `foo': using plain style
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x21174 in style_sheet_mixed_new (ancestors=0x11bdb0 "foo+") at ssheet.c:765
> 765 cp = stpcpy (key, ancestor->key);
> (gdb) bt
> #0 0x21174 in style_sheet_mixed_new (ancestors=0x11bdb0 "foo+") at
> ssheet.c:765
> #1 0x23308 in get_style_sheet (key=0x11bdb0 "foo+") at ssheet.c:1490
> #2 0x24f94 in print (filename=0xeffffa2a "/dev/null",
> native_jobs=0xeffff874,
> delegated_jobs=0xeffff878) at generate.c:346
> #3 0x1d6dc in main (argc=3, argv=0xeffff8f4) at main.c:1165
> (gdb) print key
> $1 = 0xeffff238 ""
> (gdb) print ancestor
> $2 = (struct style_sheet *) 0x0
I hope this report will be a little help to make a2ps better, though
it is now useful enough. :-)
Best regards,
-- ITO Tsuyoshi <address@hidden> --
-- Department of Information Science --
-- in the University of Tokyo --
I do not subscribe this mailing list (address@hidden). If you want
to contact me, please send a mail directly to me.