pranjalmathur / mini-shell

Automatically exported from code.google.com/p/mini-shell
0 stars 0 forks source link

sending a sigcont process causes SIGSEV #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. type command sleep 3
2. ctrl-z
3. continue the program by sending the process SIGCONT signal - 18

What is the expected output? What do you see instead?
It should resume the job 

What version of the product are you using? On what operating system?
Newest one, Mac OS X

Please provide any additional information below.
based on the program, it doesn't seem that you malloced the job-list. 

Original issue reported on code.google.com by JojoF...@gmail.com on 14 Apr 2015 at 9:44

Attachments:

GoogleCodeExporter commented 8 years ago
killJob() calls getJob but getJob returns null since 18 does not belong in the 
list - should send an error instead of accessing null memory. 

temporary fix is to have a condition on handling a value that returns null. 

Original comment by JojoF...@gmail.com on 14 Apr 2015 at 9:52