Memory fault trap handler

I apologize in advance, as this is not strictly
kernel related, except for trap handlers...
I get a SIGBUS casting sockaddr to sockaddr_in,
but only if sockaddr was declared on the stack.
I am using Forte C/C++ for Sparc WS6U2.
Getting right to the point, is there a way to have
the compiler strictly align structs declared on the
stack, similar to malloc always returning strictly
aligned memory?
Is there any other workaround, other than using
-misalign (bad performance), or fixing each and
every instance of a struct on the stack?
When -misalign is used, can somebody confirm
that a kernel mode trap handler is used to catch
the memory fault and interpret byte-wise access
instead of the usual SIGBUS?
What is the name of the trap handler that would
generate the SIGBUS due to bad alignment?
How can it be observed with dbx, or is that
impossible?
Where are trap handlers documented?
Please also see "need CC flag to align structs on stack"
in the Forte C++ compiler discussion forum for more details.
Thanks in advance,
-Ralph

Some partial answers to my own questions...
Trap handling exists and is architecture specific. In at least some
cases, the trap handler is known as #6. There is a paper on trap
handling by Jim Moore: ftp://ftp.warwick.ac.uk/pub/solaris2/traps
However, I am still curious about the hope for a cc flag that would
align structs declared on the stack, similar to malloc'd memory.
Did, does, will such a thing exist for Forte C/C++?
-Ralph

