Your message dated Mon, 06 Nov 2006 03:32:15 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#356406: fixed in gprolog 1.2.18-17
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gprolog
Version: 1.2.18-12

Any time a division is done in gprolog, I get a segfault with sprintf()
at the top of the backtrace, and what looks like tons of NULLs in the
stacktrace.

To repro:
cat > a.pl <<EOF
foo(X) :-
        X is 10 / 3.
EOF
gprolog
| ?- consult(a).
| ?- foo(X).

Cutting out mass of addx 0's, debug output here:
Script started on Sat Mar 11 13:10:32 2006
barbeque/zarathustra:games: cat > a.pl<<EOF
> foo(X) :- X is 10 / 3.
> EOF
barbeque/zarathustra:games: gdb gprolog
GNU gdb 6.3-debian
Copyright 2004 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 "x86_64-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) r
Starting program: /usr/bin/gprolog
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
GNU Prolog 1.2.18
By Daniel Diaz
Copyright (C) 1999-2004 Daniel Diaz
| ?- consult(a).
compiling /public/src/mine/games/a.pl for byte code...
/public/src/mine/games/a.pl compiled, 1 lines read - 347 bytes written, 6 ms

yes
| ?- foo(X).


Program received signal SIGSEGV, Segmentation fault.
0x00002b76d8c5e581 in sprintf () from /lib/libc.so.6
(gdb) bt
#0  0x00002b76d8c5e581 in sprintf () from /lib/libc.so.6
#1  0x000000000048b218 in ?? ()
#2  0x000000000048c5e6 in ?? ()
#3  0x000000000044cea1 in ?? ()
#4  0x00000000000038cb in ?? ()
#5  0x0000000000000000 in ?? ()
<<snippage>>
#701 0x0000000000000000 in ?? ()
#702 0x00007fffffbce186 in ?? ()
#703 0x00002b76d8e2f000 in stderr () from /lib/libc.so.6
#704 0x0000000000000001 in ?? ()
#705 0x00007fffffbcdef0 in ?? ()
#706 0x0000000000000014 in ?? ()
#707 0x00007fffffbcdef0 in ?? ()
#708 0x00002b76d8c8089f in _IO_default_xsputn () from /lib/libc.so.6
#709 0x00002b76d8c5792b in vfprintf () from /lib/libc.so.6
#710 0x00002b76d8c77105 in vsprintf () from /lib/libc.so.6
#711 0x00002b76d89770fa in _dl_lookup_versioned_symbol_skip () from 
/lib64/ld-linux-x86-64.so.2
#712 0x00002b76d8976074 in _dl_lookup_versioned_symbol () from 
/lib64/ld-linux-x86-64.so.2
#713 0x00002b76d8979718 in _dl_map_object_deps () from 
/lib64/ld-linux-x86-64.so.2
Previous frame inner to this frame (corrupt stack?)
(gdb) info reg
rax            0x1      1
rbx            0x2b76dc64f360   47789503738720
rcx            0x7fffffbcc257   140737483948631
rdx            0x7fffffbcc188   140737483948424
rsi            0x4a1bf8 4856824
rdi            0x687200 6844928
rbp            0x7fffffbce2a0   0x7fffffbce2a0
rsp            0x7fffffbcc188   0x7fffffbcc188
r8             0x2b76d8c5e581   47789442983297
r9             0x4      4
r10            0x1      1
r11            0x0      0
r12            0x2b76da64e000   47789470179328
r13            0x2b76d8e4c060   47789445005408
r14            0x2b76dc64f2b8   47789503738552
r15            0x2b76da64e9d8   47789470181848
rip            0x2b76d8c5e581   0x2b76d8c5e581 <sprintf+129>
eflags         0x10206  66054
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
(gdb) The program is running.  Exit anyway? (y or n) y
barbeque/zarathustra:games: uname -a
Linux zarathustra 2.6.16-rc5-g292b976d #1 PREEMPT Mon Mar 6 23:39:23 PST 2006 
x86_64 GNU/Linux
barbeque/zarathustra:games: cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 7
model name      : AMD Athlon(tm) 64 Processor 4000+
stepping        : 10
cpu MHz         : 2400.000
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 4813.12
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

barbeque/zarathustra:games:
Script done on Sat Mar 11 13:11:32 2006


--- End Message ---
--- Begin Message ---
Source: gprolog
Source-Version: 1.2.18-17

We believe that the bug you reported is fixed in the latest version of
gprolog, which is due to be installed in the Debian FTP archive:

gprolog-doc_1.2.18-17_all.deb
  to pool/main/g/gprolog/gprolog-doc_1.2.18-17_all.deb
gprolog_1.2.18-17.diff.gz
  to pool/main/g/gprolog/gprolog_1.2.18-17.diff.gz
gprolog_1.2.18-17.dsc
  to pool/main/g/gprolog/gprolog_1.2.18-17.dsc
gprolog_1.2.18-17_i386.deb
  to pool/main/g/gprolog/gprolog_1.2.18-17_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvador Abreu <[EMAIL PROTECTED]> (supplier of updated gprolog package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon,  6 Nov 2006 10:40:23 +0000
Source: gprolog
Binary: gprolog gprolog-doc
Architecture: source i386 all
Version: 1.2.18-17
Distribution: unstable
Urgency: low
Maintainer: Salvador Abreu <[EMAIL PROTECTED]>
Changed-By: Salvador Abreu <[EMAIL PROTECTED]>
Description: 
 gprolog    - GNU Prolog compiler
 gprolog-doc - documentation for the GNU Prolog compiler
Closes: 356406 358256 397135
Changes: 
 gprolog (1.2.18-17) unstable; urgency=low
 .
   * Fix non-ascii character in doc/use.tex; this only seems to be a
     problem with more recent versions of hevea.  (closes: #397135)
   * Fix unaligned access on amd64.  This is done in a way which I'd rather
     not have to confess: I had GCC produce assembly code, which is then
     patched via a sed script before being fed to as.  Thanks to
     [EMAIL PROTECTED] for pointing out the location of the problem.
     (closes: #356406)
   * Fixed a few things in order to be able to use more recent versions of
     gcc, most notably casts in lvalues.  As of now, gcc 4.1 can be used to
     compile gprolog!
   * Doesn't leave anything in /etc/alternatives nor /usr/bin after being
     purged.  (closes: #358256)
Files: 
 d2578ad6ef2fa87666dcdd689839782b 704 devel optional gprolog_1.2.18-17.dsc
 4b047d7b1a98e8e451054276a958f07a 116575 devel optional 
gprolog_1.2.18-17.diff.gz
 f2dbcfdc45f4cd643dbb0646b6788a57 1049544 doc optional 
gprolog-doc_1.2.18-17_all.deb
 53a48a9762c54c45ae44b3158718df18 1120032 devel optional 
gprolog_1.2.18-17_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFTxHZzoTo55Wk8dYRAsVnAKDX24gpe/DD+eHqDgVp8LfvNkwPXwCfa5VP
gAk3Bx0Efam6MKLsFpnAU/I=
=7cD2
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to