Dear Subrata,

I have downloaded the code(shmem_test_07.c) from the following URL

http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/ipc/ipc_stress/

Alternate Link

http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/ipc/ipc_stress/shmem_test_07.c?view=markup
  



If I am trying to execute it as follows

./shmem_test_07 -c 10 -g 3 -s 10 (This works fine)

At the same time when I am trying to execute it as follows:

./shmem_test_07 -c 10 -g 4 -s 10 (This gives me segmentation fault). 

Please see the difference in both the command line option. If you increase the 
limit of num_writers( -g option) to 4 or more, it fails but at the same time if 
num_writers is less than or equal to 3 it works fine me. 

I have downloaded the code and splitted the functions in separate files as 
follows:

int main (.., ..) to main.c
void *writer (..) to writer.c
void *reader (..) to reader.c 
void parse_args (..) to parseargs.c (it includes all other functions like 
release(), sys_error() and error())

I have compiled the source code and tried to execute the program. This works 
absolutely fine (./shmem -c 300 -g 3 -s 100). But it doesn't work even (./shmem 
-c 10 -g 4 -s 10). 

I think the problem is with num_writers option and I am unable to fix it, also 
if it's working on Linux it should work on AIX as well. (I don't think this is 
OS specific problem). 

Could you please look into it and let me know how to resolve it, Thanks a lot 
for your time and effort.



skumar
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to