<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>232742</bug_id>
          
          <creation_ts>2008-07-23 11:04 0000</creation_ts>
          <short_desc>sci-visualization/grace-5.1.22 does not print to file (using openmotif-2.3.0x) and crashes w/ openmotif-2.3.1</short_desc>
          <delta_ts>2008-07-27 08:24:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>scary.moo@libero.it</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          <cc>graphics@gentoo.org</cc>
    
    <cc>ulm@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-23 11:04:16 0000</bug_when>
            <thetext>Using latest xmgrace and openmotif-2.3.0-r3 I can open the &apos;print setup&apos; window and choose to print to file, but when told to print, the program does not produce any output file, be it ps,eps,pdf,jpg or anything else.  Upgrading to openmotif-2.3.1 makes the program crash as soon as one opens the print setup window (or many other things such as changing axes properties for what matters)
Previous version of grace did crash with openmotif-2.3.1, but could print to file using openmotif-2.3.0

Reproducible: Always

Steps to Reproduce:
1. try to print to file any grace project</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-23 11:05:46 0000</bug_when>
            <thetext>Created an attachment (id=161177)
xmgrace -v 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-23 11:07:00 0000</bug_when>
            <thetext>Created an attachment (id=161179)
emerge --info

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-25 15:22:54 0000</bug_when>
            <thetext>I can confirm this problem with openmotif. The issue seems to
be related to bug 1381 on openmotif&apos;s bug tracker. I&apos;ve cc&apos;d
the openmotif maintainer and will post a patch for openmotif
below that fixes the issue for me. Please give it a shot and
report back.

Thanks,
Markus </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-25 15:23:54 0000</bug_when>
            <thetext>Created an attachment (id=161350)
possible for fix for print dialog crash

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-25 17:25:06 0000</bug_when>
            <thetext>hi, the patch does indeed fix the problem for me, no more crashing with grace 5.1.21 and 5.1.22, thank you !

BUT grace-5.1.22 still doesn&apos;t print to file. no error messages, it just produces no output when told to print.   grace 5.1.21-r1 works fine instead.
thanks again

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-25 20:13:21 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; hi, the patch does indeed fix the problem for me, no more crashing with grace
&gt; 5.1.21 and 5.1.22, thank you !
&gt; 

Great, at least one bug is gone! We&apos;ll have to wait for the maintainer of
openmotif to have a look at the fix and decide if this can be added to
the current ebuild. I don&apos;t know openmotif well enough to judge its impact.

&gt; BUT grace-5.1.22 still doesn&apos;t print to file. no error messages, it just
&gt; produces no output when told to print.   grace 5.1.21-r1 works fine instead.
&gt; thanks again

That&apos;s probably unrelated to the crash and I can reproduce it. Printing itself
seems to work fine. I&apos;ll have a look.

Best,
Markus
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-07-25 20:55:26 0000</bug_when>
            <thetext>&gt; We&apos;ll have to wait for the maintainer of openmotif to have a look at the
&gt; fix and decide if this can be added to the current ebuild. I don&apos;t know
&gt; openmotif well enough to judge its impact.

The fix for upstream bug report 1381 is needed (at least) for our bug 210220, so we cannot simply disable it.

Does the patch attached at the upstream bug report fix the problem?
&lt;http://bugs.motifzone.net/showattachment.cgi?attach_id=156&gt;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-25 21:30:36 0000</bug_when>
            <thetext>yes this other patch seems to work too, grace doesn&apos;t crash.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-25 21:56:27 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; yes this other patch seems to work too, grace doesn&apos;t crash.
&gt; 

Yes, the patch seems to fix the crashing for me as well.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-07-25 22:45:48 0000</bug_when>
            <thetext>&gt; &gt; yes this other patch seems to work too, grace doesn&apos;t crash.
&gt; 
&gt; Yes, the patch seems to fix the crashing for me as well.

