pdftex[827]

commits+thanh at tug.org commits+thanh at tug.org
Tue May 26 15:36:21 CEST 2020


Revision: 827
          http://tug.org/svn/pdftex?view=revision&revision=827
Author:   thanh
Date:     2020-05-26 15:36:21 +0200 (Tue, 26 May 2020)
Log Message:
-----------
add test files for bug: segfault with \pdfadjustinterwordglue

Added Paths:
-----------
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdb_history
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdbinit
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/Makefile
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/cmr10.tfm
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/f.tex
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/rebuild.sh
    branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/run.sh

Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdb_history
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdb_history	                        (rev 0)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdb_history	2020-05-26 13:36:21 UTC (rev 827)
@@ -0,0 +1,22 @@
+set args --ini ./f.tex
+r
+b 20611
+r
+l
+l -
+pnodetype p
+pnodetype g
+n
+pnodetype r
+n
+l 
+n
+pnodetype r
+n
+r
+l -
+pnodetype p
+pnodetype g
+pnodetype p
+print mem[p].hh.u.B1
+q

Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdbinit
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdbinit	                        (rev 0)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/.gdbinit	2020-05-26 13:36:21 UTC (rev 827)
@@ -0,0 +1,123 @@
+# the macros defined here are to help debugging pdftex
+set history save on
+set confirm off
+set print elements 256
+
+# print scaled
+def ps
+    print $0/65535.0
+end
+
+def pvf
+    echo "w="
+    p w
+    echo "x="
+    p x
+    echo "y="
+    p y
+    echo "z="
+    p z
+end
+
+# print the value of a string
+def pstring
+    print strpool[strstart[$arg0]]@strstart[$arg0+1]-strstart[$arg0]
+end
+
+# print font name as string
+def pfontname
+    pstring fontname[$arg0]
+end
+
+# print various values related to a font
+def pfont
+    echo "fontname = "
+    pfontname $arg0
+    echo "fontsize = "
+    p fontsize[$arg0]/65536.0
+    echo "pdffontautoexpand = "
+    p pdffontautoexpand[$arg0]
+end
+
+# print type of node as string
+def pnodetype
+    if $arg0 >= himemmin
+        echo char_node\n
+    else
+        if zmem[$arg0].hh.u.B0 == 0
+            echo hlist_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 1
+            echo vlist_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 2
+            echo rule_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 3
+            echo ins_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 4
+            echo mark_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 5
+            echo adjust_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 6
+            echo ligature_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 7
+            echo disc_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 8
+            echo whatsit_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 9
+            echo math_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 10
+            echo glue_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 11
+            echo kern_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 12
+            echo penalty_node\n
+        end
+        if zmem[$arg0].hh.u.B0 == 13
+            echo unset_node\n
+        end
+    end
+end
+
+# print type of a node
+# def ptype
+#     print mem[$arg0].hh.u.B0
+# end
+# 
+# def psubtype
+# print mem[$arg0].hh.u.B1
+# end
+# 
+# def pfont
+#     ptype $arg0
+# end
+# 
+# def pchar
+# psubtype($arg0)
+# end
+# 
+# def pinfo
+# print mem[$arg0].hh.v.LH
+# end
+# 
+# def plink
+# print mem[$arg0].hh.v.RH
+# end
+# 
+# def pmarginchar
+# pinfo($arg0+2)
+# end
+# 
+# def setpdflatex
+# set args -fmt=pdflatex $arg0
+# end

Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/Makefile
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/Makefile	                        (rev 0)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/Makefile	2020-05-26 13:36:21 UTC (rev 827)
@@ -0,0 +1,3 @@
+include ../Common.mak
+clean:
+	$(clean)

Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/cmr10.tfm
===================================================================
(Binary files differ)

Index: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/cmr10.tfm
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/cmr10.tfm	2020-05-26 13:34:50 UTC (rev 826)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/cmr10.tfm	2020-05-26 13:36:21 UTC (rev 827)

Property changes on: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/cmr10.tfm
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/f.tex
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/f.tex	                        (rev 0)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/f.tex	2020-05-26 13:36:21 UTC (rev 827)
@@ -0,0 +1,6 @@
+\catcode`\{=1 \catcode`\}=2 \pdfoutput=1 \nonstopmode \hbadness=10000
+\vsize=20pc \hsize=30pt \parfillskip=0pt plus1fil
+\font\f=cmr10
+\f
+\pdfadjustinterwordglue1 \unhbox0 \kern1pt \ %
+\end

Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/rebuild.sh
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/rebuild.sh	                        (rev 0)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/rebuild.sh	2020-05-26 13:36:21 UTC (rev 827)
@@ -0,0 +1,3 @@
+set -x
+cd ../../source/build-pdftex/texk/web2c
+make pdftex

Added: branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/run.sh
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/run.sh	                        (rev 0)
+++ branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/run.sh	2020-05-26 13:36:21 UTC (rev 827)
@@ -0,0 +1,6 @@
+if [ ! -e ./pdftex]; then
+  ln -s ../../source/build-pdftex/texk/web2c/pdftex .
+fi
+
+set -x
+TFMFONTS=. ./pdftex -ini ./f.tex



More information about the pdftex-commits mailing list.