From: Kip Warner <kip@thevertigo.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "General discussion of LuaTeX." <luatex@tug.org>
Subject: Re: Itemize without page break
Date: Sun, 18 Mar 2012 16:25:32 -0700 [thread overview]
Message-ID: <1332113133.3358.43.camel@kip-laptop> (raw)
In-Reply-To: <CBEC4406-E13A-42B4-9855-F56C982BF72D@googlemail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1389 bytes --]
On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
> Am 17.03.2012 um 10:21 schrieb luigi scarso:
>
> > On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner <kip@thevertigo.com> wrote:
> >> Hey list,
> >>
> >> Is there any way to hint to ConTeXt that the contents of a \startitemize
> >> \stopitemize pair should try to be all on the same page?
> > plain old tex
> > \vbox{%
> > \startitemize
> > \stopitemize%
> > }
>
> Better:
>
> \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
>
> \stopitemize
>
> You can control the space before/after the linecorrection environment with the optional
> argument which accepts all values for \blank, e.g. \startlinecorrection[2*line].
>
> Wolfgang
Hey Wolfgang,
The good news is that this is probably what I need. The bad news is
luatex completely blows itself to pieces, allocating memory until the
system crashes.
After much grinding of the machine, I managed to finally SIGSTOP and
attach gdb to the naughty process.
I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.
I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.1.2: gdb.log --]
[-- Type: text/x-log, Size: 7005 bytes --]
$ gdb luatex 8477
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/luatex...Reading symbols from /usr/lib/debug/usr/bin/luatex...done.
done.
Attaching to program: /usr/bin/luatex, process 8477
Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpng12.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.12.1.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.12.1.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.12.1.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.12.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00000000004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
154 ../../../source/texk/web2c/luatexdir/tex/textoken.w: No such file or directory.
in ../../../source/texk/web2c/luatexdir/tex/textoken.w
(gdb) bt full
#0 0x00000000004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
p = 273242622
t = 273242621
#1 0x0000000000471ded in macro_call () at ../../../source/texk/web2c/luatexdir/tex/expand.w:658
r = 273242622
p = 273242621
q = 273242622
s = -2109026328
t = <value optimised out>
u = 1572864
v = <value optimised out>
rbrace_ptr = <value optimised out>
n = <value optimised out>
unbalance = 9
m = 257
ref_count = 163662
save_scanner_status = 0
save_warning_index = 3331
match_chr = 35
#2 0x0000000000472a45 in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:384
No locals.
#3 0x0000000000511819 in test_for_cs () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:176
m = <value optimised out>
s = <value optimised out>
p = 526371
#4 conditional () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:483
b = <value optimised out>
r = <value optimised out>
m = <value optimised out>
n = <value optimised out>
p = <value optimised out>
---Type <return> to continue, or q <return> to quit---
q = <value optimised out>
save_scanner_status = <value optimised out>
save_cond_ptr = 74229
this_if = <value optimised out>
#5 0x0000000000472695 in expand () at ../../../source/texk/web2c/luatexdir/tex/expand.w:236
t = <value optimised out>
p = <value optimised out>
cur_ptr = <value optimised out>
cv_backup = 1
cvl_backup = 0
radix_backup = 0
co_backup = 0
backup_backup = 0
save_scanner_status = 0
#6 0x0000000000472a7d in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:391
No locals.
#7 0x000000000048022d in main_control () at ../../../source/texk/web2c/luatexdir/tex/maincontrol.w:892
No locals.
#8 0x0000000000477fa7 in main_body () at ../../../source/texk/web2c/luatexdir/tex/mainbody.w:469
pdftex_map = "pdftex.map"
#9 0x000000000045818e in main (ac=<value optimised out>, av=<value optimised out>)
at ../../../source/texk/web2c/luatexdir/luatex.c:460
No locals.
(gdb) info registers
rax 0x104959fe 273242622
rbx 0x104959fd 273242621
rcx 0x104959fe 273242622
rdx 0x2b80e8bbc010 47832660426768
rsi 0x136f35e2 326055394
rdi 0x2b8184356f28 47835268869928
rbp 0x9 0x9
rsp 0x7fff97386740 0x7fff97386740
r8 0x28 40
r9 0x180000 1572864
r10 0x0 0
r11 0x2b80e6dff0b1 47832629244081
r12 0x13fa88 1309320
r13 0x101 257
r14 0x27f4e 163662
r15 0x824acfe8 2185940968
rip 0x4a24d1 0x4a24d1 <get_avail+49>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) x/16i $pc
=> 0x4a24d1 <get_avail+49>: movl $0x0,0x4(%rdx,%rcx,8)
0x4a24d9 <get_avail+57>: addl $0x1,0x963a88(%rip) # 0xe05f68 <dyn_used>
0x4a24e0 <get_avail+64>: pop %rbx
0x4a24e1 <get_avail+65>: retq
0x4a24e2 <get_avail+66>: jmp 0x4a24e8 <get_avail+72>
0x4a24e4 <get_avail+68>: nop
0x4a24e5 <get_avail+69>: nop
0x4a24e6 <get_avail+70>: nop
0x4a24e7 <get_avail+71>: nop
0x4a24e8 <get_avail+72>: mov %esi,%eax
0x4a24ea <get_avail+74>: mov $0xcccccccd,%ebx
0x4a24ef <get_avail+79>: mov 0x963a6a(%rip),%rdi # 0xe05f60 <fixmem>
0x4a24f6 <get_avail+86>: mul %ebx
0x4a24f8 <get_avail+88>: mov %edx,%ebx
0x4a24fa <get_avail+90>: shr $0x2,%ebx
0x4a24fd <get_avail+93>: lea 0x1(%rbx,%rsi,1),%esi
(gdb) thread apply all backtrace
Thread 1 (process 8477):
#0 0x00000000004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
#1 0x0000000000471ded in macro_call () at ../../../source/texk/web2c/luatexdir/tex/expand.w:658
#2 0x0000000000472a45 in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:384
#3 0x0000000000511819 in test_for_cs () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:176
#4 conditional () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:483
#5 0x0000000000472695 in expand () at ../../../source/texk/web2c/luatexdir/tex/expand.w:236
#6 0x0000000000472a7d in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:391
#7 0x000000000048022d in main_control () at ../../../source/texk/web2c/luatexdir/tex/maincontrol.w:892
#8 0x0000000000477fa7 in main_body () at ../../../source/texk/web2c/luatexdir/tex/mainbody.w:469
#9 0x000000000045818e in main (ac=<value optimised out>, av=<value optimised out>)
at ../../../source/texk/web2c/luatexdir/luatex.c:460
(gdb)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-03-18 23:25 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 1:47 Kip Warner
2012-03-17 9:21 ` luigi scarso
2012-03-17 10:21 ` Wolfgang Schuster
2012-03-18 23:25 ` Kip Warner [this message]
2012-03-18 23:29 ` Kip Warner
2012-03-19 8:17 ` Wolfgang Schuster
2012-03-20 1:04 ` Kip Warner
2012-03-20 5:22 ` Wolfgang Schuster
2012-03-20 5:31 ` Kip Warner
2012-03-20 5:46 ` Wolfgang Schuster
2012-03-20 5:49 ` Kip Warner
2012-03-20 7:21 ` [luatex] " Patrick Gundlach
2012-03-20 15:02 ` Khaled Hosny
2012-03-20 8:17 ` Hans Hagen
2012-03-20 10:05 ` luigi scarso
2012-03-20 18:50 ` Kip Warner
2012-03-20 14:57 ` [luatex] " Khaled Hosny
2012-03-20 18:59 ` Kip Warner
2012-03-20 19:26 ` Hans Hagen
2012-03-20 19:59 ` Kip Warner
2012-03-20 20:39 ` luigi scarso
2012-03-20 21:24 ` Kip Warner
2012-03-20 21:41 ` luigi scarso
2012-03-22 1:50 ` Kip Warner
2012-03-20 20:44 ` Hans Hagen
2012-03-20 21:26 ` Kip Warner
2012-03-20 22:18 ` Kip Warner
2012-03-20 22:22 ` Aditya Mahajan
2012-03-22 2:01 ` Kip Warner
2012-03-22 10:38 ` Mojca Miklavec
2012-03-22 10:48 ` Hans Hagen
2012-03-22 10:48 ` Hans Hagen
2012-03-22 11:21 ` Philipp Gesang
2012-03-22 11:58 ` Philipp Gesang
2012-03-22 22:47 ` Kip Warner
2012-03-22 22:46 ` Kip Warner
2012-03-22 22:40 ` Kip Warner
2012-03-22 12:05 ` luigi scarso
2012-03-22 16:38 ` luigi scarso
2012-03-19 21:49 ` Hans Hagen
2012-03-20 0:43 ` Kip Warner
2012-03-20 8:11 ` Hans Hagen
2012-03-18 23:33 ` luigi scarso
2012-03-19 21:50 ` Hans Hagen
2012-03-20 0:41 ` Kip Warner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332113133.3358.43.camel@kip-laptop \
--to=kip@thevertigo.com \
--cc=luatex@tug.org \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).