Similar Messages

  • Windows quicktime- memory faults causing non-response on 720p video MJPEG codec

    windows vista 64 home premium
    nvidea evga gtx260 with latest drivers
    4 gb ram (2.5 gb free)
    code 2 quad Q9950 yorktown processor at 2.83 ghz
    more Hard drive than i will ever use....
    trying to play HD 720p video recorded on casio camera.
    Quicktime pro is using only 1 processor about 30%, 720p video
    in motion jpeg codec is skipping and slow.
    the only reason i can find is that resource monitor is
    showing quicktimpro to be generating 2300 hard memory
    faults per minute when it's trying to play the video.
    anybody else seen this? is this someting that Apple
    has to fix? My computer seems to be fine with other
    applications.
    thanks

    Oddly enough, when I disable Avast! antivirus, the problem dissapated. Somewhere in there though the read logic from quicktime is probably flawed. It needs to read bigger blocks or something like that for HD video. Never have seen this problem for non-HD.  I noticed that searchindexing goes haywire with tons and tons of reads and like 10+ sessions when quicktime is reading an HD video file. I disabled indexing on the drive and  For now, I disable Avast! to use it.

  • Memory fault while using impdp

    I'm unable to import a database using impdp; as soon as I start the impdp cmd it errors out with a memory fault
    I was able to previously import 1 TB out of a total of 3 TB, and then got an error related to the new MEMORY_TARGET parameter, complaining about insufficient tmpfs.
    I resolved that error, and then after that I can't invoke impdp without the memory fault error as described below..
    $ nohup impdp "'/ as sysdba'" JOB_NAME=LANCE_FULL_01 parfile=auexpdp.dat &
    [1] 32118
    $ nohup: appending output to `nohup.out'
    [1] + Memory fault nohup impdp "'/ as sysdba'" JOB_NAME=LANCE_FULL_01 parfile=auexpdp.dat &
    $
    I also get the following error in the import log
    ORA-39012: Client detached before the job started.
    This is what my parfile looks like
    directory=dmpdir
    dumpfile=aexp1_%U.dmp,aexp2_%U.dmp,aexp3_%U.dmp,aexp4_%U.dmp
    parallel=8
    full=y
    exclude=SCHEMA:"='MDDATA'"
    exclude=SCHEMA:"='OLAPSYS'"
    exclude=SCHEMA:"='ORDSYS'"
    exclude=SCHEMA:"='DMSYS'"
    exclude=SCHEMA:"='OUTLN'"
    exclude=SCHEMA:"='ORDPLUGINS'"
    include=tablespace
    #transform=oid:n
    logfile=expdpapps.log
    trace=1FF0300
    Has anybody seen this type of error before ?
    Thanks

    Pl post details of OS and database versions
    >
    $ nohup impdp "'/ as sysdba'" JOB_NAME=LANCE_FULL_01 parfile=auexpdp.dat &
    >
    You should not use '/ as sysdba' for expdp/impdp - use SYSTEM account instead - see the first NOTE sections in these links
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1012781
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#i1012504
    HTH
    Srini

  • Memory fault error while  converting .fmb to .fmt

    Hi all,
    When I tried to convert .fmb file to .fmt(text format) file in unix its giving me Memory fault error.
    Command I am using is
    f60gen module=INTG_TEST.fmb userid=apps/xxxxxx@DB1 forms_doc=yes batch=yes
    Where as from form builder I can do it without any error Administration->Convert->
    Can anybody please let me know ?
    Thanks,
    Dev

    Thanks... But when i use parse=yes its creating .fmx
    able to generate .fmt for some .fmbs with forms_doc=yes its not working for some .fmbs
    I am using forms 6.0.8.11.3 with linux 2.6.9-78.0.13.0.1 ab
    Pls. let me know if there is any other way to generate .fmt
    Thanks

  • SOA server Memory fault

    Hi ,
    we got the following error from SOA server
    <Oct 1, 2013 11:46:12 PM EET> <Warning> <JTA> <BEA-110486> <Transaction BEA1-4D0912FE2D411AD3416B cannot complete commit processing because resource [FNViewDS_soadomain] is unavailable. The transaction will be abandoned after 54,201 seconds unless all resources acknowledge the commit decision.>
    <Oct 1, 2013 11:47:12 PM EET> <Warning> <JTA> <BEA-110486> <Transaction BEA1-23D6FEB4AD3C1AD3416B cannot complete commit processing because resource [FNViewDS_soadomain] is unavailable. The transaction will be abandoned after 57,467 seconds unless all resources acknowledge the commit decision.>
    <Oct 1, 2013 11:47:12 PM EET> <Warning> <JTA> <BEA-110486> <Transaction BEA1-4D0912FE2D411AD3416B cannot complete commit processing because resource [FNViewDS_soadomain] is unavailable. The transaction will be abandoned after 54,141 seconds unless all resources acknowledge the commit decision.>
    <Oct 1, 2013 11:48:12 PM EET> <Warning> <JTA> <BEA-110486> <Transaction BEA1-23D6FEB4AD3C1AD3416B cannot complete commit processing because resource [FNViewDS_soadomain] is unavailable. The transaction will be abandoned after 57,407 seconds unless all resources acknowledge the commit decision.>
    <Oct 1, 2013 11:48:12 PM EET> <Warning> <JTA> <BEA-110486> <Transaction BEA1-4D0912FE2D411AD3416B cannot complete commit processing because resource [FNViewDS_soadomain] is unavailable. The transaction will be abandoned after 54,081 seconds unless all resources acknowledge the commit decision.>
    /appserv/MW/user_projects/domains/soadomain/bin/startWebLogic.sh: line 179: 10673: Memory fault(coredump)
    after this memory fault server shutdown
    any one can help to find the root cause of that error
    Thanks

    hello, are you using the correct JDK version?
    if you are using SOA 11.1.1.5 or  11.1.1.6, to use JDK 1.6
    Verify your version with:
    $java -version

  • SQL*Loader memory Fault

    SQL*Loader runs fine when I am running using my login. However when I use a different login I get Memory fault error. Please share any thoughts if had experience this problem or any insights into what might be causing this problem
    Thanks,
    Pedapuli

    The following is in the log:
    SQL*Loader: Release 9.2.0.3.0 - Production on Thu Sep 7 11:44:06 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Memory fault

  • Memory Fault Error While Installing WebLogic

    Hi,
    I am getting Memory Fault error while installing weblogic on RHEL 5.2 (Tikanga). The file I am using to install weblogic is
    server103_linux32.bin.
    When I run command uname -a, following information is displayed:
    Linux Machine1 2.6.18-92.e15 #1 DATE x86_64.
    Some of you may think that I am using 32bit version instead of using 64bit as per my machine but On oracle website, there is only one
    version available which is the one I am using.
    Kindly help.
    Cheers
    Sunny

    Kindly refrain from using a 32-bit installer on a 64-bit system. Kindly contact a Weblogic forum for more assistance.

  • Mi_ReturnCodeStatus=139;mt_Status=Memory fault while RSSBBB00 execution

    I am getting following error in the log while executing the sample program RSSBBB00
    mt_ReturnCodeStatus=139;mt_Status=Memory fault
    (ACC): resources release
    END PHASE LODVCUST AT 2012/03/30 10:51:30 (RC=SKIL, JOBRC=SKIL, ELAPSED=1)
    BEGIN PHASE END_JOB AT 2012/03/30 10:51:03
    (ACC): resources release
    END PHASE END_JOB AT 2012/03/30 10:51:30 (RC=C000, JOBRC=SKIL, ELAPSED=0)
    JOB ENDED ABNORMALLY WITH CODE (SKIL) AT 2012/03/30 10:51:03
    Can anyone please advise how to resolve this issue?
    Thanks.

    Thanks! I had already tried the wiki article about disabling crash dumps and it didn't help! Also, I don't have access to previous logs anymore since "buhman" on [email protected] suggested I remove /var/log/journal directory which solved the problem for now (I waited for a few days before reporting to make sure I don't get freezes).
    Also, he had this to say: "feel free to mention that even crap like buhDB is a better implementation of a binary log database"
    I'll see when the freezes happen again (or if they do at all) and report back if it happens again.
    Thanks!
    Last edited by fengshaun (2014-10-12 04:01:42)

  • Can memory faults be a big problem?

    I'm wondering if memory faults
    a) do impact operation of an in-memory DB (and can hard- and software provider prevent it)
    b) have a larger impact on in-memory DBs than on disk-based DBs
    See related links:
    http://en.wikipedia.org/wiki/Memory_tester
    http://en.wikipedia.org/wiki/Error_detection_and_correction#Error-correcting_memory

    In addition to the possibility Zeeshan mentions of keeping multiple copies in RAM, it is important to note that at least for BWA, RAM is not the primary datastore. All data is written to disk. Data is then loaded into RAM from the disk-based store when it is needed. Hopefully there is room in the RAM for all data to be loaded at all times, but BWA does not require that this is the case. I call this caching, but some disagree with that definition.
    I assume, but do not know, that this is the case with HANA and the ICE as well and that all writes are logged to disk so that there is no data-loss in the event of a power or hardware failure.
    The way that most in-RAM storage systems achieve transactional persistence is by writing a sequential log file (called a write-ahead-log) and flushing the log file to disk. The log file records each transaction before the client is notified that the transaction is complete. This log file can then be used to reconstruct the most recent state of the database in the event of a failure. At some point the full dataset at a point in time is reconstructed on disk, usually based on the representation in RAM, and then the log file up to that point can be discarded.
    Cheers,
    Ethan

  • Import terminates with error Memory fault(coredump)

    Hello All,
    I am trying to import the data from 9.2.0.8 to 10.2.0.4 on HP UX 11i.
    After some times i get error
    Memory fault(coredump)
    and import job gets disconnected. There are no other logs/ errors reported even at the db level nor at import job.
    Request to help if some body knows about the cause.
    Thank you,
    Anil

    Hi,
    I'm also experiencing this error.
    Some info on my databases
    [EXP]
    Version: 9.2.0.5.0 - 64bit Production
    Character Set: US7ASCII
    National Character Set: AL16UTF16
    [IMP]
    Version: 9.2.0.5.0 - 64bit Production
    Character Set: US7ASCII
    National Character Set: AL16UTF16
    [Common]
    Machine Type: HP-UX B.11.11
    The import job terminates and leave a file named core which is sized to the amount i placed in the buffer. How do i proceed on this one? Thanks.

  • Memory fault (core dumped) Pro *C/C++

    Hi,
    unfrt $ORACLE_HOME/precomp/demo/proc, I modified the file demo_proc.mk adding f1 as follows:
    SAMPLES=f1 sample1 sample2....
    anything else is not changed.
    $ make -f demo_proc.mk f1
    f1.c f1.o f1 all are generated with no error
    $
    $ f1
    connected to ORACLE as user: scott
    Memory fault (core dumped)
    $
    I don't know why, I used gdb to debug, but it says:
    529 ../i386/i486/bits/string.h: no such file or directory.
    what a nut!
    could someone can give me a hand!?

    Trilby wrote:Lets stick with the first example.  How are you compiling it?
    Thank you for being here while I was just .. unfortunatelly, dumb.
    I increased the list size (column count) without adding additional type (G_TYPE_STRING) arguments.
    Fixed that and everything's back to normal.
    drcouzelis wrote:Are you compiling with debugging information on? ("gcc -g")
    Compiling with -g doesn't reveal my mistake.
    Last edited by EUR (2014-01-02 20:43:28)

  • Memory fault(coredump)

    Folks,
    I need some tips on Memory fault(coredump).
    What is meaning of this and explain in bit.
    i am getting below error and advive me where to check
    /path/ TRME_M.prog[22]: 22343 Memory fault(coredump)
    unable to open file "test.sql" Invalid option. Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
    Thanks in advanced.
    Seetha.

    Hi;
    I need some tips on Memory fault(coredump).
    What is meaning of this and explain in bit.
    i am getting below error and advive me where to check
    /path/ TRME_M.prog[22]: 22343 Memory fault(coredump)
    unable to open file "test.sql" Invalid option. Usage: CONNECT <username> [AS SYSDBA|SYSOPER]What is your Db version? Please check below note:
    TECH: Getting a Stack Trace from a CORE file [ID 1812.1]
    If you can not get details i suggest use
    STACKX User Guide [ID 362791.1]
    Regard
    Helios

  • IDoc to SOAP Receiver Fault Message Handling?

    Hi,
    I am working on IDoc to SOAP Scenario (IDoc -> PI -> SOAP). It is in async mode without BPM. This works fine as long as there is no error on the SOAP receiver side. How to handle the falut message raised by the SOAP receiver and send it back the SAP ECC.
    Do I need to use ALEAUD IDoc for this? If Yes, how to configure this to handle fault message? Is there any other way of doing it?
    Could you please give steps to handle the fault message?
    Thank you.
    Regards,
    Cdr.

    Have a look into the below threads -
    How to capture SOAPFault in an Async/Sync Scenario without BPM
    Acknowledgement Handling in IDoc to SOAP Scenario in PI 7.3

  • Fault message handling in abap client proxy

    Hi experts,
    i have scenario like this SAPECC---XI---WEBservice
    i was decided to using the ABAP CLIENT proxy in sender side and soap adapter communication in receiver side
    i will be get the wsdl file form client
    problem is i am in bit of confusion like  am i need to create fault message for this asychronous scenario?
      how can i create the fault message for this scenario(that WSDL) and how the abaperwill  handle those error
    thanks in advance

    Hi.
    You can use fault message but it won´t return a error to your ABAP Proxy because your interface is ASSYNC. The fault message generated will stop in Adapter Engine.
    If you need a return of the error, you have to change your interface to Sync mode.
    To get more information, follow the link below:
    Fault Message Type
    http://help.sap.com/saphelp_nwpi711/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm
    Best Regards.
    Bruno

  • Can SOA 11g fault policy handle XSD Validation errors from the Mediator?

    I would like all errors in my SOA process to go through the fault-policies.xml. But I don't seem to be able to catch any mediator error caused by an XSD validation failure. A sample of the sort of error I am trying to 'catch' is:
    Nonrecoverable System Fault          oracle.tip.mediator.infra.exception.MediatorException: ORAMED-01303:[Payload default schema validation error]XSD schema validation fails with error Invalid text 'A' in element: 'TermCode'Possible Fix:Fix payload and resubmit.
    My fault-policies.xml file is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy">
    <faultPolicy version="2.0.1"
         id="NewStudentRegistrationFaults"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:1303">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:rjm="http://schemas.oracle.com/sca/rejectedmessages" name="rjm:GetNewStudentRegistrationFile">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:TYPE_ALL">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:mediatorException">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:bindingFault">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:remoteFault">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="java-fault-handler">
    <javaAction className="edu.villanova.soa.handlers.FaultNotificationHandler"
    defaultAction="ora-human-intervention" propertySet="faultNotificationProps">
    <returnValue value="OK" ref="ora-human-intervention"/>
    </javaAction>
    </Action>
    <!-- Human Intervention -->
    <Action id="ora-human-intervention">
    <humanIntervention/>
    </Action>
    <!-- Terminate -->
    <Action id="ora-terminate">
    <abort/>
    </Action>
    </Actions>
    <!-- Property sets used by custom Java actions -->
    <Properties>
    <!-- Property set for FaultNotificationHandler customer java action -->
    <propertySet name="faultNotificationProps">
    <property name="from">[email protected]</property>
    <property name="to">[email protected]</property>
    <property name="subject">Reporting a SOA fault</property>
    </propertySet>
    </Properties>
    </faultPolicy>
    <faultPolicy version="2.0.1"
         id="MediatorFaults"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:1303">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="java-fault-handler">
    <javaAction className="edu.villanova.soa.handlers.FaultNotificationHandler"
    defaultAction="ora-human-intervention" propertySet="faultNotificationProps">
    <returnValue value="OK" ref="ora-human-intervention"/>
    </javaAction>
    </Action>
    <!-- Human Intervention -->
    <Action id="ora-human-intervention">
    <humanIntervention/>
    </Action>
    <!-- Terminate -->
    <Action id="ora-terminate">
    <abort/>
    </Action>
    </Actions>
    <!-- Property sets used by custom Java actions -->
    <Properties>
    <!-- Property set for FaultNotificationHandler customer java action -->
    <propertySet name="faultNotificationProps">
    <property name="from">[email protected]</property>
    <property name="to">[email protected]</property>
    <property name="subject">Reporting a SOA rejected msg. fault</property>
    </propertySet>
    </Properties>
    </faultPolicy>
    </faultPolicies>
    My fault-bindings.xml file is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <faultPolicyBindings version="2.0.1"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <composite faultPolicy="NewStudentRegistrationFaults"/>
    <component faultPolicy="MediatorFaults">
    <name>NewStudentRegistrationMediator</name>
    </component>
    <service faultPolicy="NewStudentRegistrationFaults">
    <name>GetNewStudentRegistrationFile</name>
    </service>
    </faultPolicyBindings>
    You'll notice that I've tried a number of ways (and various other combinations) to try to steer the error above into my Java fault handler but nothing has meet with success. The mplan is as follows:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!--Generated by Oracle SOA Modeler version 1.0 at [2/3/10 1:21 PM].-->
    <Mediator name="NewStudentRegistationMediator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sca/1.0/mediator"
    wsdlTargetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/Experiments/NewStudentRegistration/GetNewStudentRegistrationFile%2F">
    <operation name="Get" deliveryPolicy="AllOrNothing" priority="4"
    validateSchema="true">
    <switch>
    <case executionType="queued" name="RegToBanner.insert_2">
    <action>
    <transform>
    <part name="$out.NewstudentregistrationCollection"
    function="xslt(xsl/NewStudentRegistration_To_NewstudentregistrationCollection.xsl, $in.body)"/>
    </transform>
    <invoke reference="RegToBanner" operation="insert"/>
    </action>
    </case>
    </switch>
    </operation>
    </Mediator>
    I'm a newbie to Oracle SOA. So perhaps I am missing the obvious. But I haven't read much in the documentation specifically about using the XSD validation option on the mediator and have seen nothing specifically about catching this sort of exception in the fault policy (apart from the faults I already have in my policy). Can anyone suggest what I am doing incorrectly here or perhaps whether what I am attempting to do is not possible? Thanks.
    - Cris

    Has anyone got it working yet?
    In my case, I have the following sequence:
    FileAdapter -> Mediator1 -> Mediator2->DB Adapter
    I am deliberately introducing validation error in File. Isn't it correct to assume Fault framework would get triggered at Mediator1 level since we are invoking FileAdapter service?
    I am getting a strange behaviour. If I enable XSD validation at Mediator1 level, process is Faulted with no re-try option. However, if I enable XSD validation ONLY at Mediator2 level, I get Recoverable fault. There seems to be some disconnect between documentation and reality. I am using JDeveloper 11.1.1.3.0 version and SOA Suite 11g.
    Thanks,
    Amjad.

Maybe you are looking for