In CVS as openmotif-2.3.1-r1.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-26 09:57:55 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; In CVS as openmotif-2.3.1-r1.
&gt; 

Thank you very much! Hopefully I will be able to track down why 
printing to a file is still broken.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>umar@compsci.cas.vanderbilt.edu</who>
            <bug_when>2008-07-26 11:44:51 0000</bug_when>
            <thetext>I can print to file with no problems. I am using F8+ but I build
my own grace and openmotif. The only patch that relates to print
to a file is my tmpnam patch, which I don&apos;t remember where I got
it from.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>umar@compsci.cas.vanderbilt.edu</who>
            <bug_when>2008-07-26 11:45:57 0000</bug_when>
            <thetext>Created an attachment (id=161406)
Patch for tmpnam

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-26 14:23:48 0000</bug_when>
            <thetext>&gt; Patch for tmpnam
&gt; 

Okay, disclaimer: I have little to no knowlegde of C programming, patching and everything related. I just mess around cluelessy ! 

BUT, I tried reverting the patch you posted and I noted it didn&apos;t apply cleanly, since the file plotone.c was slightly different, ie. the
 prstream = grace_openw(fname);
line was inside the previous IF, while in your patch it was right outside. So just for the sake of it I tried changing that simple line putting it outside. 
I mean, i applied

--- plotone.c   2008-07-26 16:03:23.000000000 +0200
+++ plotone.c   2008-07-26 16:04:45.000000000 +0200
@@ -119,9 +119,9 @@
         if (print_file[0] == &apos;\0&apos;) {
             Device_entry dev = get_device_props(hdevice);
             sprintf(print_file, &quot;%s.%s&quot;, get_docbname(), dev.fext);
-           prstream = grace_openw(fname);
         }
         strcpy(fname, print_file);
+        prstream = grace_openw(fname);
     } else {
         int hdfd;
         s = get_print_cmd();

to grace-5.1.22 ebuild, rebuilt it and now printing to file /seems/ to work. I don&apos;t know why, of course. Hope this helps in some way :)


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-26 17:04:46 0000</bug_when>
            <thetext>(In reply to comment #14)
&gt; &gt; Patch for tmpnam
&gt; &gt; 
&gt; 
&gt; Okay, disclaimer: I have little to no knowlegde of C programming, patching and
&gt; everything related. I just mess around cluelessy ! 
&gt; 
&gt; BUT, I tried reverting the patch you posted and I noted it didn&apos;t apply
&gt; cleanly, since the file plotone.c was slightly different, ie. the
&gt;  prstream = grace_openw(fname);
&gt; line was inside the previous IF, while in your patch it was right outside. So
&gt; just for the sake of it I tried changing that simple line putting it outside. 
&gt; I mean, i applied
&gt; 
&gt; --- plotone.c   2008-07-26 16:03:23.000000000 +0200
&gt; +++ plotone.c   2008-07-26 16:04:45.000000000 +0200
&gt; @@ -119,9 +119,9 @@
&gt;          if (print_file[0] == &apos;\0&apos;) {
&gt;              Device_entry dev = get_device_props(hdevice);
&gt;              sprintf(print_file, &quot;%s.%s&quot;, get_docbname(), dev.fext);
&gt; -           prstream = grace_openw(fname);
&gt;          }
&gt;          strcpy(fname, print_file);
&gt; +        prstream = grace_openw(fname);
&gt;      } else {
&gt;          int hdfd;
&gt;          s = get_print_cmd();
&gt; 
&gt; to grace-5.1.22 ebuild, rebuilt it and now printing to file /seems/ to work. I
&gt; don&apos;t know why, of course. Hope this helps in some way :)
&gt; 

Great job and you hit the nail on the head! There was indeed a bug in
our grace-5.1.22-mkstemp.patch that probably sneaked its way in during 
porting from the original debian patch. 
I&apos;ve fixed it and revision bumped to grace-5.1.22-r1. 
Printing seem to work fine again. 

