Date: Thu, 17 Jun 1999 14:27:28 +0200 (CEST) From: "Ronald 'Ko' Klop" <ronald@node11a94.a2000.nl> To: freebsd-questions@freebsd.org Subject: ghostscript 5.5 floating point exception Message-ID: <Pine.BSF.4.05.9906171233001.58803-200000@dlanor.evertsen.nl>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hello, I compiled ghostscript 5.5 from the ports collection. When I run this program it immediately crashes with a floating point exception. I have a Cyrix 486DX and the kernel detects npx0 while booting. So, I have a FPU. Gs gets the signal in png_push_fill_buffer() which is an empty function in gdevpnm.c. I don't understand how a FPU exception can occure in an empty function. Does somebody know how to solve this? I attached a backtrace of gdb and the output of truss. -- Ronald Klop http://node11a94.a2000.nl/~ronald/ [-- Attachment #2 --] gdb gs 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 "i386-unknown-freebsd"... (no debugging symbols found)... (gdb) run Starting program: /usr/local/bin/gs (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... Program received signal SIGFPE, Arithmetic exception. 0x80fe1d7 in png_push_fill_buffer () (gdb) bt #0 0x80fe1d7 in png_push_fill_buffer () #1 0x80fe5fe in png_push_fill_buffer () #2 0x80fe641 in png_push_fill_buffer () #3 0x80fe66e in png_push_fill_buffer () #4 0x8100f81 in png_push_fill_buffer () #5 0x8100dd1 in png_push_fill_buffer () #6 0x80f80d0 in png_push_fill_buffer () #7 0x80f821c in png_push_fill_buffer () #8 0x8101ac7 in png_push_fill_buffer () #9 0x80938fa in free () #10 0x807a9f6 in free () #11 0x807d5ec in free () #12 0x807cf63 in free () #13 0x80783f7 in free () #14 0x807845a in free () #15 0x80790a4 in free () #16 0x804a72b in free () #17 0x804a6ad in free () (gdb) quit The program is running. Exit anyway? (y or n) y ------------------------------------------------------------------------ truss gs syscall __sysctl(0xbfbfdb30,0x2,0x2816f0b0,0xbfbfdb38,0x0,0x0) returns 0 (0x0) syscall mmap(0x0,32768,0x3,0x1002,-1,0x0) returns 672595968 (0x28170000) syscall geteuid() returns 1001 (0x3e9) syscall getuid() returns 1001 (0x3e9) syscall getegid() returns 20 (0x14) syscall getgid() returns 20 (0x14) syscall open("/var/run/ld-elf.so.hints",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfdae4,0x80) returns 128 (0x80) syscall lseek(3,0x80,0) returns 128 (0x80) syscall read(0x3,0x28175000,0x52) returns 82 (0x52) syscall close(3) returns 0 (0x0) syscall access(0x28171020,0x0) returns 0 (0x0) syscall open("/usr/lib/libz.so.2",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,53248,0x5,0x2,3,0x0) returns 672628736 (0x28178000) syscall mmap(0x28183000,8192,0x3,0x12,3,0xa000) returns 672673792 (0x28183000) syscall close(3) returns 0 (0x0) syscall access(0x28171040,0x0) errno 2 'No such file or directory' syscall access(0x28171040,0x0) errno 2 'No such file or directory' syscall access(0x28171040,0x0) errno 2 'No such file or directory' syscall access(0x28171040,0x0) returns 0 (0x0) syscall open("/usr/local/lib/libpng.so.3",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,106496,0x5,0x2,3,0x0) returns 672681984 (0x28185000) syscall mmap(0x2819d000,8192,0x3,0x12,3,0x17000) returns 672780288 (0x2819d000) syscall close(3) returns 0 (0x0) syscall access(0x28171060,0x0) errno 2 'No such file or directory' syscall access(0x28171060,0x0) errno 2 'No such file or directory' syscall access(0x28171060,0x0) returns 0 (0x0) syscall open("/usr/X11R6/lib/libXt.so.6",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,253952,0x5,0x2,3,0x0) returns 672788480 (0x2819f000) syscall mmap(0x281d9000,12288,0x3,0x12,3,0x39000) returns 673026048 (0x281d9000) syscall mmap(0x281dc000,4096,0x3,0x1012,-1,0x0) returns 673038336 (0x281dc000) syscall close(3) returns 0 (0x0) syscall access(0x28171080,0x0) errno 2 'No such file or directory' syscall access(0x28171080,0x0) errno 2 'No such file or directory' syscall access(0x28171080,0x0) returns 0 (0x0) syscall open("/usr/X11R6/lib/libSM.so.6",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,32768,0x5,0x2,3,0x0) returns 673042432 (0x281dd000) syscall mmap(0x281e4000,4096,0x3,0x12,3,0x6000) returns 673071104 (0x281e4000) syscall close(3) returns 0 (0x0) syscall access(0x281710a0,0x0) errno 2 'No such file or directory' syscall access(0x281710a0,0x0) errno 2 'No such file or directory' syscall access(0x281710a0,0x0) returns 0 (0x0) syscall open("/usr/X11R6/lib/libICE.so.6",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,81920,0x5,0x2,3,0x0) returns 673075200 (0x281e5000) syscall mmap(0x281f6000,4096,0x3,0x12,3,0x10000) returns 673144832 (0x281f6000) syscall mmap(0x281f7000,8192,0x3,0x1012,-1,0x0) returns 673148928 (0x281f7000) syscall close(3) returns 0 (0x0) syscall access(0x281710c0,0x0) errno 2 'No such file or directory' syscall access(0x28176000,0x0) errno 2 'No such file or directory' syscall access(0x281710c0,0x0) returns 0 (0x0) syscall open("/usr/X11R6/lib/libXext.so.6",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,40960,0x5,0x2,3,0x0) returns 673157120 (0x281f9000) syscall mmap(0x28202000,4096,0x3,0x12,3,0x8000) returns 673193984 (0x28202000) syscall close(3) returns 0 (0x0) syscall access(0x281710e0,0x0) errno 2 'No such file or directory' syscall access(0x281710e0,0x0) errno 2 'No such file or directory' syscall access(0x281710e0,0x0) returns 0 (0x0) syscall open("/usr/X11R6/lib/libX11.so.6",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,602112,0x5,0x2,3,0x0) returns 673198080 (0x28203000) syscall mmap(0x28290000,20480,0x3,0x12,3,0x8c000) returns 673775616 (0x28290000) syscall mmap(0x28295000,4096,0x3,0x1012,-1,0x0) returns 673796096 (0x28295000) syscall close(3) returns 0 (0x0) syscall access(0x28171100,0x0) returns 0 (0x0) syscall open("/usr/lib/libm.so.2",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,106496,0x5,0x2,3,0x0) returns 673800192 (0x28296000) syscall mmap(0x282ad000,12288,0x3,0x12,3,0x16000) returns 673894400 (0x282ad000) syscall close(3) returns 0 (0x0) syscall access(0x28171120,0x0) returns 0 (0x0) syscall open("/usr/lib/libc.so.3",0,05005566160) returns 3 (0x3) syscall read(0x3,0xbfbfcb64,0x1000) returns 4096 (0x1000) syscall mmap(0x0,524288,0x5,0x2,3,0x0) returns 673906688 (0x282b0000) syscall mmap(0x2831d000,16384,0x3,0x12,3,0x6c000) returns 674353152 (0x2831d000) syscall mmap(0x28321000,61440,0x3,0x1012,-1,0x0) returns 674369536 (0x28321000) syscall close(3) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall access(0x28171140,0x0) returns 0 (0x0) syscall getrusage(0x0,0xbfbfd83c) returns 0 (0x0) syscall getrusage(0xffffffff,0xbfbfd83c) returns 0 (0x0) syscall gettimeofday(0xbfbfd834,0x0) returns 0 (0x0) syscall readlink("/etc/malloc.conf","H",63) returns 1 (0x1) syscall mmap(0x0,4096,0x3,0x1002,-1,0x0) returns 674430976 (0x28330000) syscall break(0x816e000) returns 0 (0x0) syscall break(0x816f000) returns 0 (0x0) syscall break(0x8170000) returns 0 (0x0) syscall break(0x8171000) returns 0 (0x0) syscall break(0x8172000) returns 0 (0x0) syscall break(0x8174000) returns 0 (0x0) syscall break(0x8179000) returns 0 (0x0) syscall break(0x817a000) returns 0 (0x0) syscall break(0x817f000) returns 0 (0x0) syscall break(0x8182000) returns 0 (0x0) syscall break(0x8187000) returns 0 (0x0) syscall break(0x818a000) returns 0 (0x0) syscall break(0x81a3000) returns 0 (0x0) syscall break(0x81a9000) returns 0 (0x0) syscall break(0x81aa000) returns 0 (0x0) SIGNAL 8 SIGNAL 8 Process stopped because of: 16 process exit, rval = 8 Floating point exception
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9906171233001.58803-200000>
