bugGNU Octave - Bugs: bug #34595, print command creates zombie...

 
 

bug #34595: print command creates zombie processes

Submitted by:  Daisuke TAKAGO <takago>
Submitted on:  Wed 19 Oct 2011 02:16:30 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Works For MeAssigned to: Ben Abbott <bpabbott>
Originator Name: Daisuke TAKAGOOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sun 08 Sep 2013 09:08:36 PM UTC, comment #14:

killing the zombie bug. Let's just hope it's not truly undead...

Rik <rik5>
Project Administrator
Sun 08 Sep 2013 02:47:47 AM UTC, comment #13:

I don't get the zombie processes either. Ok to close?

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Thu 29 Aug 2013 02:34:15 AM UTC, comment #12:

Ping. Can someone who had a problem with zombie processes try the development version. Using hg id 91691d74845d I no longer seem to get zombies.

Rik <rik5>
Project Administrator
Mon 12 Mar 2012 07:53:25 AM UTC, comment #11:

probably this issue is caused by the following commit of mine:

http://hg.savannah.gnu.org/hgweb/octave/rev/2f0d1e12806d?revcount=32

Konstantinos Poulios <logari81>
Project Member
Mon 20 Feb 2012 03:02:24 AM UTC, comment #10:

Ben,

your example code does not hang up in my Devian environment....

>> close all
>> graphics_toolkit gnuplot
>> plot (rand (3))
>> graphics_toolkit fltk
>> figure (2)
>> plot (rand (3))
>> print junk.png

Daisuke TAKAGO <takago>
Sat 18 Feb 2012 05:35:40 PM UTC, comment #9:

The following results in a hang.

I assume waidpid() is "waiting" for gnuplot to terminate.

I'm going to revert this changeset. We need a way to identify the pid's associated with the print() command.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sat 18 Feb 2012 01:10:54 AM UTC, comment #8:

I changed the TODO -> FIXME and pushed the changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/688e19ca262b

If there are problems this can be reopened

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sat 18 Feb 2012 12:05:03 AM UTC, comment #7:

It's probably a good idea to avoid any weirdness on MinGW. Is there any problem with Cygwin as well?

From the Tips and Guidelines appendix, "The preferred comment mark for places that may need further attention is FIXME." Maybe you can change TODO to FIXME in the patch?

Rik <rik5>
Project Administrator
Fri 17 Feb 2012 11:21:51 PM UTC, comment #6:

I thought it wise to avoid changing the behavior of mingw, so I've modified the changeset. The 2nd version has been attached.

(file #25078)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Fri 17 Feb 2012 04:58:26 AM UTC, comment #5:

The patch works for me as well on Kubuntu 10.04 (A Debian derivative).

Ben, to check for zombie processes you should have some sort of process table viewer. Otherwise, you can do it from the command line using the 'ps' command.

For example, pre-patch

Rik <rik5>
Project Administrator
Fri 17 Feb 2012 04:23:35 AM UTC, comment #4:

the patch works well in my Debian environment.

octave 3.7.0+
Debian 6(i686)
libfltk 1.1
------

Daisuke TAKAGO <takago>
Fri 17 Feb 2012 04:21:30 AM UTC, comment #3:

t works in my Debian environment.


octave 3.7.0+
Debian 6(i686)
libfltk 1.1
------

Daisuke TAKAGO <takago>
Fri 17 Feb 2012 12:44:23 AM UTC, comment #2:

I've attached a changeset.

Either I don't know how or I don't see the zombie processes, so i'm not sure this is a working solution. I won't push until I have confirmation.

If someone can tell me how to check on the zombie processes that would helpful as well (I'm on MacOS, but can check on Ubuntu as well)

(file #25073)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Wed 26 Oct 2011 03:48:09 AM UTC, comment #1:

This is confirmed on the development branch. Multiple print commands also produce multiple zombies. The proposed solution of using "waitpid (0)" also works.

Rik <rik5>
Project Administrator
Wed 19 Oct 2011 02:16:30 AM UTC, original submission:

In fltk backend(not gnuplot backend), the "print" command generates a zombie process.

>> plot(1:100);
>> print -depsc2 test.eps


To clear the zombie process, it needs to call the "waidpid" command manually, like this.

>> waitpid(0)


Is this a bug?

Daisuke TAKAGO <takago>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #25078:  changeset.patch added by bpabbott (766B - application/octet-stream - second attempt)
file #25073:  changeset.patch added by bpabbott (564B - application/octet-stream - changeset #1)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by logari81 (Posted a comment)
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by takago (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 13 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 08 Sep 2013 09:08:36 PM UTCrik5StatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Thu 29 Aug 2013 02:34:15 AM UTCrik5StatusPostponed=>Need Info
    Sat 18 Feb 2012 05:35:40 PM UTCbpabbottStatusFixed=>Postponed
      Open/ClosedClosed=>Open
    Sat 18 Feb 2012 01:10:54 AM UTCbpabbottStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Fri 17 Feb 2012 11:21:51 PM UTCbpabbottAttached File-=>Added changeset.patch, #25078
    Fri 17 Feb 2012 12:44:43 AM UTCbpabbottStatusConfirmed=>Ready For Test
      Assigned toNone=>bpabbott
    Fri 17 Feb 2012 12:44:23 AM UTCbpabbottAttached File-=>Added changeset.patch, #25073
    Wed 26 Oct 2011 03:48:09 AM UTCrik5StatusNone=>Confirmed
      Summary"print command" and zombie processes=>print command creates zombie processes

    Back to the top


    Powered by Savane 3.1-cleanup1