[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Hjælp! Jeg kan ikke crashe mit program!



Hej!

Seriøst er det et problem. I et MD simulationsprogram
ønsker jeg at sætte default værdien af alle variable
til en værdi der generere en sigFPE, hvis de ikke
ændres af brugeren, således at der dumpes en core
hvor variablen første gang ikke er defineret.

På DEC er det let med signaling-NAN  (0.0/.0.0 er btw.
quiet-NAN og virker derfor ikke). Men jeg kan få det
til at virke under både native cc og gcc på DEC.

Har nogen nogle forslag hvordan man kan få intel eller
Power4 FPUer til at crashe med en passende double konstant?

Så vidt jeg kan se tillader IEEE754 ikke at invalid 
operation exception genereres ved udregninger der
involvere NAN, bortset fra sammenligninger, det er
selvføligeligt altid noget, men vil crashe programmet
det forkerte sted.

Jeg har bøvlet meget for at rode med fenv.h og derved
enablede alle FPU signaler, der normalt er disablet, men
har ikke haft noget held til at core dumpe med fx.
nan+1.

-- 
  Mvh. Carsten Svaneborg
http://www.mpip-mainz.mpg.de


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:58 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *