Unable to convert .docx file containing date picker control created with VB

Product: PDFNetC

Product Version: 10.1.0

Please give a brief summary of your issue:

Error and segfault when converting .docx file containing a date picker with OfficeToPDF.

tmp/testing.rb:10:in `OfficeToPDF': PDFNet Exception: document layout failed: std::bad_alloc (StandardError)
        from tmp/testing.rb:10:in `<main>'

I’ve also noticed segfaults but only on x86_64 platforms. Only std::bad_alloc was observed in arm64.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Create a new .docx file with Microsoft Word on macOS (v16.73). Create a date picker control with VB:

  • Click inside document where you want to place the date picker
  • In the “Developer” tab, click “Visual Basic”
  • Define subroutine
    Sub AddDatePicker()
      Dim cc As ContentControl
      Dim dt As Date
      Set cc = ActiveDocument.ContentControls _
        .Add(wdContentControlDate)
      dt = Date
      cc.Range.Text = dt
    End Sub
    
  • Run the sub and close the VB editor
  • Observe date picker is inserted in the document
  • Save

The script:

# frozen_string_literal: true

require '/usr/local/PDFNetC/Lib/PDFNetRuby'

PDFNetRuby::PDFNet.Initialize(ENV.fetch('PDFTRON_LICENSE_KEY'))

filepath = ARGV.first
doc = PDFNetRuby::PDFDoc.new
doc.Lock
PDFNetRuby::Convert.OfficeToPDF(doc, filepath, nil)
doc.Unlock

Run:

ruby tmp/testing.rb tmp/datepicker.docx

Output:

PDFNet is running in demo mode.
Package: base
Package: office
tmp/testing.rb:10:in `OfficeToPDF': PDFNet Exception: document layout failed: std::bad_alloc (StandardError)
        from tmp/testing.rb:10:in `<main>'

If I add additional text after the date picker, the script segfaults on x86_64. For instance, in the doc:

6/21/23

This is a test.

The “6/21/23” is from the date picker. The “This is a test.” text was typed in by hand. The segfault is accompanied by the control frame info, Ruby level backtrace info, machine register context, C level backtrace info, Other runtime info, and process memory map. Added latest in a reply comment.

Please provide a link to a minimal sample where the issue is reproducible:
See above.

Including output from segfault from latest testing.

PDFNet is running in demo mode.
Package: base
Package: office
tmp/testing.rb:10: [BUG] Segmentation fault at 0x0000000000000000
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0015 e:000014 CFUNC  :OfficeToPDF
c:0002 p:0043 s:0008 E:001f90 EVAL   tmp/testing.rb:10 [FINISH]
c:0001 p:0000 s:0003 E:001e50 DUMMY  [FINISH]

-- Ruby level backtrace information ----------------------------------------
tmp/testing.rb:10:in `<main>'
tmp/testing.rb:10:in `OfficeToPDF'

-- Machine register context ------------------------------------------------
 RIP: 0x00007f5158480592 RBP: 0x00005584454253e0 RSP: 0x00007ffc57727310
 RAX: 0x00558445425a7800 RBX: 0x000055844542537f RCX: 0x00000000ffffffff
 RDX: 0x0000000045425380 RDI: 0x00558445425a77e8 RSI: 0x00007ffc57727570
  R8: 0x000000000000007f  R9: 0x0000558445425c90 R10: 0x0000000000000001
 R11: 0x00007f515a6d00dc R12: 0x00007f515b38da60 R13: 0x00007ffc57727768
 R14: 0x00007ffc5772731f R15: 0x00007ffc577279e0 EFL: 0x0000000000010206

-- C level backtrace information -------------------------------------------
/usr/local/lib/libruby.so.3.2(rb_print_backtrace+0x11) [0x7f5160b2e530] vm_dump.c:785
/usr/local/lib/libruby.so.3.2(rb_vm_bugreport) vm_dump.c:1080
/usr/local/lib/libruby.so.3.2(rb_bug_for_fatal_signal+0xf0) [0x7f516094d540] error.c:813
/usr/local/lib/libruby.so.3.2(sigsegv+0x4b) [0x7f5160a91e6b] signal.c:964
/lib/x86_64-linux-gnu/libpthread.so.0(__restore_rt+0x0) [0x7f5160e3c730]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f5158480592) [0x7f5158480592]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51587a0da0) [0x7f51587a0da0]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51588b0c79) [0x7f51588b0c79]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51588a4c2c) [0x7f51588a4c2c]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51588b1578) [0x7f51588b1578]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51588b1682) [0x7f51588b1682]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51588aa349) [0x7f51588aa349]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51584533fa) [0x7f51584533fa]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51593be342) [0x7f51593be342]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51593bed91) [0x7f51593bed91]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f51593bf150) [0x7f51593bf150]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f5158ea4842) [0x7f5158ea4842]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f5158f00152) [0x7f5158f00152]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f5158457611) [0x7f5158457611]
/usr/local/PDFNetC/Lib/libPDFNetC.so(0x7f5158438bd9) [0x7f5158438bd9]
/usr/local/PDFNetC/Lib/libPDFNetC.so(TRN_ConvertOfficeToPdfWithPath+0xa2) [0x7f5158059442]
/usr/local/PDFNetC/Lib/PDFNetRuby.so(_ZN7pdftron3PDF7Convert11OfficeToPDFERNS0_6PDFDocERKNS_7UStringEPNS0_17ConversionOptionsE+0x53) [0x7f515b94ae99]
/usr/local/PDFNetC/Lib/PDFNetRuby.so(_ZL33_wrap_Convert_OfficeToPDF__SWIG_0iPmm+0x24c) [0x7f515b7948e7]
/usr/local/PDFNetC/Lib/PDFNetRuby.so(_ZL25_wrap_Convert_OfficeToPDFiPmm+0x23f) [0x7f515b795a1a]
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame+0xe2) [0x7f5160b0a482] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_method_each_type+0xe6) [0x7f5160b25246] vm_insnhelper.c:3920
/usr/local/lib/libruby.so.3.2(vm_call_method+0xc4) [0x7f5160b25c04] vm_insnhelper.c:4070
/usr/local/lib/libruby.so.3.2(vm_sendish+0x0) [0x7f5160b175cd] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core) insns.def:820
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0x706) [0x7f5160b1cfc6] vm.c:2383
/usr/local/lib/libruby.so.3.2(rb_ec_exec_node+0xab) [0x7f516095241b] eval.c:289
/usr/local/lib/libruby.so.3.2(ruby_run_node+0x8b) [0x7f516095870b] eval.c:330
/usr/local/bin/ruby(rb_main+0x21) [0x558442d08112] ./main.c:38
/usr/local/bin/ruby(main) ./main.c:57
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f51604a709b]
[0x558442d0815a]

-- Other runtime information -----------------------------------------------

* Loaded script: tmp/testing.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 fiber.so
    3 rational.so
    4 complex.so
    5 ruby2_keywords.rb
    6 /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
    7 /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
    8 /usr/local/lib/ruby/3.2.0/x86_64-linux/rbconfig.rb
    9 /usr/local/lib/ruby/3.2.0/rubygems/compatibility.rb
   10 /usr/local/lib/ruby/3.2.0/rubygems/defaults.rb
   11 /usr/local/lib/ruby/3.2.0/rubygems/deprecate.rb
   12 /usr/local/lib/ruby/3.2.0/rubygems/errors.rb
   13 /usr/local/lib/ruby/3.2.0/rubygems/unknown_command_spell_checker.rb
   14 /usr/local/lib/ruby/3.2.0/rubygems/exceptions.rb
   15 /usr/local/lib/ruby/3.2.0/rubygems/basic_specification.rb
   16 /usr/local/lib/ruby/3.2.0/rubygems/stub_specification.rb
   17 /usr/local/lib/ruby/3.2.0/rubygems/platform.rb
   18 /usr/local/lib/ruby/3.2.0/rubygems/util/list.rb
   19 /usr/local/lib/ruby/3.2.0/rubygems/version.rb
   20 /usr/local/lib/ruby/3.2.0/rubygems/requirement.rb
   21 /usr/local/lib/ruby/3.2.0/rubygems/specification.rb
   22 /usr/local/lib/ruby/3.2.0/rubygems/util.rb
   23 /usr/local/lib/ruby/3.2.0/rubygems/dependency.rb
   24 /usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_gem.rb
   25 /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
   26 /usr/local/lib/ruby/3.2.0/monitor.rb
   27 /usr/local/lib/ruby/3.2.0/rubygems.rb
   28 /usr/local/lib/ruby/3.2.0/rubygems/path_support.rb
   29 /usr/local/lib/ruby/3.2.0/error_highlight/version.rb
   30 /usr/local/lib/ruby/3.2.0/error_highlight/base.rb
   31 /usr/local/lib/ruby/3.2.0/error_highlight/formatter.rb
   32 /usr/local/lib/ruby/3.2.0/error_highlight/core_ext.rb
   33 /usr/local/lib/ruby/3.2.0/error_highlight.rb
   34 /usr/local/lib/ruby/3.2.0/did_you_mean/version.rb
   35 /usr/local/lib/ruby/3.2.0/did_you_mean/core_ext/name_error.rb
   36 /usr/local/lib/ruby/3.2.0/did_you_mean/levenshtein.rb
   37 /usr/local/lib/ruby/3.2.0/did_you_mean/jaro_winkler.rb
   38 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checker.rb
   39 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
   40 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
   41 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/name_error_checkers.rb
   42 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/method_name_checker.rb
   43 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/key_error_checker.rb
   44 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/null_checker.rb
   45 /usr/local/lib/ruby/3.2.0/did_you_mean/tree_spell_checker.rb
   46 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/require_path_checker.rb
   47 /usr/local/lib/ruby/3.2.0/did_you_mean/spell_checkers/pattern_key_name_checker.rb
   48 /usr/local/lib/ruby/3.2.0/did_you_mean/formatter.rb
   49 /usr/local/lib/ruby/3.2.0/did_you_mean.rb
   50 /usr/local/lib/ruby/3.2.0/syntax_suggest/core_ext.rb
   51 /usr/local/PDFNetC/Lib/PDFNetRuby.so

* Process memory map:

558442d07000-558442d08000 r--p 00000000 08:05 842980                     /usr/local/bin/ruby
558442d08000-558442d09000 r-xp 00001000 08:05 842980                     /usr/local/bin/ruby
558442d09000-558442d0a000 r--p 00002000 08:05 842980                     /usr/local/bin/ruby
558442d0a000-558442d0b000 r--p 00002000 08:05 842980                     /usr/local/bin/ruby
558442d0b000-558442d0c000 rw-p 00003000 08:05 842980                     /usr/local/bin/ruby
558444cc8000-558445463000 rw-p 00000000 00:00 0                          [heap]
7f5147600000-7f5147ee4000 r--s 00000000 08:05 840164                     /usr/local/PDFNetC/Lib/PDFNetRuby.so
7f5148000000-7f5148030000 rw-p 00000000 00:00 0
7f5148030000-7f514c000000 ---p 00000000 00:00 0
7f514c600000-7f514ff30000 r--s 00000000 08:05 840165                     /usr/local/PDFNetC/Lib/libPDFNetC.so
7f5150000000-7f51500bc000 rw-p 00000000 00:00 0
7f51500bc000-7f5154000000 ---p 00000000 00:00 0
7f515448d000-7f515464a000 r--s 00000000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f515464a000-7f5155c00000 rw-p 00000000 00:00 0
7f5155c00000-7f5156cf9000 r--s 00000000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f5156d08000-7f5156d09000 ---p 00000000 00:00 0
7f5156d09000-7f5157509000 rw-p 00000000 00:00 0
7f5157509000-7f515767c000 r--p 00000000 08:05 833541                     /usr/lib/locale/C.UTF-8/LC_COLLATE
7f515767c000-7f5157705000 r--p 00000000 08:05 838263                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
7f5157705000-7f51577b1000 r-xp 00089000 08:05 838263                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
7f51577b1000-7f51577ef000 r--p 00135000 08:05 838263                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
7f51577ef000-7f51577f0000 ---p 00173000 08:05 838263                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
7f51577f0000-7f51577fa000 r--p 00173000 08:05 838263                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
7f51577fa000-7f51577fc000 rw-p 0017d000 08:05 838263                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
7f51577fc000-7f5157800000 rw-p 00000000 00:00 0
7f5157800000-7f515ac4c000 r-xp 00000000 08:05 840165                     /usr/local/PDFNetC/Lib/libPDFNetC.so
7f515ac4c000-7f515ae4b000 ---p 0344c000 08:05 840165                     /usr/local/PDFNetC/Lib/libPDFNetC.so
7f515ae4b000-7f515b32f000 rw-p 0344b000 08:05 840165                     /usr/local/PDFNetC/Lib/libPDFNetC.so
7f515b32f000-7f515b38e000 rw-p 00000000 00:00 0
7f515b400000-7f515b5b5000 r--p 00000000 08:05 840164                     /usr/local/PDFNetC/Lib/PDFNetRuby.so
7f515b5b5000-7f515b9dd000 r-xp 001b5000 08:05 840164                     /usr/local/PDFNetC/Lib/PDFNetRuby.so
7f515b9dd000-7f515bb05000 r--p 005dd000 08:05 840164                     /usr/local/PDFNetC/Lib/PDFNetRuby.so
7f515bb05000-7f515bb09000 r--p 00704000 08:05 840164                     /usr/local/PDFNetC/Lib/PDFNetRuby.so
7f515bb09000-7f515bb2f000 rw-p 00708000 08:05 840164                     /usr/local/PDFNetC/Lib/PDFNetRuby.so
7f515bb2f000-7f515bb34000 rw-p 00000000 00:00 0
7f515bb7f000-7f515bba3000 r--s 00000000 08:05 827331                     /lib/x86_64-linux-gnu/libpthread-2.28.so
7f515bba3000-7f515bbd7000 r--s 00000000 08:05 842980                     /usr/local/bin/ruby
7f515bbd7000-7f515bd00000 rw-p 00000000 00:00 0
7f515bd0a000-7f515bd0b000 r--p 00000000 08:05 833543                     /usr/lib/locale/C.UTF-8/LC_IDENTIFICATION
7f515bd0b000-7f515bd0c000 r--p 00000000 08:05 833544                     /usr/lib/locale/C.UTF-8/LC_MEASUREMENT
7f515bd0c000-7f515bd0d000 r--p 00000000 08:05 833551                     /usr/lib/locale/C.UTF-8/LC_TELEPHONE
7f515bd0d000-7f515bd0e000 r--p 00000000 08:05 833540                     /usr/lib/locale/C.UTF-8/LC_ADDRESS
7f515bd0e000-7f515bd0f000 r--p 00000000 08:05 833548                     /usr/lib/locale/C.UTF-8/LC_NAME
7f515bd0f000-7f515bd10000 r--p 00000000 08:05 833550                     /usr/lib/locale/C.UTF-8/LC_PAPER
7f515bd10000-7f515bdf0000 rw-p 00000000 00:00 0
7f515bdf0000-7f515bdf1000 ---p 00000000 00:00 0
7f515bdf1000-7f515be92000 rw-p 00000000 00:00 0
7f515be92000-7f515be93000 ---p 00000000 00:00 0
7f515be93000-7f515bf34000 rw-p 00000000 00:00 0
7f515bf34000-7f515bf35000 ---p 00000000 00:00 0
7f515bf35000-7f515bfd6000 rw-p 00000000 00:00 0
7f515bfd6000-7f515bfd7000 ---p 00000000 00:00 0
7f515bfd7000-7f515c078000 rw-p 00000000 00:00 0
7f515c078000-7f515c079000 ---p 00000000 00:00 0
7f515c079000-7f515c11a000 rw-p 00000000 00:00 0
7f515c11a000-7f515c11b000 ---p 00000000 00:00 0
7f515c11b000-7f515c1bc000 rw-p 00000000 00:00 0
7f515c1bc000-7f515c1bd000 ---p 00000000 00:00 0
7f515c1bd000-7f515c25e000 rw-p 00000000 00:00 0
7f515c25e000-7f515c25f000 ---p 00000000 00:00 0
7f515c25f000-7f515c300000 rw-p 00000000 00:00 0
7f515c300000-7f515c301000 ---p 00000000 00:00 0
7f515c301000-7f515c3a2000 rw-p 00000000 00:00 0
7f515c3a2000-7f515c3a3000 ---p 00000000 00:00 0
7f515c3a3000-7f515c444000 rw-p 00000000 00:00 0
7f515c444000-7f515c445000 ---p 00000000 00:00 0
7f515c445000-7f515c4e6000 rw-p 00000000 00:00 0
7f515c4e6000-7f515c4e7000 ---p 00000000 00:00 0
7f515c4e7000-7f515c588000 rw-p 00000000 00:00 0
7f515c588000-7f515c589000 ---p 00000000 00:00 0
7f515c589000-7f515c62a000 rw-p 00000000 00:00 0
7f515c62a000-7f515c62b000 ---p 00000000 00:00 0
7f515c62b000-7f515c6cc000 rw-p 00000000 00:00 0
7f515c6cc000-7f515c6cd000 ---p 00000000 00:00 0
7f515c6cd000-7f515c76e000 rw-p 00000000 00:00 0
7f515c76e000-7f515c76f000 ---p 00000000 00:00 0
7f515c76f000-7f515c810000 rw-p 00000000 00:00 0
7f515c810000-7f515c811000 ---p 00000000 00:00 0
7f515c811000-7f515c8b2000 rw-p 00000000 00:00 0
7f515c8b2000-7f515c8b3000 ---p 00000000 00:00 0
7f515c8b3000-7f515c954000 rw-p 00000000 00:00 0
7f515c954000-7f515c955000 ---p 00000000 00:00 0
7f515c955000-7f515c9f6000 rw-p 00000000 00:00 0
7f515c9f6000-7f515c9f7000 ---p 00000000 00:00 0
7f515c9f7000-7f515ca98000 rw-p 00000000 00:00 0
7f515ca98000-7f515ca99000 ---p 00000000 00:00 0
7f515ca99000-7f515cb3a000 rw-p 00000000 00:00 0
7f515cb3a000-7f515cb3b000 ---p 00000000 00:00 0
7f515cb3b000-7f515cbdc000 rw-p 00000000 00:00 0
7f515cbdc000-7f515cbdd000 ---p 00000000 00:00 0
7f515cbdd000-7f515cc7e000 rw-p 00000000 00:00 0
7f515cc7e000-7f515cc7f000 ---p 00000000 00:00 0
7f515cc7f000-7f515cd20000 rw-p 00000000 00:00 0
7f515cd20000-7f515cd21000 ---p 00000000 00:00 0
7f515cd21000-7f515cdc2000 rw-p 00000000 00:00 0
7f515cdc2000-7f515cdc3000 ---p 00000000 00:00 0
7f515cdc3000-7f515ce64000 rw-p 00000000 00:00 0
7f515ce64000-7f515ce65000 ---p 00000000 00:00 0
7f515ce65000-7f515cf06000 rw-p 00000000 00:00 0
7f515cf06000-7f515cf07000 ---p 00000000 00:00 0
7f515cf07000-7f515cfa8000 rw-p 00000000 00:00 0
7f515cfa8000-7f515cfa9000 ---p 00000000 00:00 0
7f515cfa9000-7f515d04a000 rw-p 00000000 00:00 0
7f515d04a000-7f515d04b000 ---p 00000000 00:00 0
7f515d04b000-7f515d0ec000 rw-p 00000000 00:00 0
7f515d0ec000-7f515d0ed000 ---p 00000000 00:00 0
7f515d0ed000-7f515d18e000 rw-p 00000000 00:00 0
7f515d18e000-7f515d18f000 ---p 00000000 00:00 0
7f515d18f000-7f515d260000 rw-p 00000000 00:00 0
7f515d260000-7f515d261000 r--p 00000000 08:05 833546                     /usr/lib/locale/C.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES
7f515d261000-7f515d262000 r--p 00000000 08:05 962116                     /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
7f515d262000-7f515d263000 r-xp 00001000 08:05 962116                     /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
7f515d263000-7f515d264000 r--p 00002000 08:05 962116                     /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
7f515d264000-7f515d265000 r--p 00002000 08:05 962116                     /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
7f515d265000-7f515d266000 rw-p 00003000 08:05 962116                     /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
7f515d266000-7f5160330000 rw-p 00000000 00:00 0
7f5160330000-7f5160331000 r--p 00000000 08:05 962089                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
7f5160331000-7f5160333000 r-xp 00001000 08:05 962089                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
7f5160333000-7f5160334000 r--p 00003000 08:05 962089                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
7f5160334000-7f5160335000 r--p 00003000 08:05 962089                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
7f5160335000-7f5160336000 rw-p 00004000 08:05 962089                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
7f5160336000-7f5160437000 rw-p 00000000 00:00 0
7f5160437000-7f5160469000 r--p 00000000 08:05 833542                     /usr/lib/locale/C.UTF-8/LC_CTYPE
7f5160469000-7f516046c000 r--p 00000000 08:05 827280                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f516046c000-7f516047d000 r-xp 00003000 08:05 827280                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f516047d000-7f5160480000 r--p 00014000 08:05 827280                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5160480000-7f5160481000 ---p 00017000 08:05 827280                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5160481000-7f5160482000 r--p 00017000 08:05 827280                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5160482000-7f5160483000 rw-p 00018000 08:05 827280                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5160483000-7f51604a5000 r--p 00000000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f51604a5000-7f51605ec000 r-xp 00022000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f51605ec000-7f5160638000 r--p 00169000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f5160638000-7f5160639000 ---p 001b5000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f5160639000-7f516063d000 r--p 001b5000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f516063d000-7f516063f000 rw-p 001b9000 08:05 827260                     /lib/x86_64-linux-gnu/libc-2.28.so
7f516063f000-7f5160643000 rw-p 00000000 00:00 0
7f5160643000-7f5160650000 r--p 00000000 08:05 827293                     /lib/x86_64-linux-gnu/libm-2.28.so
7f5160650000-7f51606ef000 r-xp 0000d000 08:05 827293                     /lib/x86_64-linux-gnu/libm-2.28.so
7f51606ef000-7f51607c4000 r--p 000ac000 08:05 827293                     /lib/x86_64-linux-gnu/libm-2.28.so
7f51607c4000-7f51607c5000 r--p 00180000 08:05 827293                     /lib/x86_64-linux-gnu/libm-2.28.so
7f51607c5000-7f51607c6000 rw-p 00181000 08:05 827293                     /lib/x86_64-linux-gnu/libm-2.28.so
7f51607c6000-7f51607c7000 r--p 00000000 08:05 827268                     /lib/x86_64-linux-gnu/libcrypt-2.28.so
7f51607c7000-7f51607cd000 r-xp 00001000 08:05 827268                     /lib/x86_64-linux-gnu/libcrypt-2.28.so
7f51607cd000-7f51607cf000 r--p 00007000 08:05 827268                     /lib/x86_64-linux-gnu/libcrypt-2.28.so
7f51607cf000-7f51607d0000 ---p 00009000 08:05 827268                     /lib/x86_64-linux-gnu/libcrypt-2.28.so
7f51607d0000-7f51607d1000 r--p 00009000 08:05 827268                     /lib/x86_64-linux-gnu/libcrypt-2.28.so
7f51607d1000-7f51607d2000 rw-p 0000a000 08:05 827268                     /lib/x86_64-linux-gnu/libcrypt-2.28.so
7f51607d2000-7f5160800000 rw-p 00000000 00:00 0
7f5160800000-7f51608a5000 r--p 00000000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f51608a5000-7f5160c4e000 r-xp 000a5000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f5160c4e000-7f5160ded000 r--p 0044e000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f5160ded000-7f5160dee000 ---p 005ed000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f5160dee000-7f5160e09000 r--p 005ed000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f5160e09000-7f5160e0d000 rw-p 00608000 08:05 960804                     /usr/local/lib/libruby.so.3.2.1
7f5160e0d000-7f5160e20000 rw-p 00000000 00:00 0
7f5160e20000-7f5160e21000 r--p 00000000 08:05 833547                     /usr/lib/locale/C.UTF-8/LC_MONETARY
7f5160e21000-7f5160e22000 r--p 00000000 08:05 962045                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
7f5160e22000-7f5160e23000 r-xp 00001000 08:05 962045                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
7f5160e23000-7f5160e24000 r--p 00002000 08:05 962045                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
7f5160e24000-7f5160e25000 r--p 00002000 08:05 962045                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
7f5160e25000-7f5160e26000 rw-p 00003000 08:05 962045                     /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
7f5160e26000-7f5160e2a000 rw-p 00000000 00:00 0
7f5160e2a000-7f5160e30000 r--p 00000000 08:05 827331                     /lib/x86_64-linux-gnu/libpthread-2.28.so
7f5160e30000-7f5160e3f000 r-xp 00006000 08:05 827331                     /lib/x86_64-linux-gnu/libpthread-2.28.so
7f5160e3f000-7f5160e45000 r--p 00015000 08:05 827331                     /lib/x86_64-linux-gnu/libpthread-2.28.so
7f5160e45000-7f5160e46000 r--p 0001a000 08:05 827331                     /lib/x86_64-linux-gnu/libpthread-2.28.so
7f5160e46000-7f5160e47000 rw-p 0001b000 08:05 827331                     /lib/x86_64-linux-gnu/libpthread-2.28.so
7f5160e47000-7f5160e4d000 rw-p 00000000 00:00 0
7f5160e4d000-7f5160e4e000 r--p 00000000 08:05 827270                     /lib/x86_64-linux-gnu/libdl-2.28.so
7f5160e4e000-7f5160e4f000 r-xp 00001000 08:05 827270                     /lib/x86_64-linux-gnu/libdl-2.28.so
7f5160e4f000-7f5160e50000 r--p 00002000 08:05 827270                     /lib/x86_64-linux-gnu/libdl-2.28.so
7f5160e50000-7f5160e51000 r--p 00002000 08:05 827270                     /lib/x86_64-linux-gnu/libdl-2.28.so
7f5160e51000-7f5160e52000 rw-p 00003000 08:05 827270                     /lib/x86_64-linux-gnu/libdl-2.28.so
7f5160e52000-7f5160e5d000 r--p 00000000 08:05 837966                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7f5160e5d000-7f5160ebb000 r-xp 0000b000 08:05 837966                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7f5160ebb000-7f5160ed2000 r--p 00069000 08:05 837966                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7f5160ed2000-7f5160ed3000 ---p 00080000 08:05 837966                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7f5160ed3000-7f5160ed4000 r--p 00080000 08:05 837966                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7f5160ed4000-7f5160ed5000 rw-p 00081000 08:05 837966                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7f5160ed5000-7f5160ed7000 r--p 00000000 08:05 827337                     /lib/x86_64-linux-gnu/librt-2.28.so
7f5160ed7000-7f5160edb000 r-xp 00002000 08:05 827337                     /lib/x86_64-linux-gnu/librt-2.28.so
7f5160edb000-7f5160edd000 r--p 00006000 08:05 827337                     /lib/x86_64-linux-gnu/librt-2.28.so
7f5160edd000-7f5160ede000 r--p 00007000 08:05 827337                     /lib/x86_64-linux-gnu/librt-2.28.so
7f5160ede000-7f5160edf000 rw-p 00008000 08:05 827337                     /lib/x86_64-linux-gnu/librt-2.28.so
7f5160edf000-7f5160ee2000 r--p 00000000 08:05 827358                     /lib/x86_64-linux-gnu/libz.so.1.2.11
7f5160ee2000-7f5160ef4000 r-xp 00003000 08:05 827358                     /lib/x86_64-linux-gnu/libz.so.1.2.11
7f5160ef4000-7f5160efa000 r--p 00015000 08:05 827358                     /lib/x86_64-linux-gnu/libz.so.1.2.11
7f5160efa000-7f5160efb000 ---p 0001b000 08:05 827358                     /lib/x86_64-linux-gnu/libz.so.1.2.11
7f5160efb000-7f5160efc000 r--p 0001b000 08:05 827358                     /lib/x86_64-linux-gnu/libz.so.1.2.11
7f5160efc000-7f5160efd000 rw-p 0001c000 08:05 827358                     /lib/x86_64-linux-gnu/libz.so.1.2.11
7f5160efd000-7f5160efe000 r--p 00000000 08:05 833552                     /usr/lib/locale/C.UTF-8/LC_TIME
7f5160efe000-7f5160eff000 r--p 00000000 08:05 833549                     /usr/lib/locale/C.UTF-8/LC_NUMERIC
7f5160eff000-7f5160f06000 r--s 00000000 08:05 837508                     /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f5160f06000-7f5160f08000 rw-p 00000000 00:00 0
7f5160f08000-7f5160f09000 r--p 00000000 08:05 827246                     /lib/x86_64-linux-gnu/ld-2.28.so
7f5160f09000-7f5160f27000 r-xp 00001000 08:05 827246                     /lib/x86_64-linux-gnu/ld-2.28.so
7f5160f27000-7f5160f2f000 r--p 0001f000 08:05 827246                     /lib/x86_64-linux-gnu/ld-2.28.so
7f5160f2f000-7f5160f30000 r--p 00026000 08:05 827246                     /lib/x86_64-linux-gnu/ld-2.28.so
7f5160f30000-7f5160f31000 rw-p 00027000 08:05 827246                     /lib/x86_64-linux-gnu/ld-2.28.so
7f5160f31000-7f5160f32000 rw-p 00000000 00:00 0
7ffc56f2a000-7ffc57729000 rw-p 00000000 00:00 0                          [stack]
7ffc57752000-7ffc57756000 r--p 00000000 00:00 0                          [vvar]
7ffc57756000-7ffc57758000 r-xp 00000000 00:00 0                          [vdso]

Create a new .docx file with Microsoft Word on macOS (v16.73). Create a date picker control with VB:

Could you please post here (or DM me) a DOCX file that you are using to cause the crash.

Sure! Here’s a file that I created following the directions I posted so there’s nothing sensitive in there. I actually suggest running this multiple times as now I’m starting to observe the std::bad_alloc exception sometimes, and segfaulting other times. Seems to intermittently do one or the other.

datepicker.docx (18.5 KB)

Thank you for the test file, I believe I have reproduced the issue you reported, and have assigned to the dev team. Once I learn more I will update you.

This has been resolved and our latest 10.2 production builds are already patched and ready for use.

Nice. Just tested it myself and looking good. Thanks for such a quick turnaround on this!

So it looks like v10.2 doesn’t like our current license for some reason and I’m getting a message that points me to your doc about Apryse license expired or AMS expired. The exception says:

PDFNet Exception: Your AMS expired on 20230623. For more information, please see https://www.pdftron.com/kb_ams_expired

But we actually renewed our contract with you just a couple months ago, and have been actively using our current license in production.

Falling back to v10.1 with our current license continues to work. Do we need to have a new license issued to start using v10.2? Or perhaps we need to wait until the release is available in your other downloads page instead?