<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - crash: close document using old template including page count."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=114060">114060</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>crash: close document using old template including page count.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha1+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>souichirho@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
after 8 steps, libreoffice is crashed.
As these steps is very complex, I attach screen captures slide,(BugDetail.odp)
and my using document and template. 


Steps to Reproduce:
1. create template include Page Cont to footer
2. Save Template
3. Create New Document using template
4. Edit Document over 2 page and save document.
5. Edit template include Page Count
6. Open document that created step from 3 to 4
→ popup window, press “Keep Old Style” 
→ Open document on old template
7. Close document. (ex. [x] button )
→popup “Save Document” 
8. Press “Don’t Save” 
→ Crash

Actual Results:  
after step 8, application crash.


Expected Results:
not crash
and I think after step 7,  not modified document -> not popup "Save Ducument"
window


Reproducible: Always


User Profile Reset: No



Additional Info:
crash report is
<a href="http://crashreport.libreoffice.org/stats/crash_details/811fb4b4-ddc4-407d-8e84-da79a0096ba3">http://crashreport.libreoffice.org/stats/crash_details/811fb4b4-ddc4-407d-8e84-da79a0096ba3</a>

my test env
Version: 6.0.0.0.alpha1+
Build ID: b03f7cdc04f9df778e2da93eadfe1d44f7665caf
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time:
2017-11-25_14:35:30
Locale: en-US (C); Calc: group threaded


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101
Firefox/57.0</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>