Thanks to you all for your help.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scary.moo@libero.it</who>
            <bug_when>2008-07-27 08:24:53 0000</bug_when>
            <thetext>I upgraded to -r1 and everything seems to work fine. Thanks everyone for your great support ! 
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>161177</attachid>
            <date>2008-07-23 11:05 0000</date>
            <desc>xmgrace -v </desc>
            <filename>gracev.txt</filename>
            <type>text/plain</type>
            <data encoding="base64">CkdyYWNlLTUuMS4yMgoKR1VJIHRvb2xraXQ6IEAoIylNb3RpZiBWZXJzaW9uIDIuMy4wClhiYWUg
dmVyc2lvbjogNDYwMDQKVDFsaWI6IDUuMS4yCkZGVDogYnVpbHQtaW4KTmV0Q0RGIHN1cHBvcnQ6
IG9mZgpsaWJwbmc6IDEuMi4yNwpsaWJqcGVnOiA2MgpQREZsaWI6IDcuMC4ycDgKQnVpbHQ6IFdl
ZCBKdWwgMjMgMTI6NDk6MDggMjAwOCBvbiBMaW51eCAjMyBQUkVFTVBUIFN1biBKdWwgMjAgMjA6
MTE6NTAgQ0VTVCAyMDA4IDIuNi4yNi1nZW50b28gaTY4NgpDb21waWxlciBmbGFnczogZ2NjIC1P
MiAtbWFyY2g9aTY4NiAtcGlwZSAtSS4uIC1JLiAgICAgLVdsLC1PMSAtbFhiYWUgLWxYbSAtbFhw
bSAtbFhwIC1sWG11IC1sWHQgLWxYZXh0IC1sWDExICAtbFNNIC1sSUNFICAuLi9jZXBoZXMvbGli
Y2VwaGVzLmEgICAtbHQxIC1scGRmIC1sanBlZyAtbHBuZyAtbHogLWxtICAtbGRsCgpSZWdpc3Rl
cmVkIGRldmljZXM6ClgxMSBQb3N0U2NyaXB0IEVQUyBQREYgTUlGIFNWRyBQTk0gSlBFRyBQTkcg
TWV0YWZpbGUgCgooQykgQ29weXJpZ2h0IDE5OTEtMTk5NSBQYXVsIEogVHVybmVyCihDKSBDb3B5
cmlnaHQgMTk5Ni0yMDA4IEdyYWNlIERldmVsb3BtZW50IFRlYW0KQWxsIFJpZ2h0cyBSZXNlcnZl
ZAo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>161179</attachid>
            <date>2008-07-23 11:07 0000</date>
            <desc>emerge --info</desc>
            <filename>einfo.txt</filename>
            <type>text/plain</type>
            <data encoding="base64">UG9ydGFnZSAyLjJfcmMxIChkZWZhdWx0L2xpbnV4L3g4Ni8yMDA4LjAsIGdjYy00LjMuMSwgZ2xp
YmMtMi44X3AyMDA4MDYwMi1yMCwgMi42LjI2LWdlbnRvbyBpNjg2KQo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpTeXN0ZW0g
dW5hbWU6IExpbnV4LTIuNi4yNi1nZW50b28taTY4Ni1BTURfQXRobG9uLXRtLV82NF9Qcm9jZXNz
b3JfMzAwMCstd2l0aC1nbGliYzIuMApUaW1lc3RhbXAgb2YgdHJlZTogV2VkLCAyMyBKdWwgMjAw
OCAwNzoxNTowMSArMDAwMAphcHAtc2hlbGxzL2Jhc2g6ICAgICAzLjJf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leCBjYWNoZSBkYXYgZGF2X2ZzIGRhdl9s
b2NrIGRlZmxhdGUgZGlyIGRpc2tfY2FjaGUgZW52IGV4cGlyZXMgZXh0X2ZpbHRlciBmaWxlX2Nh
Y2hlIGZpbHRlciBoZWFkZXJzIGluY2x1ZGUgaW5mbyBsb2dfY29uZmlnIGxvZ2lvIG1lbV9jYWNo
ZSBtaW1lIG1pbWVfbWFnaWMgbmVnb3RpYXRpb24gcmV3cml0ZSBzZXRlbnZpZiBzcGVsaW5nIHN0
YXR1cyB1bmlxdWVfaWQgdXNlcmRpciB1c2VydHJhY2sgdmhvc3RfYWxpYXMiIEVMSUJDPSJnbGli
YyIgSU5QVVRfREVWSUNFUz0ia2V5Ym9hcmQgbW91c2UgZXZkZXYiIEtFUk5FTD0ibGludXgiIExD
RF9ERVZJQ0VTPSJiYXlyYWQgY2ZvbnR6IGNmb250ejYzMyBnbGsgaGQ0NDc4MCBsYjIxNiBsY2Rt
MDAxIG10eG9yYiBuY3Vyc2VzIHRleHQiIFVTRVJMQU5EPSJHTlUiIFZJREVPX0NBUkRTPSJyYWRl
b24gdmVzYSIKVW5zZXQ6ICBDUFBGTEFHUywgQ1RBUkdFVCwgRU1FUkdFX0RFRkFVTFRfT1BUUywg
SU5TVEFMTF9NQVNLLCBMQ19BTEwsIExJTkdVQVMsIFBPUlRBR0VfQ09NUFJFU1MsIFBPUlRBR0Vf
Q09NUFJFU1NfRkxBR1MsIFBPUlRBR0VfUlNZTkNfRVhUUkFfT1BUUwoK
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>161350</attachid>
            <date>2008-07-25 15:23 0000</date>
            <desc>possible for fix for print dialog crash</desc>
            <filename>openmotif-2.3.1-xmgrace_crash_fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTmF1ciBvcGVubW90aWYtMi4zLjEvbGliL1htL1htSS5oIG9wZW5tb3RpZi0yLjMuMS5u
ZXcvbGliL1htL1htSS5oCi0tLSBvcGVubW90aWYtMi4zLjEvbGliL1htL1htSS5oCTIwMDgtMDQt
MjIgMTM6NTA6NDQuMDAwMDAwMDAwIC0wNDAwCisrKyBvcGVubW90aWYtMi4zLjEubmV3L2xpYi9Y
bS9YbUkuaAkyMDA4LTA3LTI1IDEwOjU5OjM4LjAwMDAwMDAwMCAtMDQwMApAQCAtMjc2LDcgKzI3
Niw3IEBACiB9ICAvKiBDbG9zZSBzY29wZSBvZiAnZXh0ZXJuICJDIicgZGVjbGFyYXRpb24gd2hp
Y2ggZW5jbG9zZXMgZmlsZS4gKi8KICNlbmRpZgogCi0jZGVmaW5lIEZJWF8xMzgxCisvLyNkZWZp
bmUgRklYXzEzODEKICNkZWZpbmUgRklYXzEzOTYKIAogI2lmZGVmIEZJWF8xMzgxCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>161406</attachid>
            <date>2008-07-26 11:45 0000</date>
            <desc>Patch for tmpnam</desc>
            <filename>grace_5.1.20-tmpnam.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNyYy9wbG90b25lLmMgICAgICAocmV2aXNpb24gMzA5KQorKysgc3JjL3Bsb3RvbmUuYyAg
ICAgIChyZXZpc2lvbiAzMTIpCkBAIC0xMjEsMTggKzEyMSwyNyBAQAogICAgICAgICAgICAgc3By
aW50ZihwcmludF9maWxlLCAiJXMuJXMiLCBnZXRfZG9jYm5hbWUoKSwgZGV2LmZleHQpOwogICAg
ICAgICB9CiAgICAgICAgIHN0cmNweShmbmFtZSwgcHJpbnRfZmlsZSk7CisJcHJzdHJlYW0gPSBn
cmFjZV9vcGVudyhmbmFtZSk7CiAgICAgfSBlbHNlIHsKKyAgICAgIGludCBoZGZkOwogICAgICAg
ICBzID0gZ2V0X3ByaW50X2NtZCgpOwogICAgICAgICBpZiAocyA9PSBOVUxMIHx8IHNbMF0gPT0g
J1wwJykgewogICAgICAgICAgICAgZXJybXNnKCJObyBwcmludCBjb21tYW5kIGRlZmluZWQsIG91
dHB1dCBhYm9ydGVkIik7CiAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgIH0KLSAgICAgICAg
dG1wbmFtKGZuYW1lKTsKLSAgICAgICAgLyogVk1TIGRvZXNuJ3QgbGlrZSBleHRlbnNpb25sZXNz
IGZpbGVzICovCi0gICAgICAgIHN0cmNhdChmbmFtZSwgIi5wcm4iKTsKKyAgICAgIHN0cmNweShm
bmFtZSwgImdyYWNlLWhhcmRjb3B5LVhYWFhYWCIpOworICAgICAgICBoZGZkPW1rc3RlbXAoZm5h
bWUpOworICAgICAgaWYgKGhkZmQgPT0gLTEpIHsKKyAgICAgICAgICAgICAgZXJybXNnKCJDb3Vs
ZCBub3QgY3JlYXRlIGEgdGVtcG9yYXJ5IGZpbGUsIG91dHB1dCBhYm9ydGVkLiIpOworICAgICAg
ICAgICAgICByZXR1cm47CisgICAgICB9CisgICAgICBwcnN0cmVhbSA9IGZkb3BlbihoZGZkLCAi
d2IiKTsKKyAgICAgIGlmIChwcnN0cmVhbSA9PSBOVUxMKSB7CisgICAgICAgICAgICAgIGVycm1z
ZygiQ291bGQgbm90IGNyZWF0ZSBhIHRlbXBvcmFyeSBmaWxlLCBvdXRwdXQgYWJvcnRlZC4iKTsK
KyAgICAgICAgICAgICAgcmV0dXJuOworICAgICAgfQogICAgIH0KICAgICAKLSAgICBwcnN0cmVh
bSA9IGdyYWNlX29wZW53KGZuYW1lKTsKICAgICAKICAgICBpZiAocHJzdHJlYW0gPT0gTlVMTCkg
ewogICAgICAgICByZXR1cm47Ci0tLSBzcmMvZWRpdHB3aW4uYyAgICAgKHJldmlzaW9uIDMwOSkK
KysrIHNyYy9lZGl0cHdpbi5jICAgICAocmV2aXNpb24gMzEyKQpAQCAtNzc2LDEyICs3NzYsMTIg
QEAKICAqLwogdm9pZCBkb19leHRfZWRpdG9yKGludCBnbm8sIGludCBzZXRubykKIHsKLSAgICBj
aGFyICpmbmFtZSwgZWJ1ZlsyNTZdOworICAgIGNoYXIgZm5hbWVbNjRdLCBlYnVmWzI1Nl07CiAg
ICAgRklMRSAqY3A7CiAgICAgaW50IHNhdmVfYXV0b3M7CiAKLSAgICBmbmFtZSA9IHRtcG5hbShO
VUxMKTsKLSAgICBjcCA9IGdyYWNlX29wZW53KGZuYW1lKTsKKyAgICBzdHJjcHkoZm5hbWUsICJn
cmFjZS1YWFhYWFgiKTsKKyAgICBjcCA9IGZkb3Blbihta3N0ZW1wKGZuYW1lKSwgIndiIik7CiAg
ICAgaWYgKGNwID09IE5VTEwpIHsKCSByZXR1cm47CiAgICAgfQo=
</data>        

          </attachment>
    </bug>

</bugzilla>