Develop and Download Open Source Software

Ticket #28184

Open Date: 2012-04-26 22:48

Last Update: 2012-05-29 14:57

luatexja-ruby + beamer + hbox で assertion failed

Reporter:h7kOwner:h7k
Priority:4MileStone:(None)
Type:BugsSeverity:5 - Medium
Component:(None)Status:Closed
ResolutionNone

Details

kitagawa_ruby ブランチで,下のソース:

%#! lualatex
\documentclass{beamer}
\usepackage{luatexja-ruby}
\begin{document}
\begin{frame}
\hbox{\ruby{あ}{い}}
\end{frame}
\end{document}
を処理させると
lualatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830: free_error: Assertion `p> my_prealloc' failed.
というエラーがおきます.frame 環境に fragile 指定をつけても同じですが,frame の外に移動させると平気です.

gdb で見てみると,handle_right_brace () -> package (c=0) -> flush_node_list (pp=8) でメモリ解放のエラーがおきているようですが,まだよく調べていません.とりあえずエラー報告だけ.

Attach File

File ListNo attachments.
Add New attachment
Add attachment filesPlease login to add new attachment

Ticket History - 3/4 Histories [Show all old Histories]

2012-04-26 22:48 Update by: h7k

  • New Ticket "luatexja-ruby + beamer + hbox で assertion failed" created

2012-05-28 08:23 Update by: h7k

Comment

より詳細にみてみると,packaging.w 中の package() 中の

    if (saved_value(2) != null) {
        /* DIR: Adjust back |text_dir_ptr| for |scan_spec| */
        flush_node_list(text_dir_ptr);
        text_dir_ptr = saved_value(2);
でおこっています.また入力を
あ\hbox{\ruby{あ}{い}}
と変えると,エラーが
lualatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:2064: set_attribute: Assertion `varmem[(p)].hh.v.RH!=0' failed.
と変わります.

2012-05-28 08:33 Update by: h7k

  • Owner Update from (None) to h7k.

2012-05-29 14:57 Update by: h7k

  • Ticket Close date set to 2012-05-29 14:57
  • Status Update from Open to Closed.

Comment

commit 6c3bd6b で直しました.ltj-ruby.lua の

 tex.setattribute(attr_ruby, -0x7FFFFFFF);
が悪さをしていたようです(attr_ruby は和文/欧文分別のデータが入っている attribute と供用していた). 本コミットでは attr_ruby を別の attribute として,ここはいじりませんでしたが,
 tex.setattribute(attr_ruby, -0x7FFFFFFF);
は次回のコミットで削除する予定です.


Add Comment/Update #28184 (luatexja-ruby + beamer + hbox で assertion failed)

You are not logged in. If you do not want to anonymous write, please login. » Login


SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.