[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mmap




Galia Gitliz
Weizmann Institute of Science
Physics Department, E&DAQ Group
Tel 972-8-9342562
Fax  972-8-9344166
Email : galia.gitliz@weizmann.ac.il
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-8">
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Galia Gitliz<BR>Weizmann Institute of Science<BR>Physics Department, 
E&amp;DAQ Group<BR>Tel 972-8-9342562<BR>Fax&nbsp; 972-8-9344166<BR>Email : <A 
href="mailto:galia.gitliz@weizmann.ac.il";>galia.gitliz@weizmann.ac.il</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>
--- Begin Message ---
Hello

I am trying to write a trap handler to couth the SIGILL and SIGSEVG signals; so if the user program didn't  "mapp" the adr on the vmebus the program will print a message and continue instead of being stop and exit with a core dump.

This is what my program does :
 (a) the "mmap" is done and success , but the physical adr is wrong (e.g. no card on this adr) - error=SIGILL
               (a.1) on "write" to be card I get the msg from my trap handler as many times as I try to write
               (a.2) on "read" - I get my trap handler msg in an endless loop and the program MUST be kill.  I know the trap does not return to the program normal flow (e.g. 1 command after the read) since I have there a printout that it is never reach. 

 (b) if the "mmap" is NOT done at all - error=SIGSEV then I get the endless loop on read or write


           Looking on the vmebus with a data analyzer I can see the bus is being reach every fix period - look like same body is trying to access the memory.

                                 Any idea/help will be great

                                       Thanks in advance

Galia Gitliz
Weizmann Institute of Science
Physics Department, E&DAQ Group
Tel 972-8-9342562
Fax  972-8-9344166
Email : galia.gitliz@weizmann.ac.il
Hello
 
I am trying to write a trap handler to couth the SIGILL and SIGSEVG signals; so if the user program didn't  "mapp" the adr on the vmebus the program will print a message and continue instead of being stop and exit with a core dump.
 
This is what my program does :
 (a) the "mmap" is done and success , but the physical adr is wrong (e.g. no card on this adr) - error=SIGILL
               (a.1) on "write" to be card I get the msg from my trap handler as many times as I try to write
               (a.2) on "read" - I get my trap handler msg in an endless loop and the program MUST be kill.  I know the trap does not return to the program normal flow (e.g. 1 command after the read) since I have there a printout that it is never reach.
 
 (b) if the "mmap" is NOT done at all - error=SIGSEV then I get the endless loop on read or write
 
 
           Looking on the vmebus with a data analyzer I can see the bus is being reach every fix period - look like same body is trying to access the memory.
 
                                 Any idea/help will be great
 
                                       Thanks in advance
 
Galia Gitliz
Weizmann Institute of Science
Physics Department, E&DAQ Group
Tel 972-8-9342562
Fax  972-8-9344166
Email : galia.gitliz@weizmann.ac.il
 
 

--- End Message ---

Reply to: