Listener Core Dumping..

There seems to be a problem with tnslsnr. A couple of seconds
after I execute "lsnrctrl start listener" tnslsnr disappears and
there is suddenly a core file in my directory. I can't seem to
figure out why it is doing this suddenly. We have had the oracle
server running on our Redhat 5.2 machine for a couple of weeks
now. We have had plenty of problems, but nothing as drastic as
this. Buggy software is no fun. I'm willing to be it's my
configuration, but I can't think of where to look or what to
change. If anyone could offer anything at all, please reply here
or send email directly to me.
null

Joshua J. Drake (guest) wrote:
: There seems to be a problem with tnslsnr. A couple of seconds
: after I execute "lsnrctrl start listener" tnslsnr disappears
and
: there is suddenly a core file in my directory. I can't seem to
: figure out why it is doing this suddenly. We have had the
oracle
: server running on our Redhat 5.2 machine for a couple of weeks
: now. We have had plenty of problems, but nothing as drastic as
: this. Buggy software is no fun. I'm willing to be it's my
: configuration, but I can't think of where to look or what to
: change. If anyone could offer anything at all, please reply
here
: or send email directly to me.
I'm replying to myself so that everyone is informed of the
problem that I was having. After much confusing and breaking of
my oracle configuration. I figured out that it was a simple file
called .sdns.ora somewhere in the oracle directory structure.
This file is usually contains a list of discovery information.
However, in this case the contents were causing the listener to
dump core. I have removed that file and now the listener works
fine.
I can't see why the oracle programmers could add a little better
error checking in their own code so that it would tell me
something like "Discovery Information Invalid" or something like
that. Instead I'm left clueless with a core file. Bleh...
Good luck with Oracle everyone.
null

Similar Messages

  • Redhat 6.0 Webdb 2.2 Server 8.1.5 sqlplus core dump segmentation fault solution

    If anyone else is struggling with this installation, heres a workaround that
    Got things going for me.
    Redhat 6.0
    Oracle 8.1.5
    Webdb 2.2
    The database was up and working fine. Not as many problems as earlier versions but there was still much grief getting it to work. Save yourself some time, dont charge ahead like I did, read the installation notes.
    The installation of Webdb didnt go so well though. Sqlplus would core dump with segmentation fault when a connection to the local instance was attempted. I tried many things, install webdb to 8.1.5 , apply glibc patch, apply 8.0.5 patches to webdb install none of this worked. The workaround I finally found was to use the 8.1.5 listener and the old formatting of a listener.ora and tnsnames.ora file. (i.e. like 7.3.x). Sqlplus would then connect via tcp. Installation still had another problem I could never get past the sys password confirmation. I could connect from the command line with sqlplus s /nolog @passwd.sql sys/mypass@mytnsname but the installer just wouldnt work. An edit of the installation_dir ->webdb-2.2/owa40/owa40.vrf file did the trick. Hard code a location to a dummy pass.sys file.
    After many frustrating hours 160 or so - I think I finally have a working database and a working webdb web site. Hope this info might help others.
    Craig MacPherson
    null

    o Did you end up with 8.1.5 and WebDB2.2 in different Oracle_homes?
    Yes - product/8.1.5
    - product/8.0.5
    o What do you mean that you used the 8.1.5 listener? My database is 8.1.5 so the tnslistener I'm using is from the 8.1.5 install - not the 8.0.5 version.
    o Can you send a sample of the tnsnames.ora file that you used?
    Sure - make sure you set TNS_ADMIN
    # Filename: Listener.ora
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS= (PROTOCOL= TCP)(Host= 139.142.231.213)(Port= 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME= /oracle/product/8.1.5)
    (SID_NAME = cmac)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    # Filename: Tnsnames.ora
    cmac =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host= 139.142.231.213)(Port= 1521))
    (CONNECT_DATA = (SID = cmac))
    test =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host= dmac)(Port= 1521))
    (CONNECT_DATA = (SID = cmac))
    null

  • OCI connect error reported to cause core dump

    I use OCI in my developped library. Other developers use my library for their development purposes. Last night, the oracle server went down for patching, and a user reported a core dump that I recognized it is comming from my OCI section of library.
    I do OCI initialization, select, execute a query, and cleanup.
    Has there been any reports as for the case, when a connection is initialized, and the server goes down after successful initialization but before calls to execute a query or commit?
    Any comment???
    I have the error message below, and replace prepriotory info with xxxxxxx.
    thanks,
    --M
    Fatal NI connect error 12541, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxxxx)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xxxxxx)(CID=(PROGRAM=xxxxxx@fashing)(HOST=xxxxxx)(USER=xxxxx))))
    VERSION INFORMATION:
    TNS for Solaris: Version 10.1.0.4.0 - Production
    TCP/IP NT Protocol Adapter for Solaris: Version 10.1.0.4.0 - Production
    Time: 15-FEB-2007 15:49:09
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener

    We have seen core dumps in system calls earlier and have tried to debug them. We did not have the exact same stack as you but the core used to show up a stack in _malloc.
    As it turned out that we had out of bound array reads (used purify to detect this) and which resulted in this dump. So the stack shown in this case could be totally misleading and the real cause could be somewhere else.
    Hope this helps.

  • Core Dump on x86 Solaris 8

    Sorry for posting on Linux thread. I could not find area related to this problem.
    I have x86 box (256MB 10GB) running Solaris 8 and Oracle Enterprise 8.15. I have it all configured and running. Howerver, when I startup the database and the tns listner I get core dump every 4-5 hours and the box reboots. After examining the crash message I found out it was GPF. I am sure that Oracle is the cause of the problem, because I stoped the database and listener and machine does not crash anymore. I still have the core file if anyone in Oracle is interested

    Hi,
    I didnt compile with -g option, but i got to the root of problem. In the program I was just doing cout , so it was very simple, but I was linking libpthread library with the program , also was giving -mt flag during compilation. When I removed this both, the program disn't dump core and nither did it hang.
    But the same thing worked with solaris 2.8 64 bit CC 5.0 with patch 108528-10 .
    So I just can make out the difference as to why this this is happening
    Regards
    Amol

  • Xsan core dumping on volume start.

    Hey guys,
    I reciently upgraded to 10.4.7 (in hopes of fixing a kernel memory leak when hammering the san actualy) and now the xsan will not mount at all. I have applied all patches including the new xserver patch, and no love. When I try to start the volume it core dumps, but indicates that it started. However, I can not mount anything to it. The results of /Library/Filesystems/Xsan/data/CYBERSAN/log/cvlog when I try to start the volume is below.
    Any help or suggestions greatly apreciated.
    Thanks very much.
    Most sincerely,
    -- James
    The first issue seems to be this one here:
    [0630 15:46:27] 0x1886400 (*FATAL*) PANIC: /Library/Filesystems/Xsan/bin/fsm "alsplaytree_insert: CvSplayInsert(sblk) failed!" file alloc.c, line 447
    Complete log of the "start" process is below.
    [0630 15:46:19.570614] 0x1801000 (Debug) sigwait handler starting
    [0630 15:46:19] 0xa000ed98 (Info) Server Revision 2.7.200 Build 92.1 Built for Darwin 8.0 Created on Fri Apr 14 20:01:22 PDT 2006
    [0630 15:46:19] 0xa000ed98 (Info)
    Configuration:
    DiskTypes-4
    Disks-4
    StripeGroups-2
    ForceStripeAlignment-1
    MaxConnections-75
    ThreadPoolSize-128
    StripeAlignSize-256
    FsBlockSize-8192
    BufferCacheSize-32M
    InodeCacheSize-8192
    RestoreJournal-Disabled
    RestoreJournalDir-None
    [0630 15:46:19] 0xa000ed98 (Info) Self (10.0.1.202) IP address is 10.0.1.202 .
    [0630 15:46:19.583710] 0xa000ed98 (Debug) No fsports file - port range enforcement disabled.
    [0630 15:46:19] 0xa000ed98 (Info) Listening on TCP socket 10.0.1.202:49543
    [0630 15:46:19] 0xa000ed98 (Info) Node [0] [10.0.1.202:49543] File System Manager Login.
    [0630 15:46:19] 0xa000ed98 (Info) Service standing by on host '10.0.1.202:49543'.
    [0630 15:46:20.629890] 0xa000ed98 (Debug) Standby service - NSS ping from 10.0.1.21:52043.
    [0630 15:46:20.630535] 0xa000ed98 (Debug) FOUsurpCheck: read ARB info (pass 1): host (10.0.1.202:49489) conns 999999 age 1151707516.00 secs his delta 0.00 secs my delta 0.00 secs.
    [0630 15:46:20.630634] 0xa000ed98 (Debug) FOUsurpCheck: polling ARB block to check for active peer (pass 1).
    [0630 15:46:21.631149] 0xa000ed98 (Debug) FOUsurpCheck: read ARB info (pass 2): host (10.0.1.202:49489) conns 999999 age 1151707516.00 secs his delta 0.00 secs my delta 1.00 secs.
    [0630 15:46:21.631211] 0xa000ed98 (Debug) FOUsurpCheck: ARB is already mine.
    [0630 15:46:21] 0xa000ed98 (Info) Branding Arbitration Block (attempt 1) votes 2.
    [0630 15:46:23.634395] 0xa000ed98 (Debug) Cannot find fail over script [/Library/Filesystems/Xsan/bin/cvfail.10.0.1.202] - looking for generic script.
    [0630 15:46:23] 0xa000ed98 (Info) Launching fail over script [/Library/Filesystems/Xsan/bin/cvfail 10.0.1.202 49543 CYBERSAN]
    [0630 15:46:24.756291] 0xa000ed98 (Debug) Starting journal log recovery.
    [0630 15:46:24.966758] 0xa000ed98 (Debug) Completed journal log recovery.
    [0630 15:46:24.967322] 0xa000ed98 (Debug) Inodeinit_postactivation: FsStatus 0x3, Brl_ResyncState 1
    [0630 15:46:24] 0x1889c00 (Info) FSM Alloc: Loading Stripe Group "Meta". 372.58 GB.
    [0630 15:46:24] 0x188b200 (Info) FSM Alloc: Loading Stripe Group "VideoStorage". 5.46 TB.
    [0630 15:46:25] 0x1889c00 (Info) FSM Alloc: Stripe Group "Meta" active.
    [0630 15:46:27] 0x188b200 (Info) FSM Alloc: free blocks 4700392 with 947200 blocks reserved for client delayed buffers.
    [0630 15:46:27] 0x188b200 (Info) FSM Alloc: reserved blocks are product of MaxConnections(75) and MaxMBPerClientReserve(100).
    [0630 15:46:27] 0x188b200 (Info) FSM Alloc: Stripe Group "VideoStorage" active.
    [0630 15:46:27] 0xa000ed98 (Info) File System Service 'CYBERSAN[0]' now active on host '10.0.1.202:49543'.
    [0630 15:46:27.598917] 0xa000ed98 (Debug) Node [1] [10.0.1.202:49547] connected.
    [0630 15:46:27] 0x1886400 (*FATAL*) PANIC: /Library/Filesystems/Xsan/bin/fsm "alsplaytree_insert: CvSplayInsert(sblk) failed!" file alloc.c, line 447
    [0630 15:46:27] 0x1886400 (*FATAL*) PANIC: wait 3 secs for journal to flush
    [0630 15:46:27.609425] 0xa000ed98 (Debug) Active service - NSS ping from 10.0.1.184:52477.
    [0630 15:46:27.609472] 0xa000ed98 (Debug) Listener_thread: flushing journal.
    [0630 15:46:27.609492] 0xa000ed98 (Debug) Listener_thread: journal flush complete.
    [0630 15:46:27.609519] 0xa000ed98 (Debug) FSM I/O SUMMARY writes total/20.
    [0630 15:46:27.609535] 0xa000ed98 (Debug) FSM I/O SUMMARY writes journal/1 sb/0 buf/2 abm/0.
    [0630 15:46:27.609555] 0xa000ed98 (Debug) FSM I/O SUMMARY writes inode/1 ganged/2 (12.50%).
    [0630 15:46:27.609600] 0xa000ed98 (Debug) FSM wait SUMMARY inode pool expand waits/0.
    [0630 15:46:27.609615] 0xa000ed98 (Debug) FSM wait SUMMARY journal waits/0.
    [0630 15:46:27.609630] 0xa000ed98 (Debug) FSM wait SUMMARY journal bytes used avg/156501 max/158208.
    [0630 15:46:27.609644] 0xa000ed98 (Debug) FSM wait SUMMARY free buffer waits/0.
    [0630 15:46:27.609657] 0xa000ed98 (Debug) FSM wait SUMMARY free inode waits/0.
    [0630 15:46:27.609736] 0xa000ed98 (Debug) FSM wait SUMMARY revokes/0 avg/0 min/0 max/0.
    [0630 15:46:27.609756] 0xa000ed98 (Debug) FSM threads SUMMARY max busy hi-prio/0 lo-prio/0.
    [0630 15:46:27.609770] 0xa000ed98 (Debug) FSM threads SUMMARY max busy dmig/0 events/0.
    [0630 15:46:27.609784] 0xa000ed98 (Debug) FSM msg queue SUMMARY hi-prio now/0 min/0 max/0.
    [0630 15:46:27.609798] 0xa000ed98 (Debug) FSM msg queue SUMMARY lo-prio now/0 min/0 max/0.
    [0630 15:46:27.609813] 0xa000ed98 (Debug) FSM msg queue SUMMARY dmig now/0 min/0 max/0.
    [0630 15:46:27.609827] 0xa000ed98 (Debug) FSM msg queue SUMMARY events now/0 min/0 max/0.
    [0630 15:46:27.609842] 0xa000ed98 (Debug) FSM cache SUMMARY inode lookups/11 misses/7 hits/36.36%.
    [0630 15:46:27.609857] 0xa000ed98 (Debug) FSM cache SUMMARY free incore inodes now/8191 min/8189 max/8192.
    [0630 15:46:27.609875] 0xa000ed98 (Debug) FSM cache SUMMARY buffer lookups/21 misses/10 hits/52.38%.
    [0630 15:46:27.609890] 0xa000ed98 (Debug) FSM cache SUMMARY free buffers now/4096 min/1 max/4096.
    [0630 15:46:27.609904] 0xa000ed98 (Debug) FSM cache SUMMARY attrs now/0 min/0 max/0.
    [0630 15:46:27.609919] 0xa000ed98 (Debug) FSM extent SUMMARY extent lookups/0 misses/0 hits/0.00%.
    [0630 15:46:27.609934] 0xa000ed98 (Debug) FSM extent SUMMARY hint tries/0 misses/0 hits/0.00%.
    [0630 15:46:27.609989] 0xa000ed98 (Debug) SG SUMMARY Meta space total/372.58 GB free/371.90 GB (99.82%)
    [0630 15:46:27.610011] 0xa000ed98 (Debug) SG SUMMARY Meta space minfree/371.90 GB (99.82%) maxfree/371.90 GB (99.82%)
    [0630 15:46:27.610027] 0xa000ed98 (Debug) SG SUMMARY Meta alloc extent cnt/0 avgsize/0.00 B.
    [0630 15:46:27.610045] 0xa000ed98 (Debug) SG SUMMARY VideoStorage space total/5.46 TB free/35.91 GB (0.64%)
    [0630 15:46:27.610065] 0xa000ed98 (Debug) SG SUMMARY VideoStorage space minfree/35.86 GB (0.64%) maxfree/35.90 GB (0.64%)
    [0630 15:46:27.610082] 0xa000ed98 (Debug) SG SUMMARY VideoStorage alloc extent cnt/0 avgsize/0.00 B.
    [0630 15:46:27.610102] 0xa000ed98 (Debug) PIO HiPriWr SUMMARY Briana2_META cnt/1 maxq/0.
    [0630 15:46:27.610119] 0xa000ed98 (Debug) PIO HiPriWr SUMMARY Briana2_META avg/482 min/482 max/482.
    [0630 15:46:27.610135] 0xa000ed98 (Debug) PIO HiPriWr SUMMARY Briana2_META sysavg/480 sysmin/480 sysmax/480.
    [0630 15:46:27.610152] 0xa000ed98 (Debug) PIO HiPriWr SUMMARY Briana2_META avglen/2560 minlen/2560 maxlen/2560.
    [0630 15:46:27.610168] 0xa000ed98 (Debug) PIO Read SUMMARY Briana2_META cnt/127 maxq/5.
    [0630 15:46:27.610184] 0xa000ed98 (Debug) PIO Read SUMMARY Briana2_META avg/16471 min/345 max/84712.
    [0630 15:46:27.610200] 0xa000ed98 (Debug) PIO Read SUMMARY Briana2_META sysavg/7001 sysmin/326 sysmax/23029.
    [0630 15:46:27.610285] 0xa000ed98 (Debug) PIO Read SUMMARY Briana2_META avglen/970760 minlen/512 maxlen/2097152.
    [0630 15:46:27.610302] 0xa000ed98 (Debug) PIO Write SUMMARY Briana2_META cnt/19 maxq/1.
    [0630 15:46:27.610342] 0xa000ed98 (Debug) PIO Write SUMMARY Briana2_META avg/1634 min/303 max/21173.
    [0630 15:46:27.610360] 0xa000ed98 (Debug) PIO Write SUMMARY Briana2_META sysavg/1015 sysmin/290 sysmax/11011.
    [0630 15:46:27.610376] 0xa000ed98 (Debug) PIO Write SUMMARY Briana2_META avglen/5362 minlen/512 maxlen/8192.
    [0630 15:46:27] 0x1886400 (*FATAL*) PANIC: aborting threads now.

    On mdc open terminal and goto;
    /Library/Filesystems/Xsan/bin
    run as root
    cvfsck -j <selectyourvolume>
    to make sure journal is written out to volume
    then run
    cvfsck <selectyourvolume> until no errors are reported
    you can run it with -n option the first time to make sure you do only a readonly check (no modification, hence the FS will not be fixed)

  • Huge core dumps

    Dear all,
    9ir2p8 rac on solaris 10
    We have huge generation of core dump in the locaion $ORACLE_HOME/rdbms/log by the process PLSExtProc
    What could be the reason ?.. Couldn't find a suitable document from metalink.
    Listener.ora file.
    SID_LIST_LISTENER_MEDT2 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /MEDT/appl/oracle/product/920)
          (PROGRAM = extproc32)
          (ENVS="EXTPROC_DLLS=ANY,EVENT_32762=1,LD_LIBRARY_PATH=/MEDT/appl/KETS/bin:/MEDT/appl/oracle/product/920/lib:/MEDT/appl/oracle/product/920/lib32")
    SID_LIST_LISTENER_MEDT1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /MEDT/appl/oracle/product/920)
          (PROGRAM = extproc32)
          (ENVS="EXTPROC_DLLS=ANY,EVENT_32762=1,LD_LIBRARY_PATH=/MEDT/appl/KETS/bin:/MEDT/appl/oracle/product/920/lib:/MEDT/appl/oracle/product/920/lib32")
    LISTENER_MEDT2 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
         (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = MEDT2)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    LISTENER_MEDT1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
         (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = MEDT1)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )

    if all this happend suddenly, check what is the major change you had done to the environment. above all, raise SR with oracle support

  • Zpool create core dump

    I am having a problem to bring in a EMC clariion disk to the zpool of my V245 server. I can newfs the powerpath device and create files, I just couldn't create a zpool using that. any idea? Btw, the disk is only 64GB, it shouldn't hit the zfs limitation.
    # zpool create emc emcpower0a
    internal error: Invalid argument
    SUNW-MSG-ID: ZFS-8000-D3, TYPE: Fault, VER: 1, SEVERITY: Major
    EVENT-TIME: Thu May 31 17:01:31 EDT 2007
    PLATFORM: SUNW,Sun-Fire-V245, CSN: -, HOSTNAME: abc
    SOURCE: zfs-diagnosis, REV: 1.0
    EVENT-ID: 83777b5d-ef19-4288-d874-b59899e8696f
    DESC: A ZFS device failed. Refer to http://sun.com/msg/ZFS-8000-D3 for more information.
    AUTO-RESPONSE: No automated response will occur.
    IMPACT: Fault tolerance of the pool may be compromised.
    REC-ACTION: Run 'zpool status -x' and replace the bad device.
    May 31 17:01:32 abc genunix: NOTICE: core_log: zpool[7041] core dumped: /var/core/core_abc
    Abort - core dumped

    I found this thread via good ol google and given the age, thought I'd add what I heard from EMC this morning. I was told that this should be fixed in Powerpath 5.2 SP1 (due out in Aug or Sep 08).
    I also found this issue referred to in ID emc190249 on powerlink (Subject: "Unable to create ZFS pool on emcpower device"). Account required: http://knowledgebase.emc.com/emcice/documentDisplay.do?docType=1006&clusterName=DefaultCluster&resultType=5002&groupId=1&page=&docProp=$solution_id&docPropValue=emc190249&passedTitle=null
    I installed an x86_64 sol 10 u5 on an x2200 connected to our Clariion CX3-20c, but was unable to get MPxIO to work, hence I reverted to PP. I'm using an emulex HBA with 120223-28 (SunFC emlxs v20080520-2.31g). Basically all tools indicate seeing all paths to my lun, but I can't open it using format. It shows the auto-mapped device but can't get the geometry on it (shows drive type unknown). I also see log messages indicating 'multipath optimal' but then several 'drive offline' lines further down.
    If I disable MPxIO via stmsboot -d, format shows my lun across my four paths, and I can open/format two of those that are identified correctly (I'm assuming one on each SP). I haven't tested, but I'm think that I would see the mentioned loss of failover as zfs would be talking directly to one path.
    My current thinking is that there is either a bug in zpool/zfs or, perhaps more likely, my drive conf files are fubar. My current scsi_vhci.conf - comments excluded:
    name="scsi_vhci" class="root";
    load-balance="round-robin";
    auto-failback="enable";
    device-type-scsi-options-list =
    "DGC RAID", "symmetric-option";
    symmetric-option = 0x1000000;
    And in case anyone is curious, there are exactly eight characters between DGC and RAID.
    If anyone is still listening, any thoughts?

  • Gateway for Sybase - core dump [npixfc()+243] [SIGSEGV]

    Hi All,
    We are using a couple of gateways to various Sybase servers in our environment, which generally work very fine.
    However, occasionally we find the following lines in the alert.log on one or the other node of the cluster.
    The DB platform is currently 11.2.0.1 in RAC on Linux x86-64 RHEL5, but similar problems happened
    before on 11.1.0.7 (the entries in the logs were not as descriptive as on 11gR2).
    Thu Feb 11 07:48:33 2010
    HS: Lost RPC connection to remote Agent...
    HS: ... Agent SID = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx043vip)(PORT=1521))(CONNECT_DATA=(SID=PM04PMDB))), NCR status = -2147385341
    Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x7FFF20B670B8] [PC:0x59BAADD, npixfc()+243] [flags: 0x0, count: 1]
    Errors in file /oracle/app/diag/rdbms/xxx1/xxx11/trace/xxx11_ora_32050.trc (incident=16497):
    ORA-07445: exception encountered: core dump [npixfc()+243] [SIGSEGV] [ADDR:0x7FFF20B670B8] [PC:0x59BAADD] [Address not mapped to object] []
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PR
    OTOCOL=TCP)(HOST=xxx043vip)(PORT=1521))(CONNECT_DATA=(SID=PM04PMDB)))
    ORA-02063: preceding line from PM04PMDB
    Incident details in: /oracle/app/diag/rdbms/xxx1/xxx11/incident/incdir_16497/xxx11_ora_32050_i16497.trc
    The .trc file starts with:
    Dump file /oracle/app/diag/rdbms/xxx1/xxx11/incident/incdir_16497/xxx11_ora_32050_i16497.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    ORACLE_HOME = /oracle/app/product/11.2.0/dbhome_1
    System name: Linux
    Node name: xxx043
    Release: 2.6.18-128.el5
    Version: #1 SMP Wed Dec 17 11:41:38 EST 2008
    Machine: x86_64
    Instance name: xxx11
    Redo thread mounted by this instance: 1
    Oracle process number: 62
    Unix process pid: 32050, image: oracle@xxx043
    *** 2010-02-11 07:48:33.186
    *** SESSION ID:(695.7521) 2010-02-11 07:48:33.186
    *** CLIENT ID:() 2010-02-11 07:48:33.186
    *** SERVICE NAME:(xxx1) 2010-02-11 07:48:33.186
    *** MODULE NAME:(JDBC Thin Client) 2010-02-11 07:48:33.186
    *** ACTION NAME:() 2010-02-11 07:48:33.186
    Dump continued from file: /oracle/app/diag/rdbms/xxx1/xxx11/trace/xxx11_ora_32050.trc
    ORA-07445: exception encountered: core dump [npixfc()+243] [SIGSEGV] [ADDR:0x7FFF20B670B8] [PC:0x59BAADD] [Address not mapped to object] []
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneo
    ========= Dump for incident 16497 (ORA 7445 [npixfc()+243]) ========
    ----- Beginning of Customized Incident Dump(s) -----
    Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x7FFF20B670B8] [PC:0x59BAADD, npixfc()+243] [flags: 0x0, count: 1]
    Registers:
    %rax: 0x000000000a99d750 %rbx: 0x0000000000000001 %rcx: 0x00007fff20b6dee0
    %rdx: 0x0000000000000000 %rdi: 0x00007fff20b6d710 %rsi: 0x00002aed89f745a0
    %rsp: 0x00007fff20b670c0 %rbp: 0x00007fff20b6dce0 %r8: 0x0000000000000000
    %r9: 0x0000000000000000 %r10: 0x0000000000000000 %r11: 0x0000000000000001
    %r12: 0x0000000000000010 %r13: 0x00002aed89fa7560 %r14: 0x00002aed89f73c18
    %r15: 0x0000000000000001 %rip: 0x00000000059baadd %efl: 0x0000000000010202
    (0x59baadd) call 0x9d24a0(0x59baae2) mov %eax,-0x14(%rbp)
    (0x59baae5) test %eax,%eax
    (0x59baae7) jnz 0x59bfd26
    (0x59baaed) mov -0x120(%rbp),%rsi
    Is it something to worry about? Any hints about the reasons?
    Thanks,
    P.

    Thanks for your reply. I expected the advice to utilize the support for that :)
    The results of my investigation:
    Listener log - normal activity. New connections to the DB and to different gateways (including the one that caused the problem) every couple of seconds, everything seemed to be working fine.
    Alert log - no other entries +/- 1 hour around the incident, except log switching.
    I checked the application logs and managed to find out the session that caused the problem. It is an ETL process that runs the same extraction query on Sybase machine every minute. The query does not change and it was executed successfully hundreds of times before. Other similar processes were running fine, executing similar queries on all Sybase machines, including the one in the incident. So the incident seems to be random, with no correlation to other activities.
    The flow of events in the problematic session iis as follows:
    1. opens Gateway connection and sets session parameters on Sybase by executing:
    dbms_hs_passthrough.execute_immediate@PM04PMDB('set lock wait 60 ') -> that went OK
    2. starts data extraction by running:
    insert into ... select ... from ...@PM04PMDB -> that operation hang, no further logs from this point
    3. commits
    4. closes DB link by executing:
    alter session close database link PM04PMDB
    The SQL that failed was executed at 7:23, and the incident entry in the alert log is dated 7:33.
    Is it possible that the 10 seconds delay is caused by HS_FDS_CONNECT_PROPERTIES="timeout='10'" ?
    The gateway config:
    HS_FDS_CONNECT_INFO=xxx
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRACE_LEVEL=OFF
    HS_OPEN_CURSORS=10
    HS_FDS_CONNECT_PROPERTIES="timeout='10'"
    HS_FDS_RECOVERY_ACCOUNT=xxx
    HS_FDS_RECOVERY_PWD=xxx
    Listener config:
    (SID_DESC=
    (SID_NAME=PM04PMDB)
    (ORACLE_HOME=/oracle/app/product/11.2.0/dbhome_1)
    (ENVS=LD_LIBRARY_PATH=/oracle/app/product/11.2.0/dbhome_1/dg4sybs/driver/lib:/oracle/app/product/11.2.0/dbhome_1/lib)
    (PROGRAM=dg4sybs)
    )

  • Adalnctl.sh : segmentation fault core dumped error

    We are getting the following error:
    Executing service control script:
    /J51/app/applmgr/R11/fisjetcomn/admin/scripts/FISJET_fisdata/adalnctl.sh start
    Segmentation Fault - core dumped
    Check logfile /J51/app/applmgr/R11/fisjetcomn/admin/log/FISJET_fisdata/12051212.log for
    details
    Contents of LOG file:
    Setting service OracleTNSListener80APPS_FISJET_fisdata to mode 2
    Executing service control
    script:
    /J51/app/applmgr/R11/fisjetcomn/admin/scripts/FISJET_fisdata/adalnctl.sh start
    Timeout specified in context file: 100 second(s)
    Any idea what this could be?

    Hi user609345,
    Why a bug?? It looks like the listener program is coredumping.
    Check the listenername in $TNS_ADMIN/listener.ora and try to start the listener by hand using
    lsnrctl start <listener_name>
    Any idear what could have caused this issue? Cloned your environment or is this a new install?
    Thanks
    KAR
    Message was edited by:
    KAR_oracle

  • Hotspot core dumping during JVM garbage collection ?

    We have an application which calls a 3rd party supplied server API which has recently been upgraded to use Java 1.5
    We are getting the following error reported by our client application. The application is also now running Java 1.5 but references many classes in jar files which would have quite old code in.
    The supplier of the API has stated that the problem requires us to recompile all our jar files using v 1.5 ( including things like jconnect and jms ?!?!? ). This sounds like a bit of a cop-out to me, not to mention being impossible since we don't have the source for things like jconnect.
    I suspect that there is a garbage collection problem at the bottom of all this, but I'm not sure how I can "prove" this, nor do I currently have any real clue as to how to fix any GC problem that may exist.
    The application is supposed to wait for a message on a MQSeries queue and then transforms it via Xalan XSLT and sends it to a Server application. I've tried playing around with heap sizes etc but that just seems to make it worse. If I leave it at the settings that the previous version used then the client at least manages to process a couple of messages before core dumping. There doesn't seem to be a consistent trigger event to cause the core dump ( it's not a message arriving on a queue for example ) but it does seem to be fairly consistent timewise, i.e. after
    Any ideas gratefully accepted.
    Here's a logfile excerpt from my applications showing the Hotspot error message :
    =====================================================================================
    08-Jul-2008 10:01:05 Waiting for messages from COLT.BBFS
    08-Jul-2008 10:02:05 Waiting for messages from COLT.BBFS
    08-Jul-2008 10:03:05 Waiting for messages from COLT.BBFS
    405.815: [GC [PSYoungGen: 17331K->9244K(37632K)] 111702K->103615K(192128K), 0.1615910 secs]
    405.977: [Full GC#
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  SIGBUS (0xa) at pc=0xfe141348, pid=2600, tid=8
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_03-b07 mixed mode)
    # Problematic frame:
    # V  [libjvm.so+0x141348]
    # An error report file with more information is saved as hs_err_pid2600.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    =====================================================================================
    The logfile referred to in the error message contains the following.
    =====================================================================================
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGBUS (0xa) at pc=0xfe141348, pid=2600, tid=8
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_03-b07 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x141348]
    --------------- T H R E A D ---------------
    Current thread (0x001484d8): VMThread [id=8]
    siginfo:si_signo=10, si_errno=0, si_code=1, si_addr=0x0000080f
    Registers:
    O0=0x00487588 O1=0xfe7d6454 O2=0x000079b0 O3=0x00007800
    O4=0x00008868 O5=0x00147d48 O6=0xf8781460 O7=0xfe0f7938
    G1=0xe52aaae8 G2=0x00000003 G3=0x00000003 G4=0x001484d8
    G5=0xf8781d98 G6=0x00000002 G7=0xf8781d98 Y=0x805683e2
    PC=0xfe141348 nPC=0xfe14134c
    Top of Stack: (sp=0xf8781460)
    0xf8781460: fe786000 00c6ba20 fe10013c e54bab68
    0xf8781470: 0000080f e54bab6c 0000080f 00000004
    0xf8781480: 00487588 00000134 e54bab6c 00000004
    0xf8781490: 00000001 00000000 f87814c0 fe17aef4
    0xf87814a0: fe6485b4 fe7d899c 001484d8 0011da40
    0xf87814b0: 00148988 00148c10 00148d7c f8781880
    0xf87814c0: 007c3389 007c3c0e 00000f87 00008868
    0xf87814d0: 00008800 00487588 fe141310 fe7d6454
    Instructions: (pc=0xfe141348)
    0xfe141338: ec 06 c0 1a 80 a5 a0 00 22 40 00 0a ba 07 60 01
    0xfe141348: f2 05 a0 00 ae 0e 60 03 80 a5 e0 03 22 40 00 05
    Stack: [0xf8702000,0xf8781d98), sp=0xf8781460, free space=509k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x141348]
    V [libjvm.so+0x17aefc]
    V [libjvm.so+0x2d557c]
    V [libjvm.so+0x300ef8]
    V [libjvm.so+0x301e84]
    V [libjvm.so+0x2ff950]
    V [libjvm.so+0x29df30]
    V [libjvm.so+0x362b44]
    V [libjvm.so+0x6436f0]
    VM_Operation (0xe03012b0): parallel gc system gc, mode: safepoint, requested by thread 0x0031bca0
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x00b2c028 JavaThread "Thread-4" [_thread_in_native, id=85]
    0x007f5048 JavaThread "Thread-0" [_thread_blocked, id=84]
    0x00c27cf0 JavaThread "Notification Delivery" [_thread_blocked, id=81]
    0x0026fa08 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=73]
    0x00821048 JavaThread "RMI RenewClean-[162.11.2.32:44425]" daemon [_thread_blocked, id=70]
    0x0031bca0 JavaThread "GC Daemon" daemon [_thread_blocked, id=67]
    0x00cd5d28 JavaThread "RMI Reaper" [_thread_blocked, id=66]
    0x003c9300 JavaThread "Timer-0" daemon [_thread_blocked, id=65]
    0x00929fe0 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=64]
    0x0089bf18 JavaThread "SeedGenerator Thread" daemon [_thread_blocked, id=42]
    0x00c47248 JavaThread "Pool thread #7" daemon [_thread_blocked, id=38]
    0x00c466a0 JavaThread "Pool thread #6" daemon [_thread_blocked, id=37]
    0x00311850 JavaThread "Pool thread #5" daemon [_thread_blocked, id=36]
    0x00287a40 JavaThread "Pool thread #4" daemon [_thread_blocked, id=35]
    0x00286e98 JavaThread "Pool thread #3" daemon [_thread_blocked, id=34]
    0x00c134b0 JavaThread "Pool thread #2" daemon [_thread_blocked, id=33]
    0x00ad09e0 JavaThread "Pool thread #1" daemon [_thread_blocked, id=32]
    0x00286cd8 JavaThread "PoolThreadManager" daemon [_thread_blocked, id=31]
    0x00c129e0 JavaThread "Channel Reaper" daemon [_thread_blocked, id=30]
    0x00c669e8 JavaThread "ORB Daemon Thread" daemon [_thread_blocked, id=29]
    0x00b10170 JavaThread "Worker for ServerProtocol: (iiop) /0.0.0.0:20168" daemon [_thread_blocked, id=22]
    0x008a17e0 JavaThread "Syn~ Client" daemon [_thread_blocked, id=21]
    0x003dc378 JavaThread "PoolScavenger0" daemon [_thread_blocked, id=20]
    0x0015a928 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15]
    0x00159880 JavaThread "CompilerThread1" daemon [_thread_blocked, id=14]
    0x00158a18 JavaThread "CompilerThread0" daemon [_thread_blocked, id=13]
    0x00157b98 JavaThread "AdapterThread" daemon [_thread_blocked, id=12]
    0x00156dc8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11]
    0x0014ccd8 JavaThread "Finalizer" daemon [_thread_blocked, id=10]
    0x0014ad90 JavaThread "Reference Handler" daemon [_thread_blocked, id=9]
    0x00038238 JavaThread "main" [_thread_in_native, id=1]
    Other Threads:
    =>0x001484d8 VMThread [id=8]
    0x0015c3b0 WatcherThread [id=16]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x00037728/0x00037758] Threads_lock - owner thread: 0x001484d8
    [0x00033650/0x00037ba8] Heap_lock - owner thread: 0x0031bca0
    Heap
    PSYoungGen total 37632K, used 9244K [0xf2eb0000, 0xf7ba0000, 0xf8400000)
    eden space 28352K, 0% used [0xf2eb0000,0xf2eb0000,0xf4a60000)
    from space 9280K, 99% used [0xf4a60000,0xf5367080,0xf5370000)
    to space 25216K, 0% used [0xf6300000,0xf6300000,0xf7ba0000)
    PSOldGen total 154496K, used 94371K [0xe8400000, 0xf1ae0000, 0xf2eb0000)
    object space 154496K, 61% used [0xe8400000,0xee028e78,0xf1ae0000)
    PSPermGen total 35584K, used 18260K [0xe4400000, 0xe66c0000, 0xe8400000)
    object space 35584K, 51% used [0xe4400000,0xe55d5158,0xe66c0000)
    Dynamic libraries:
    0x00010000      /dsdvlp/java/jvm/jdk1.5.0_03/bin/java
    0xff350000      /usr/lib/libthread.so.1
    0xff340000      /usr/lib/libdl.so.1
    0xff200000      /usr/lib/libc.so.1
    0xff390000      /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1
    0xfe000000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/server/libjvm.so
    0xff1e0000      /usr/lib/libsocket.so.1
    0xff2d0000      /usr/lib/libsched.so.1
    0xff1b0000      /usr/lib/libCrun.so.1
    0xff160000      /usr/lib/libm.so.1
    0xff080000      /usr/lib/libnsl.so.1
    0xff060000      /usr/lib/libmp.so.2
    0xff030000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/native_threads/libhpi.so
    0xfdfc0000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/libverify.so
    0xfdf80000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/libjava.so
    0xfdf50000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/libzip.so
    0xfb7e0000      /usr/lib/locale/en_GB.ISO8859-1/en_GB.ISO8859-1.so.2
    0xe4190000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/libnet.so
    0xe3bd0000      /dsdvlp/lib/5/libSolarisNatives.so
    0xe3e90000      /dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/librmi.so
    VM Arguments:
    jvm_args: -Djava.ext.dirs=/dsdvlp/java/tmijar/firs7/lib/cli:/dsdvlp/java/tmijar/firs7/lib/cli/ext:/dsdvlp/java/tmijar/firs7/lib/cmn/OpenORB:/dsdvlp/java/tmijar/firs7/lib/cmn/OpenORB/ext:/dsdvlp/java/tmijar/firs7/lib/cmn:/dsdvlp/java/tmijar/firs7/lib/cmn/ext:/dsdvlp/java/tmijar/firs7/daemonlib -Duser.dir=/dsdvlp/java/tmijar/firs7 -Dopenorb.config=file:/dsdvlp/java/tmijar/firs7/configs/OpenORB/config/SynOpenORB.xml -Dopenorb.home=file:/dsdvlp/java/tmijar/firs7/configs/OpenORB -Dcom.coexis.syn.general.orbbinding=com.coexis.syn.general.orbbinding.openorb.OpenORBBinding_1_4 -Dsun.rmi.dgc.client.gcInterval=360000 -Dsun.rmi.dgc.server.gcInterval=360000000 -Xms32m -Xmx256m -Dcom.coexis.syn.clientcommandsconfiglocation=file://localhost//dsdvlp/java/tmijar/firs7/configs/clientcommands.xml -Dcom.coexis.syn.clientconfiglocation=file://localhost//dsdvlp/java/tmijar/firs7/configs/fsbbtd_client.xml -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
    java_command: com.coexis.syn.mqmessaging.daemon.RunDaemon -p /dsdvlp/bin/5/lndsfsd_fsbbtd.properties start
    Environment Variables:
    JAVA_HOME=/dsdvlp/java/jvm/jdk150
    CLASSPATH=.:/dsdvlp/java/jar/jconnect520.jar:/dsdvlp/java/jar/vbjapp340.jar:/dsdvlp/java/jar/vbjorb340.jar:/dsdvlp/java/jar/javax_jndi120.jar
    PATH=/usr/local/etc:/usr/lang:/usr/openwin/bin:/usr/ucb:/bin:/usr/etc:/usr/local/5/bin:/dsdvlp/bin/5:/dsdvlp/bin/4:/home/app/sybase/5/bin:/home/app/sybase/5/localscripts:/home/app/sybase/5/sqr:/home/app/lang:/home/app/lang/SC2.0.1:/usr/ccs/bin:/usr/local/opt/Acrobat3/bin:/dsdvlp/bin:.
    LD_LIBRARY_PATH=/dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc/server:/dsdvlp/java/jvm/jdk1.5.0_03/jre/lib/sparc:/dsdvlp/java/jvm/jdk1.5.0_03/jre/../lib/sparc:/usr/lib:/usr/openwin/lib:/usr/local/5/lib:/dsdvlp/lib/5:/dstest/lib/5:/home/app/sybase/5/lib:/dstest/cats/sun4/lib:/tmitest/Opus/opus/lib
    SHELL=/bin/csh
    DISPLAY=CLI00184.mfil.local:1.0
    OS=5
    --------------- S Y S T E M ---------------
    OS: Solaris 8 2/02 s28s_u7wos_08a SPARC
    Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
    Assembled 18 December 2001
    uname:SunOS 5.8 Generic_117350-20 sun4u (T1 libthread)
    rlimit: STACK 8192k, CORE 9216k, NOFILE 4096, AS infinity
    load average:2.24 2.67 2.68
    CPU:total 4 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
    Memory: 8k page, physical 8388608k(166384k free)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_03-b07) for solaris-sparc, built on Apr 13 2005 03:31:26 by unknown with unknown Workshop:0x550

    The very first suggestion I have is to move your VM to a more recent update of 1.5.0.
    It looks like you are crashing with 5.0u3, and I'm pretty sure 5.0u16 is available. You
    don't want to waste your time chasing a bug that's already been fixed.

  • JOB RSGENYTT - System core dump

    Hi SDN,
    While trying to upgrade our 4.6B system to ERP, JOB_RSGENYTT phase stops with a core dump, this is what i've in ST22
    Someone knows how i can analyse this :S
    regards
    Pedro Rodrigues
    ABAP runtime errors         SYSTEM_CORE_DUMPED           
           Occurred on     17.11.2007 at 19:53:23                                                                               
    Process terminated by signal 0.                                               
    What happened?
    Error in the SAP Basis system                                                 
    ABAP/4 processor detected an internal system error.                           
    The current ABAP program "RSGENYTT " had to be terminated because the ABAP    
    processor discovered an invalid system state.                                 
    What can you do?
    Please make a note of the actions and input which caused the error.           
    Please make a note of the actions and input which caused the error.                                                                               
    To resolve the problem, contact your                                          
    SAP system administrator.                                                                               
    Choose "Print" for a hard coopy of the termination message. You can           
    display and adminster short dump messages using Transaction ST22.             
    Error analysis
    An SAP System process was terminated by an operating system signal.           
    Possible reasons for this are:                                                
    1. Internal SAP System error.                                                 
    2. Process was terminated externally (by the system administrator).           
    Last error logged in SAP kernel                                                                               
    Component............ "Taskhandler"                                           
    Place................ "SAP-Server appserver_DEV_00 on host appserver (wp 0)"  
    Version.............. 1                                                       
    Error code........... 11                                                      
    Error text........... "ThSigHandler: signal"                                  
    Description.......... " "                                                     
    System call.......... " "                                                     
    Module............... "thxxhead.c"                                            
    Line................. 8628                                                                               
    The error reported by the operating system is:                                
    Error number..... " "                                                         
    Error text....... " "                                                                               
    How to correct the error
    The SAP System work directory (e.g. /usr/sap/c11/D00/work ) often             
    contains a file called 'core'.                                                                               
    Save this file under another name.                                                                               
    If you cannot solve the problem yourself, please send the                     
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                                  
       To obtain this, select the "Print" function on the current screen.         
    2. A suitable hardcopy prinout of the system log.                             
       To obtain this, call the system log with Transaction SM21                  
       and select the "Print" function to print out the relevant                  
       part.                                                                               
    3. If the programs are your own programs or modified SAP programs,            
       supply the source code.                                                    
       To do this, you can either use the "PRINT" command in the editor or        
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred            
       or which actions and input led to the error.                                                                               
    System environment
    SAP Release.............. "46B"                                                                               
    Application server....... "appserver"                                         
    Network address.......... "192.39.0.2"                                        
    Operating system......... "Windows NT"                                        
    Release.................. "5.2"                                               
    Hardware type............ "4x Intel 80686"                                                                               
    Database server.......... "appserver"                                         
    Database type............ "MSSQL"                                             
    Database name............ "DEV"                                               
    Database owner........... "dev"                                                                               
    Character set............ "English_United State"                                                                               
    SAP kernel............... "46D"                                               
    Created on............... "Aug 16 2007 21:26:12"                              
    Created in............... "NT 4.0 1381 Service Pack 6 x86 MS VC++ 12.00"      
    Database version......... "SQL_Server_7.00 "                                                                               
    Patch level.............. "2337"                                              
    Patch text............... " "                                                                               
    Supported environment....                                                     
    Database................. "MSSQL 6.5.213 or higher, MSSQL 7.0.1 or higher"    
    SAP database version..... "46D"                                               
    Operating system......... "Windows NT 4.0, Windows NT 5.0, Windows NT 5.1,    
    Windows NT 5.2, , System build information:,                                 
                                                   , LCHN : "                                                                               
    User, transaction...
    Client.............. 000                                                      
    User................ "DDIC"                                                   
    Language key........ "E"                                                      
    Transaction......... "SE38 "                                                  
    Program............. "RSGENYTT "                                              
    Screen.............. "SAPMSSY0 1000"                                          
    Screen line......... 6                                                                               
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "RSGENYTT " in                 
    The main program was "RSGENYTT ".                                                                               
    The termination occurred in line 0                                            
    of the source code of program " " (when calling the editor 00).               
    Contents of system fields
    SY field           contents.....................           SY field           contents.....................
    SY-SUBRC           0                                       SY-INDEX           0                                 
    SY-TABIX 1                             SY-DBCNT 1260                         
    SY-FDPOS 0                             SY-LSIND 0                            
    SY-PAGNO 0                             SY-LINNO 1                            
    SY-COLNO 1                                                                               
    Chosen variables
    Name..........................           Contents.1....+....2....+....3....+....4
    LV_COUNT                                 0                                      
                                   0000                                   
                                   0000                                   
    LV_INDEX                                 0                                      
                                   0000                                   
                                   0000                                   
    LT_DDYTT                                 Table[initial]                         
                                   0000FFFD                               
                                   0000FFFF                               
    LT_DDYTF                                 Table[initial]                         
                                   0000FFFD                               
                                   0000FFFF                               
    LT_PUTTB_SHD                             ############################ #######ï###
                                   000000000000000000000000000020000000E000
                                   00000000000000000000000040000A001000F400
    ... +            40                                ####ð###ð###################$###xæ-?ð#/?
                                   1000F000F000000000008000000020007E23F823
                                   00000800040000000000C0002000430086DF02FF
    ... +            80                                #?4?########################5###       
                                   93330000000000000000000000003000       
                                   8F4F0000000000000000000000005000       
    LS_PUTTB_SHD                             /BEV1/CADD03VTV                        
                                   2445324444335552222222222222222222222222
                                   F2561F3144036460000000000000000000000000
    ... +            40                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +            80                                                002                7   
                                   2222222222222222333222222222222222232222
                                   0000000000000000002000000000000000070000
    ... +           120                                     VLE                               
                                   22222544                               
                                   000006C                                
    LV_SHD_DDXTT                             DDXTT~                                 
                                   445557222222222222222222222222         
                                   44844E000000000000000000000000         
    GC_BASREL_UPDATED                        U                                      
                                   5                                      
                                   5                                      
    LS_PUTTB_SHD-TABNAME                     /BEV1/CADD03VTV                        
                                   244532444433555222222222222222         
                                   F2561F314403646000000000000000         
    LS_DDYTT                                                                   ######
                                   2222222222222222222222222222222222000000
                                   0000000000000000000000000000000000000000
    ... +            40                                ##########                             
                                   0000000000222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +            80                                            ##########                 
                                   2222222222220000000000222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           120                                              ###### #########         
                                   22222222                               
                                   0000000                                
    SYST                                     ############ï###########################
                                   000000000000E000000000000000000000000000
                                   000000001000F400000000000000000000000000
    ... +            40                                ì#######################################
                                   E000000000000000000000000000000000008000
                                   C40000001000000010000000000000000000C000
    ... +            80                                ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000200000000000000000000000
    ... +           120                                ########################################
                                   00000000                               
                                   0000000                                
    SY-SUBRC                                 0                                      
                                   0000                                   
                                   0000                                   
    %_SSCR[]                                 ############################`###########
                                   0000000000000000000000000000600000000000
                                   0000000000000000000000004000030000000000
    ... +            40                                ################ÿÿÿÿ####################
                                   1000000000000000FFFF00000000000000000000
                                   0000000000001000FFFF41F07000430000000000
    ... +            80                                ################################       
                                   00000000000000000000000000000000       
                                   00000000000000000000000000000000       
             10032c92 807d1400         cmp     byte ptr ,0x0      ss:062ce90a=00   
             10032c96 7422             jz      dsql_db_init+0x30d0a (10032cba)               
             10032c98 394e08           cmp     ,ecx          ds:070aeb72=????????   
             10032c9b 751d             jnz     dsql_db_init+0x30d0a (10032cba)               
             10032c9d 8d047f           lea     eax,[edi+edi*2]        ds:00000000=????????   
             10032ca0 c1e003           shl     eax,0x3                                       
             10032ca3 8bd0             mov     edx,eax                                       
             10032ca5 8b4518           mov     eax,[ebp+0x18]         ss:062ce90a=00000000   
             10032ca8 2bc2             sub     eax,edx                                       
             10032caa 99               cdq                                                   
    FAULT-> 10032cab f7fb             idiv    ebx                                           
             10032cad 0fbfd0           movsx   edx,ax                                        
             10032cb0 eb0b             jmp     dsql_db_init+0x30d0d (10032cbd)               
             10032cb2 6a02             push    0x2                                           
             10032cb4 58               pop     eax                                           
             10032cb5 e9df040000       jmp     dsql_db_init+0x311e9 (10033199)               
             10032cba 6a01             push    0x1                                           
             10032cbc 5a               pop     edx                                           
             10032cbd 803dd95a1d1000                                        ds:101d5ad9=00   
                                       cmp  byte ptr ,0x0   
             10032cc4 7409             jz      dsql_db_init+0x30d1f (10032ccf)               
             10032cc6 833dac591d1006                                  ds:101d59ac=00000006   
                                       cmp dword ptr ,0x6   
             10032ccd 7416             jz      dsql_db_init+0x30d35 (10032ce5)               
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name                     
    031688dc 1000d5df 00000000 018b4eb8 00000000 00000001 dbmssslib!dsql_db_init            
    03168978 10001cb3 03f41f80 018b6470 018b4eb8 00000035 dbmssslib!dsql_db_init            
    031689c4 008f47dc 010035d0 00000035 00000001 018b6470 dbmssslib!DbSlVersion             
    031689f4 008f1120 00000001 00000000 3f2db20c 00000000 disp+work!             
    054fffb8 77e64829 03e7bf20 00000000 00000000 03e7bf20 MSVCRT!endthreadex                
    054fffec 00000000 77bcb4bc 03e7bf20 00000000 00000000 kernel32!GetModuleHandleA         
    List of ABAP programs affected
                                                                                    Type      Program                              Gen. date  time           LoadSize            RollSize           
          Prg       RSGENYTT                             17.11.2007 18:56:44       112     3            840 loade         
          Prg       SAPMSSY0                             26.03.2001 12:10:18         1     6       512 loade
          Prg       RSDBRUNT                             26.03.2001 12:09:07        19    22       376 loade
          Prg       RSDBSPBL                             26.03.2001 11:21:26        24     6       512 loade
          Prg       SAPDB__S                             01.06.1999 12:10:01        36     1       408 loade
          Prg       RSDBSPMC                             01.06.1999 12:09:54        34     7       728 loade
          Typ       DDSHDESCR                            03.09.1997 03:05:16       955             048 loade
          Typ       SPPARAMS                             07.05.1997 13:10:38       956             024 loade
          Prg       SAPLSABE                             01.06.1999 12:10:15       100     1       288 loade
          Prg       SAPLSECU                             04.04.2001 18:30:22        28     6       608 loade
          Prg       SAPMSSY3                             26.03.2001 10:57:11       269     5       368 loade
          Typ       ABDBG                                25.05.1999 15:31:57       716     1       360 loade
          Prg       SAPMSSYD                             22.03.2001 18:03:09        12     1       336 loade
          Prg       SAPFSPOR                             19.10.1999 09:39:27        59             216 loade
          Prg       SAPLSCNT                             01.06.1999 12:10:15        15     2       624 loade
          Prg       SAPLSVSM                             22.03.2001 17:23:10        61     2       552 loade
          Prg       SAPLSGUI                             26.03.2001 12:08:56         4     3       768 loade
          Prg       SAPLSTTM                             22.03.2001 15:09:40         2     5       392 loade
          Prg       SAPLSBDC                             22.03.2001 15:09:07         6     6       560 loade
          Prg       CL_DATAPROVIDER===============       22.03.2001 16:53:29        62     4       128 loade
          Typ       OBJ_RECORD                           14.02.1998 08:30:43       883             048 loade
          Prg       SAPLSTUP                             26.03.2001 11:45:52        16     9       160 loade
          Prg       SAPLCNDP                             26.03.2001 10:57:04         3    15       744 loade
          Prg       SAPSHDTV                             26.03.2001 11:45:07        14     3       864 loade
          Prg       SAPFGUICNTL                          26.03.2001 10:42:02        10     1       408 loade
          Prg       CL_GUI_CFW====================       26.03.2001 11:21:21        11    13       192 loade
          Prg       SAPLOLEA                             17.11.2007 13:23:33         5     7       656 loade
          Prg       SAPLSFES                             26.03.2001 12:08:50         7    10       544 loade
          Prg       SAPLGRFC                             22.03.2001 15:08:46        60     1       384 loade
          Prg       SAPLSTRF                             17.11.2007 13:23:33       217    10       424 loade
          Prg       SAPLSTFI                             26.03.2001 12:10:04       216     5       296 loade
          Prg       SAPLSUGI                             17.11.2007 18:56:44       673    35       280 loade
          Typ       PUTTB_SHD                            17.11.2007 11:26:20       682             120 loade
          Prg       SAPLSUGN                             17.11.2007 18:56:44       691     5       296 loade
          Typ       DDFTX                                05.11.1997 02:52:59       224             072 loade
          Prg       SAPLSDNT                             17.11.2007 18:56:44       135    18       368 loade
          Prg       SAPLSDB1                             17.11.2007 11:26:20       114     6       464 loade
          Prg       SDB1FMSS                             04.04.2001 18:30:57       113     4       104 loade
          Typ       DDXTT                                17.11.2007 18:56:44       235             048 loade
          Prg       RDTCMPTB                             17.11.2007 18:56:44       414    10       376 loade
          Prg       SAPLSDB2                             17.11.2007 18:56:44       225    39       216 loade
          Prg       SAPLSDB3                             17.11.2007 18:56:44       271     9       136 loade
          Prg       SAPLSDD0                             17.11.2007 13:23:33       133     5       200 loade
          Prg       RADIXTOL                             01.06.1999 12:09:34       150     2       504 loade
          Prg       SDB2FDBS                             17.11.2007 17:43:27       215    11       784 loade
          Prg       SAPLSDD2                             01.06.1999 12:10:16       237     3       888 loade
          Prg       SDB2FMSS                             17.11.2007 17:43:27       190    17       152 loade
          Typ       UVERS                                16.07.1997 14:46:33       347             072 loade
          Typ       DD092526V                            20.08.1998 11:15:55       781             048 loade
          Typ       X030L                                05.11.1997 03:07:56       709             096 loade
          Prg       RADBTOUT                             01.06.1999 12:09:34       124    10       448 loade
          Prg       SAPCNVE                              01.06.1999 12:10:01       101             168 loade
          Prg       SAPLSDAD                             17.11.2007 18:56:44       935    71       752 loade                                                                               
    List of internal tables
    Header of PROG=RSGENYTTDATA=GT_PROT[]                                                  
         TABH+  0(20) = 0000000000000000000000000000000000000000                             
         TABH+ 20(20) = 0000000004000000500700000000000007000000                             
         TABH+ 40(20) = 1E0000001E0000001E0000001E000000FFFFFFFF                             
         TABH+ 60(20) = E3000000020000000403000018972D3F00000000                             
         TABH+ 80(20) = 0000000000000000000000000000000000000000                             
         TABH+100(12) = 000000000000000013000000                                             
         id           = 19    (0x13000000)                                                   
         fill         = 7     (0x07000000)                                                   
         lineAdmin    = 30    (0x1E000000)                                                   
         lineAlloc    = 30    (0x1E000000)                                                   
         tabi         = 0x18972D3F                                                           
         pghook       = 0x00000000                                                           
         index        = 0x00000000                                                           
         hshook       = 0x00000000                                                           
         btree        = 0x00000000                                                           
         reghook      = 0x00000000                                                           
         lopc         = 0     (0x00000000)                                                   
         occu         = 30    (0x1E000000)                                                   
         rank         = 30    (0x1E000000)                                                   
         loop         = -1    (0xFFFFFFFF)                                                   
         leng         = 227   (0xE300)                                                       
         fcnt         = 0     (0x0000)                                                       
         lock         = 0                                                                    
         shrd         = 0                                                                    
         access       = 1     (stdAccess)                                                    
         idxKind      = 0     (noIndex)                                                      
         unique       = 2     (nonUnique)                                                    
         cmpMode      = 2     (cmpSingleMcmp)                                                
         pb_func      = 0x00000000                                                           
         pb_handle    = 0x00000000                                                                               
    Directory of application tables (contents)
    Program                               
      Name..........  Contents.1........2........3....+....
    Directory of data areas (administration information)
    Program                                
      No.. Name..........  Lgth  Ofsg Type Next Gen date   Gen time
      SYST                                                             
                L not assigned      751         0 IN                        
                M /%_LISTTABLE      750         1 CO 0                    
                T global stack      749  1      2 GL                        
      RSGENYTT                             
                A global data         0         3 DA                        
                L constant dat        1         4 LI        .0 .0472        
                L constant dat        2         5 LI        .0 .0367        
                L not assigned        3         6 IN                        
                L SYST                4         7 TA 00                    
                L SY                  5         8 TA                        
                L RSJOBINFO           6         9 TA                        
                M /%_SYS%%            7         0 CO                        
                M field symbol        8         1 FS                        
                M /%_SSCR             9         2 CO 0                    
                L VARI               10         3 TA                        
                L PUTTB_SHD          11         4 TA                        
                L DDYTT              12         5 TA                        
                L DDYTF              13         6 TA                        
                M field symbol       14         7 FS                        
                M field symbol       15         8 FS                        
                M field symbol       16         9 FS                        
      SAPMSSY0                             
                A global data         0         0 DA                        
                L constant dat        1         1 LI        .0 .077E        
                L constant dat        2         2 LI        .0 .06B8        
                L not assigned        3         3 IN                        
                L SYST                4         4 TA                        
                L SY                  5         5 TA                        
                L RSJOBINFO           6         6 TA                        
                M /%_SYS%%            7         7 CO                        
                M field symbol        8         8 FS                        
                M /%_LISTTABLE        9         9 CO                        
                M /%_SYS000          10         0 CO                        
                L TFDIR              11         1 TA                        
                M field symbol       12         2 FS                        
                M field symbol       13         3 FS                        
                L TRDIR              14         4 TA                        
                L ABMSG              15         5 TA                        
                M field symbol       16         6 FS                        
                L text pool          17         7 TP                        
      RSDBRUNT                             
                A global data         0         8 DA                        
                L constant dat        1         9 LI        .0 .1B8A        
                L constant dat        2         0 LI        .0 .1780        
                L not assigned        3         1 IN                        
                L SYST                4         2 TA                        
                L SY                  5         3 TA                        
                L RSJOBINFO           6         4 TA                        
                M /%_SYS%%            7         5 CO                        
                M field symbol        8         6 FS                        
                M /%_SSCR             9         7 CO                        
                L VARI               10         8 TA                        
                L TRDIR              11         9 TA                        
                L TUVID              12         0 TA                        
                L RSVUVINT           13         1 TA                        
                L VARID              14         2 TA                        
                L DFIES              15         3 TA                        
                L SSCRTEXTS          16         4 TA                        
                L SSCRFIELDS         17         5 TA                        
                M /%_DYN_SEL         18         6 CO                        
                M /%_FIELD_SEL       19         7 CO                        
                M /%_RUNT_XX_%       20         8 CO                        
                M field symbol       21         9 FS                        
                M field symbol       22         0 FS                        
                M field symbol       23         1 FS                        
                M field symbol       24         2 FS                        
                M field symbol       25         3 FS                        
                L text pool          26         4 TP                        
      RSDBSPBL                             
                A global data         0         5 DA                        
                L constant dat        1         6 LI        .0 .09CE        
                L constant dat        2         7 LI        .0 .0908        
                L not assigned        3         8 IN                        
                L SYST                4         9 TA                        
                L SY                  5         0 TA                        
                L RSJOBINFO           6         1 TA                        
                M /%_SYS%%            7         2 CO                        
                M field symbol        8         3 FS                        
                M /%_RUNT_XX_%        9         4 CO                        
                L text pool          10         5 TP                        
      SAPDB__S                             
                A global data         0         6 DA                        
                L constant dat        1         7 LI        .0 .020D        
                L constant dat        2         8 LI        .0 .01B0        
                L not assigned        3         9 IN                        
                L SYST                4         0 TA                        
                L SY                  5         1 TA                        
                L RSJOBINFO           6         2 TA                        
                M /%_SYS%%            7         3 CO                        
                M field symbol        8         4 FS                        
                M /%_SSCR             9         5 CO                        
                L VARI               10         6 TA                        
                L text pool          11         7 TP                        
                A global data        12         8 DA 0                    
      RSDBSPMC                             
                A global data         0         9 DA                        
                L constant dat        1         0 LI        .0 .0BD7        
                L constant dat        2         1 LI        .0 .0AE8        
                L not assigned        3         2 IN                        
                L SYST                4         3 TA                        
                L SY                  5         4 TA                        
                L RSJOBINFO           6         5 TA                        
                M /%_SYS%%            7         6 CO                        
                M field symbol        8         7 FS                        
                M /%_SSCR             9         8 CO                        
                M /%_RUNT_XX_%       10         9 CO                        
         1      L DD23L              11         0 TA                        
         1      L DD23T              12         1 TA                        
         1      L RSMDY              13         2 TA                        
         1      M field symbol       14         3 FS                        
         1      L text pool          15         4 TP                        
      SAPLSABE                             
         1      A global data         0         5 DA                        
         1      L constant dat        1         6 LI        .0 .014A        
         1      L constant dat        2         7 LI        .0 .0101        
         1      L not assigned        3         8 IN                        
         1      L SYST                4         9 TA                        
         1      L SY                  5         0 TA                        
         1      L RSJOBINFO           6         1 TA                        
         1      M /%_SYS%%            7         2 CO                        
         1      M field symbol        8         3 FS                        
         1      L TRDIR               9         4 TA                        
         1      M field symbol       10         5 FS                        
         1      L text pool          11         6 TP                        
      SAPLSECU                             
         1      A global data         0         7 DA                        
         1      L constant dat        1         8 LI        .0 .0918        
         1      L constant dat        2         9 LI        .0 .070B        
         1      L not assigned        3         0 IN                        
         1      L SYST                4         1 TA                        
         1      L SY                  5         2 TA                        
         1      L RSJOBINFO           6         3 TA                        
         1      M /%_SYS%%            7         4 CO                        
         1      M field symbol        8         5 FS                        
         1      L TSL1D               9         6 TA                        
         1      L TPFYPROPTY         10         7 TA                        
         1      M field symbol       11         8 FS                        
         1      L text pool          12         9 TP                        
      RSGENYTT                             
         1      L ABDBG             127         0 TA                        
      SAPMSSY3                             
         1      A global data         0         1 DA                        
         1      L constant dat        1         2 LI        .0 .0A38        
         1      L constant dat        2         3 LI        .0 .09BF        
         1      L not assigned        3         4 IN                        
         1      L SYST                4         5 TA                        
         1      L SY                  5         6 TA                        
         1      L RSJOBINFO           6         7 TA                        
         1      M /%_SYS%%            7         8 CO                        
         1      M field symbol        8         9 FS                        
         1      M /%_LISTTABLE        9         0 CO                        
         1      M /%_SYS000          10         1 CO                        
         1      L ABDBG              11         2 TA                        
         1      M field symbol       12         3 FS                        
         1      Y           13         4 LA 0                    
         1      Y           14         5 LA 0                    
         1      Y           15         6 LA 0                    
         1      Y           16         7 LA 0                    
         1      Y           17         8 LA 0                    
         1      Y           18         9 LA 0                 

    Hi lucio,
    thanks for your quick answer, update of DW didn't work, here you are dev_w22 trace
    trc file: "dev_w22", trc level: 1, release: "46D"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Mon Nov 19 18:30:29 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' ...
    B  Library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' loaded
    B  Version of library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' is "46D.00", patchlevel (0.2328)
    B  New connection 0 created
    M  relno      4640
    M  patchlevel 0
    M  patchno    2352
    M  intno      0
    M  pid        5400

    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc22 5400) [dpxxdisp.c   976]
    I  MtxInit: -2 0 0

    I Mon Nov 19 18:30:31 2007
    I  *** ERROR => New Process with the same PID
                  ERROR_INVALID_ADDRESS: Attempt to access invalid address.   [semnt.c      1513]
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 22 initializing ....
    X  Using implementation std
    M  <ES> Memory Reset enabled
    X  ES initialized.
    M  ThSysUsrCheck: clear T22
    M  calling db_connect ...
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      2328
    C    patchcomment MSSQL: Transaction inconsistencies HOTNEWS (1067103)
    C  SQLOLEDB Provider Release:08.10.3959
    C  Using shared procedure name cache (APPSERVER_DEVDEV_MEM,1320040 bytes,10000 procs) initialized by another process
    C  Using shared TEMP procedure cache (APPSERVER_DEVDEV_TSP,7040024 bytes,10000 procs) initialized by another process
    C  Connected to db server : [appserver], dbname: DEV, dbuser: dev
    B  Connection 0 opened
    B  Wp  Hdl ConName              ConCnt ConState     TX  PRM RCT Date     Time
    B  000 000 R/3                  000000 ACTIVE       NO  YES NO  20071119 183031
    M  db_connect o.k.
    I  MtxInit: 22 0 0
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 22 initializing ....
    X  Using implementation std
    X  ES initialized.
    B  db_con_shm_ini:  WP_ID = 22, WP_CNT = 31
    B  dbtbxbuf: Buffer TABL  (addr: 0BA400C8, size: 6000000, end: 0BFF8E48)
    B  dbexpbuf: Buffer EIBUF (addr: 0C2100D0, size: 4194304, end: 0C6100D0)
    B  dbexpbuf: Buffer CUA   (addr: 0C6200D0, size: 3072000, end: 0C90E0D0)
    M  rdisp/reinitialize_code_page -> 0
    M  rdisp/hold_keeps_time_slice -> 0
    M  rdisp/no_hooks_for_sqlbreak -> 0
    M  PfReadDBVersion: use compatibility mode for stat-files
    M  CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    S  *** init spool environment
    S  initialize debug system
    T  Stack direction is downwards.
    T  debug control: prepare exclude for printer trace
    T  new memory block 07D86F10
    S  spool kernel/ddic check: Ok
    S  using table TSP02FX for frontend printing
    S  1 spool work process(es) found
    S  frontend print via spool service enabled
    S  printer list size is 150
    S  printer type list size is 50
    S  queue size (profile)   = 300
    S  hostspool list size = 3000
    S  option list size is 30
    S      found processing queue enabled
    S  found spool memory service RSPO-RCLOCKS at 0D760098
    S  doing lock recovery
    S  setting server cache root
    S  found spool memory service RSPO-SERVERCACHE at 0D760798
    S    using messages for server info
    S  immediate print option for implicitely closed spool requests is disabled

    A  -PXA--
    A  PXA INITIALIZATION
    A  Attached to PXA (address 28230040, size 154674K)
    A  abap/pxa = shared
    A  PXA INITIALIZATION FINISHED
    A  -PXA--

    A  RFC rfc/dump_client_info not set, use default -1
    A  RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0
    A  RFC rfc/bc_no_gui_cp_refresh not set, use default value: 0
    A  RFC Method> initialize RemObjDriver for ABAP Objects
    M  SsfSapSecin: putenv(SECUDIR=D:\usr\sap\DEV\DVEBMGS00\sec): ok

    M  =================================================
    M  === SSF INITIALIZATION:
    M  ===...SSF Security Toolkit name SAPSECULIB .
    M  ===...SSF trace level is 0 .
    M  ===...SSF library is D:\usr\sap\DEV\SYS\exe\run\sapsecu.dll .
    M  ===...SSF hash algorithm is SHA1 .
    M  ===...SSF symmetric encryption algorithm is DES-CBC .
    M  ===...sucessfully completed.
    M  =================================================
    E  Replication is disabled
    E  EnqCcInitialize: local lock table initialization o.k.
    E  EnqId_SuppressIpc: local EnqId initialization o.k.
    E  EnqCcInitialize: local enqueue client init o.k.

    B Mon Nov 19 18:40:15 2007
    B  dbtran INFO (init_connection '<DEFAULT>' [MSSQL:46D.00]):
    B   max_blocking_factor =  50,  max_in_blocking_factor      = 255,
    B   min_blocking_factor =   5,  min_in_blocking_factor      =  10,
    B   prefer_union_all    =   1,  prefer_union_for_select_all =   0,
    B   prefer_fix_blocking =   0,  prefer_in_itab_opt          =   0,
    B   convert AVG         =   1,  alias table FUPD            =   0,
    B   escape_as_literal   =   0,  opt GE LE to BETWEEN        =   0,
    B   select *            = 0x0,
    B   use_hints           = abap->1, dbif->1, upto->0, rule_in->0,
    B                         rule_fae->0, concat_fae->0, concat_fae_or->0
    C  The IRow interface is supported by this OLEDB provider

    M Mon Nov 19 18:40:18 2007
    M  call semaphore clean-up function ...
    M  ***LOG Q0E=> DpSigGenHandler, Exception (c0000094) [dpnttool.c   390]
    M  -
    C-STACK -
    SAP (R) - R/3(TM) Callstack, Version 1.0
    Copyright (C) SAP AG. All rights reserved.
    Application exception occurred:
    Exception : c0000094 (Divide by zero)
    App       : disp+work.EXE (pid=5400)
    When      : 11/19/2007 18:40:18.134
    Threads   : 2
    Computer Name       : APPSERVER
    User Name           : SAPServiceDEV
    Number of Processors: 4
    Processor Type: x86 Family 6 Model 15 Stepping 6
    Windows Version     : 5.2 Current Build: 3790
    Stack Dump for Thread Id 151c
    eax=0000a000 ebx=00000000 ecx=00000000 edx=00000000 esi=03f48b54 edi=00000000
    eip=10032cab esp=031688b0 ebp=031688dc iopl=0         nv up ei pl nz na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
    function : <nosymbols>
            10032c92 807d1400         cmp     byte ptr [ebp+0x14],0x0      ss:062cfc7a=00
            10032c96 7422             jz      dsql_db_init+0x30d0a (10032cba)
            10032c98 394e08           cmp     [esi+0x8],ecx          ds:070afef2=????????
            10032c9b 751d             jnz     dsql_db_init+0x30d0a (10032cba)
            10032c9d 8d047f           lea     eax,[edi+edi*2]        ds:00000000=????????
            10032ca0 c1e003           shl     eax,0x3
            10032ca3 8bd0             mov     edx,eax
            10032ca5 8b4518           mov     eax,[ebp+0x18]         ss:062cfc7a=00000000
            10032ca8 2bc2             sub     eax,edx
            10032caa 99               cdq
    FAULT-> 10032cab f7fb             idiv    ebx
            10032cad 0fbfd0           movsx   edx,ax
            10032cb0 eb0b             jmp     dsql_db_init+0x30d0d (10032cbd)
            10032cb2 6a02             push    0x2
            10032cb4 58               pop     eax
            10032cb5 e9df040000       jmp     dsql_db_init+0x311e9 (10033199)
            10032cba 6a01             push    0x1
            10032cbc 5a               pop     edx
            10032cbd 803dd95a1d1000                                        ds:101d5ad9=00
                                      cmp  byte ptr [EndFastload+0x19644f (101d5ad9)],0x0
            10032cc4 7409             jz      dsql_db_init+0x30d1f (10032ccf)
            10032cc6 833dac591d1006                                  ds:101d59ac=00000006
                                      cmp dword ptr [EndFastload+0x196322 (101d59ac)],0x6
            10032ccd 7416             jz      dsql_db_init+0x30d35 (10032ce5)
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    031688dc 1000d5df 00000000 018b76f0 00000000 00000001 dbmssslib!dsql_db_init
    03168978 10001cb3 03f41f90 018b8ca8 018b76f0 00000035 dbmssslib!dsql_db_init
    031689c4 008f4765 010056b8 00000035 00000001 018b8ca8 dbmssslib!DbSlVersion
    031689f4 008f10a9 00000001 00000000 3f26827c 00000000 disp+work!<nosymbols>
    03168a74 008f05ff 00000000 3f26827c 00000000 3f2682ec disp+work!<nosymbols>
    03168a9c 008a2873 00000000 018b769c 3f2682ec 00000000 disp+work!<nosymbols>
    03168b48 0089ef88 00000000 3f26827c 3f2682ec 03168d0c disp+work!<nosymbols>
    03168b5c 008a1714 3f261654 00000000 00000000 00000000 disp+work!<nosymbols>
    03168d0c 0089d4ec 00000000 3f26827c 3f2682ec 00000000 disp+work!<nosymbols>
    03168ea0 0061f5f7 00000000 3f26827c 3f2682ec ffffffff disp+work!<nosymbols>
    03168edc 00616212 00000007 03168ef8 0316f130 00000000 disp+work!<nosymbols>
    03168f1c 005bf6a0 00000008 29339f2c 00000000 3f2918e0 disp+work!<nosymbols>
    0316f140 00629e43 00000000 00000000 0316f170 00000001 disp+work!<nosymbols>
    00e5bc44 00000000 49444553 00000000 4f525f25 0000544f disp+work!<nosymbols>
    Stack Dump for Thread Id 5f4
    eax=00000001 ebx=00000103 ecx=7c829f59 edx=00380000 esi=00000000 edi=00000000
    eip=7c8285ec esp=054ffc74 ebp=054ffcb8 iopl=0         nv up ei pl zr na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
    function : KiFastSystemCallRet
            7c8285ec c3               ret
            7c8285ed 8da42400000000   lea     esp,[esp]              ss:054ffc74=7c8270fb
            7c8285f4 8d642400         lea     esp,[esp]              ss:08667013=00000000
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    054ffcb8 00c3475c 00000688 00000000 00000000 03e7be00 ntdll!KiFastSystemCallRet
    054fff84 77bcb530 00000000 00000000 00000000 03e7be98 disp+work!<nosymbols>
    054fffb8 77e64829 03e7be98 00000000 00000000 03e7be98 MSVCRT!endthreadex
    054fffec 00000000 77bcb4bc 03e7be98 00000000 00000000 kernel32!GetModuleHandleA
    M  -
    M  call clean-up function ...
    M  in_ThErrHandle: 1
    M  ThSigHandler: signal (step 4, th_errno 11, action 4)

    M  Info for wp 22

    M    stat = 4
    M    reqtype = 4
    M    act_reqtype = 4
    M    tid = 22
    M    mode = 0
    M    len = 24
    M    rq_id = 139
    M    rq_source = 1
    M    rq_info = 8576
    M    last_tid = 22
    M    last_mode = 0
    M    int_checked_resource = 0
    M    ext_checked_resource = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <

    M  Modeinfo for User T22/M0

    M    tm state = 2
    M    uid = 23
    M    term type = 0x0
    M    display = 0x0
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >DDIC        <
    M    terminal = >                    <
    M    client = >000<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    blockSoftCanel = NO
    M    imode = 2
    M    mode state = 0x42
    M    mode clean_state = 1
    M    th_errno = 11
    M    rollout_reason = 0
    M    last_rollout_level = 7
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 1
    M    roll state = 4
    M    abap state = 4
    M    em state = 3
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = -1
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >                    <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 0
    M    act enq infos = 0
    M    em_hyper_hdl = NULL


    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server appserver_DEV_00 on host appserver (wp 22)
    M  *  ERROR       ThSigHandler: signal
    M  *
    M  *  TIME        Mon Nov 19 18:40:18 2007
    M  *  RELEASE     46D
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          11
    M  *  MODULE      thxxhead.c
    M  *  LINE        8628
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  Entering TH_CALL_HOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  Entering ThSetStatError
    M  *** WARNING => sql break failed (-1)
    M  ThErrHandle: don't try rollback again
    M  ThErrHandle: call ThrCoreInfo
    A  ** RABAX: level LEV_RX_ROLLBACK entered.
    A  ** RABAX: level LEV_RX_ROLLBACK completed.
    A  ** RABAX: level LEV_RX_DB_ALIVE entered.
    A  ** RABAX: level LEV_RX_DB_ALIVE completed.
    A  ** RABAX: level LEV_RX_HOOKS entered.
    A  ** RABAX: level LEV_RX_HOOKS completed.
    A  ** RABAX: level LEV_RX_STANDARD entered.
    C  HandleOledbError [RpcExec,line 22204]: Error/Message: (err 8144, sev 0), Procedure or function ##Y8APPSERVEDEV00000054000000000014183031 has too many arguments specified.
    C  RpcExec failed.  HR 80040e14 DBSL retcode 99. proc: [##Y8APPSERVEDEV00000054000000000014183031]
    C  HandleOledbError [RpcExec,line 22204]: Error/Message: (err 8144, sev 0), Procedure or function ##Y8APPSERVEDEV00000054000000000014183031 has too many arguments specified.
    C  RpcExec failed.  HR 80040e14 DBSL retcode 99. proc: [##Y8APPSERVEDEV00000054000000000014183031]
    C  retry with SQL statement string
    A  ** RABAX: level LEV_RX_STANDARD completed.
    A  ** RABAX: level LEV_RX_C_STACK entered.
    A  ** RABAX: level LEV_RX_C_STACK completed.
    A  ** RABAX: level LEV_RX_MEMO_CHECK entered.
    A  ** RABAX: level LEV_RX_MEMO_CHECK completed.
    A  ** RABAX: level LEV_RX_INTERFACES entered.
    A  ** RABAX: level LEV_RX_INTERFACES completed.
    A  ** RABAX: level LEV_RX_GET_MESS entered.
    A  ** RABAX: level LEV_RX_GET_MESS completed.
    A  ** RABAX: level LEV_RX_INIT_SNAP entered.
    A  ** RABAX: level LEV_RX_INIT_SNAP completed.
    A  ** RABAX: level LEV_RX_WRITE_SYSLOG entered.
    A  ** RABAX: level LEV_RX_WRITE_SYSLOG completed.
    A  ** RABAX: level LEV_RX_WRITE_SNAP entered.
    A  ** RABAX: level LEV_SN_END completed.
    A  ** RABAX: level LEV_RX_SET_ALERT entered.
    A  ** RABAX: level LEV_RX_SET_ALERT completed.
    A  ** RABAX: level LEV_RX_COMMIT entered.
    A  ** RABAX: level LEV_RX_COMMIT completed.
    A  ** RABAX: level LEV_RX_SNAP_SYSLOG entered.
    A  ** RABAX: level LEV_RX_SNAP_SYSLOG completed.
    A  ** RABAX: level LEV_RX_RESET_PROGS entered.
    A  ** RABAX: level LEV_RX_RESET_PROGS completed.
    A  ** RABAX: level LEV_RX_STDERR entered.
    A  ** RABAX: level LEV_RX_STDERR completed.
    A  ** RABAX: level LEV_RX_RFC_ERROR entered.
    A  ** RABAX: level LEV_RX_RFC_ERROR completed.
    A  ** RABAX: level LEV_RX_RFC_CLOSE entered.
    A  ** RABAX: level LEV_RX_RFC_CLOSE completed.
    A  ** RABAX: level LEV_RX_IMC_ERROR entered.
    A  ** RABAX: level LEV_RX_IMC_ERROR completed.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE entered.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE completed.
    A  ** RABAX: level LEV_RX_ERROR_SAVE entered.
    A  ** RABAX: level LEV_RX_ERROR_SAVE completed.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    A  ** RABAX: level LEV_RX_END entered.
    A  ** RABAX: level LEV_RX_END completed.
    A  ** RABAX: end RX_RETURN
    M  ThIErrHandle: Entering ThErrHdlUser
    M  ThErrHdlUser: set th_errno (11)
    M  ThErrHdlUser: save context
    B  Disconnecting from ALL connections:
    B  Wp  Hdl ConName              ConCnt ConState     TX  PRM RCT Date     Time
    B  022 000 R/3                  000000 ACTIVE       YES YES NO  20071119 183031
    B  Disconnected from connection 0
    B  statistics db_con_commit (com_total=5, com_forced=1, com_tx=1)
    B  statistics db_con_rollback (roll_total=0, roll_forced=0, roll_tx=0)
    M  ***LOG Q02=> wp_halt, WPStop (Workproc22 5400) [dpnttool.c   310]
    M  return from clean-up function ...
    trc file: "dev_w22", trc level: 1, release: "46D"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Mon Nov 19 18:40:34 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' ...
    B  Library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' loaded
    B  Version of library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' is "46D.00", patchlevel (0.2328)
    B  New connection 0 created
    M  relno      4640
    M  patchlevel 0
    M  patchno    2352
    M  intno      0
    M  pid        432

    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc22 432) [dpxxdisp.c   976]
    I  MtxInit: -2 0 0
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 22 initializing ....
    X  Using implementation std
    M  <ES> Memory Reset enabled
    X  ES initialized.
    M  calling db_connect ...
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      2328
    C    patchcomment MSSQL: Transaction inconsistencies HOTNEWS (1067103)
    C  SQLOLEDB Provider Release:08.10.3959
    C  Using shared procedure name cache (APPSERVER_DEVDEV_MEM,1320040 bytes,10000 procs) initialized by another process
    C  Using shared TEMP procedure cache (APPSERVER_DEVDEV_TSP,7040024 bytes,10000 procs) initialized by another process
    C  Connected to db server : [appserver], dbname: DEV, dbuser: dev
    B  Connection 0 opened
    B  Wp  Hdl ConName              ConCnt ConState     TX  PRM RCT Date     Time
    B  000 000 R/3                  000000 ACTIVE       NO  YES NO  20071119 184034
    M  db_connect o.k.
    I  MtxInit: 22 0 0
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 22 initializing ....
    X  Using implementation std
    X  ES initialized.
    B  db_con_shm_ini:  WP_ID = 22, WP_CNT = 31
    B  dbtbxbuf: Buffer TABL  (addr: 0BA400C8, size: 6000000, end: 0BFF8E48)
    B  dbexpbuf: Buffer EIBUF (addr: 0C2100D0, size: 4194304, end: 0C6100D0)
    B  dbexpbuf: Buffer CUA   (addr: 0C6200D0, size: 3072000, end: 0C90E0D0)
    M  rdisp/reinitialize_code_page -> 0
    M  rdisp/hold_keeps_time_slice -> 0
    M  rdisp/no_hooks_for_sqlbreak -> 0
    M  PfReadDBVersion: use compatibility mode for stat-files
    M  CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    S  *** init spool environment
    S  initialize debug system
    T  Stack direction is downwards.
    T  debug control: prepare exclude for printer trace
    T  new memory block 07D86BF0
    S  spool kernel/ddic check: Ok
    S  using table TSP02FX for frontend printing
    S  1 spool work process(es) found
    S  frontend print via spool service enabled
    S  printer list size is 150
    S  printer type list size is 50
    S  queue size (profile)   = 300
    S  hostspool list size = 3000
    S  option list size is 30
    S      found processing queue enabled
    S  found spool memory service RSPO-RCLOCKS at 0D760098
    S  doing lock recovery
    S  setting server cache root
    S  found spool memory service RSPO-SERVERCACHE at 0D760798
    S    using messages for server info
    S  immediate print option for implicitely closed spool requests is disabled

    A  -PXA--
    A  PXA INITIALIZATION
    A  Attached to PXA (address 28230040, size 154674K)
    A  abap/pxa = shared
    A  PXA INITIALIZATION FINISHED
    A  -PXA--

    A  RFC rfc/dump_client_info not set, use default -1
    A  RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0
    A  RFC rfc/bc_no_gui_cp_refresh not set, use default value: 0
    A  RFC Method> initialize RemObjDriver for ABAP Objects
    M  SsfSapSecin: putenv(SECUDIR=D:\usr\sap\DEV\DVEBMGS00\sec): ok

    M  =================================================
    M  === SSF INITIALIZATION:
    M  ===...SSF Security Toolkit name SAPSECULIB .
    M  ===...SSF trace level is 0 .
    M  ===...SSF library is D:\usr\sap\DEV\SYS\exe\run\sapsecu.dll .
    M  ===...SSF hash algorithm is SHA1 .
    M  ===...SSF symmetric encryption algorithm is DES-CBC .
    M  ===...sucessfully completed.
    M  =================================================
    E  Replication is disabled
    E  EnqCcInitialize: local lock table initialization o.k.
    E  EnqId_SuppressIpc: local EnqId initialization o.k.
    E  EnqCcInitialize: local enqueue client init o.k.
    M  ThCheckPrevUser: clean previous user T22/U23/M0/I2

    M  Modeinfo for User T22/M0

    M    tm state = 2
    M    uid = 23
    M    term type = 0x0
    M    display = 0x0
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >DDIC        <
    M    terminal = >                    <
    M    client = >000<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    blockSoftCanel = NO
    M    imode = 2
    M    mode state = 0x42
    M    mode clean_state = 1
    M    th_errno = 11
    M    rollout_reason = 0
    M    last_rollout_level = 7
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 1
    M    roll state = 3
    M    abap state = 3
    M    em state = 2
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = -1
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >                    <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 0
    M    act enq infos = 0
    M    em_hyper_hdl = NULL

    M  ThCheckPrevUser: reset spa state for user T22/U23/M0
    M  LOCK WP ca_blk 216
    M  LOCK APPC ca_blk 72
    M  set task type ZTTABTC
    M  ThCleanPrevUser: clean U23 T22 M0 I2 clean state DP_DEFAULT_CLEANING from previous wp
    M  ThCleanPrevUser: saved MODE_REC = 40
    M  PfStatDisconnect: disconnect statistics
    M  ThCheckEmState: check ATTACH for em hdl 1
    M  ThCheckEmState: call EmContextAttach (em_hdl=1)
    M  ThIAMDel: delete tid/mode 22/0 (th_errno 23, release 1)
    M  ThTSCancel: set T22 M0 in status MODE_CANCEL
    M  ThIDeleteMode (22, 0, 3, ><, 0, 255, TRUE)
    M  ThIDeleteMode: no modes found ..
    M    no sub modes
    M  ThSUsrDel: delete system user
    M  ThSUsrDel: clean batch after error (23)
    C  The IRow interface is supported by this OLEDB provider
    M  ThScheduler: server name: appserver_DEV_00   
    M  ThISendMsg: send message (5) to server (wp) with name >appserver_DEV_00    <
    M  ThISndName: send to name: >appserver_DEV_00    <
    M  ThISend: (tm/user/type = 22/DDIC        /0x2000, mode_deleted=0)
    M    MSG_NAME
    M  ThRqOutCheck: o.k.
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat: new state of T22/M0 = 0xc2
    M  ThISend: new wp stat: 0x0
    M  Adresse   Offset  Message by name (one way)
    M  -
    M  0639A0C0  000000  00000000 05000000 255f4556 454e545f |........%%_EVENT_|
    M  0639A0D0  000016  53434845 44554c45 52002020 20202020 |SCHEDULER.      |
    M  -
    M  ThMkReq: send output to canceled mode
    M  make DISP owner of wp_ca_blk 216
    M  put request into queue (reqtype 0, prio LOW, rq_id 158)
    M  -OUT- sender_id    WORK_PROCESS   tid  22    wp_ca_blk   216     wp_id 22
    M  -OUT- action    SEND_MSG_ONEWAY   uid  23    appc_ca_blk -1      type  NOWP
    M  -OUT- new_stat  NO_CHANGE         mode 0     len         268     rq_id 158
    M  -OUT- forward   DIA              
    M  -OUT- req_info  CANCELMODE MSG_WITH_REQ_BUF MSG_WITH_OH
    M  NiPHostToAddr: read hostaddr 127.0.0.1 from operating system
    M  NiIHostToAddr: hostname localhost = addr 127.0.0.1
    M  NiPServToNo: read servno 3200 from operating system
    M  NiIServToNo: servicename sapdp00 = port 0C.80/3200
    M  NiCreateHandle: state nihandle-socket 1-1024 NI_INITIAL
    M  NiIDgSend: init datagram send_handle 1-1024
    M  CPU byte order: little endian, reverse network, low val .. high val
    M  NiIDgSend: send dgram to: host 127.0.0.1, port 0C.80/3200, fam 2 (low adr..high adr)
    M  LOCK WP ca_blk 217
    M  ThResFree: free resources of U23 M0 I2 (normal mode, complete free) at level 3, db_action=TH_DB_NO_ACTION
    M  ThResFree: reset spa state for user T22/U23/M0
    M  ThCallHooks: call hook >SpoolHandleHook< for event SOS_HOOK_BEFORE_SESSION_CANCEL
    M  PfStatDisconnect: disconnect statistics
    M  ThDealComm: T22/U23/M0 has no cpic conns
    M  ***LOG R47=> ThResFree, delete (001023) [thxxmode.c   1099]
    M  ThGetEnqInfo: no enq info found
    M  ThVBIRollBack: initialize TH-hooks
    M  SosRegisterHook: add hook >ThVBICmRbHook< for event AFTER_COMMIT
    M  SosRegisterHook: add hook >ThVBICmRbHook< for event AFTER_ROLLBACK
    M  ThRmLocQueue: no async request found
    M  ThInvalidateRfcCliId: invalidate RfcCliId at 5DA68C48
    M  ThRmFree:  cleanup resources for T22 M0
    M  RmCleanUpResources2: hdr/tbl/ext_tbl = 04037058/00000000/0
    M  RmCleanUpResources2: no resources registered
    M  ThRmFree: reset eg state of T22 M0
    M  ThRmFree cleanup resources for T22
    M  RmCleanUpResources2: hdr/tbl/ext_tbl = 04037BB8/5DA68D20/1
    M  RmCleanUpResources2: call resource handler 0047A981 for key/entry 3/0
    M  ThFreeRollMemory: release eg adr 5DA68C48 for T22
    M  RmInitResourceTblEntry: free resource description  at 5DA693A8 (ext_tbl=1)
    M  ThFreeRollMemory: release eg adr 5DA693A8 for T22
    M  RmIFreeTable: free resource table at 5DA68D20 (ext_tbl=1)
    M  ThFreeRollMemory: release eg adr 5DA68D20 for T22
    M  ThRmFree: reset eg state of T22
    M  ThEmFree: call EmContextDelete (em_hdl=1)
    M  ThResFree: save spa pointer 7FDCE7E0 and install dummy spa
    M  ThCheckComOrRb (event=1, full_commit=1)
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    M  ThCheckComOrRb (event=3, full_commit=1)
    M  ThCallHooks: call hook >ThVBICmRbHook< for event AFTER_COMMIT
    M  ThVBICmRbHook: called for commit
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThNoClearPrevErr: clear prev no err
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  ThISend: (tm/user/type = 22/SAPSYS      /0x41, mode_deleted=1)
    M    TASK_SWITCH
    M    DISP
    M  ThRqOutCheck: o.k.
    M  ThISend: allowed rq_type of T22/M0 = 0
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat: new MODE_REC = 40
    M  ThNewWpStat: new state of T22/M0 = 0xc1
    M  ThISend: new wp stat: 0x2
    M  ThMkReq: send output to canceled mode
    M  ThISend: complete stat record
    M  make DISP owner of wp_ca_blk 217
    M  put request into queue (reqtype 0, prio LOW, rq_id 159)
    M  -OUT- sender_id    WORK_PROCESS   tid  22    wp_ca_blk   217     wp_id 22
    M  -OUT- action    SEND_TO_DP        uid  23    appc_ca_blk -1      type  NOWP
    M  -OUT- new_stat  WP_WAIT           mode 0     len         8       rq_id 159
    M  -OUT- req_info  CANCELMODE
    M  NiIDgSend: send dgram to: host 127.0.0.1, port 0C.80/3200, fam 2 (low adr..high adr)
    M  REL APPC ca_blk 72
    M  ThISend: th_wp_waits_for_rq = TH_WP_WAITS_FOR_RQPfClearAllRec: clear statistic area
    M  PfStatDisconnect: disconnect statistics
    M  ThSysUsrCheck(1,1): check system user T22/U23/M0
    M  ThSysUsrCheck: clear T22
    M  DpITmSlotClear: clear slot 22
    M  DpListRemove: elem 22 not in tmadm_free_list
    M  DpListInsert: elem 22 already in tmadm_inuse_list
    M  rdisp/wp_auto_restart = 0
    M  rdisp/wp_abap_restart = 0
    M  ThSetThToolParam : restartable_wp[0] = FALSE
    M  ThSetThToolParam : restartable_wp[1] = TRUE
    M  ThSetThToolParam : restartable_wp[2] = TRUE
    M  ThSetThToolParam : restartable_wp[3] = FALSE
    M  ThSetThToolParam : restartable_wp[4] = TRUE
    M  ThSetThToolParam : restartable_wp[5] = TRUE
    M  ThSetThToolParam : restartable_wp[6] = TRUE
    M  ThCallHooks: call hook >HttpResetPtr< for event BEFORE_TASK_SWITCH
    M  TskhLoop: switch back to normal tracel level 1

    B Mon Nov 19 20:15:39 2007
    B  dbtran INFO (init_connection '<DEFAULT>' [MSSQL:46D.00]):
    B   max_blocking_factor =  50,  max_in_blocking_factor      = 255,
    B   min_blocking_factor =   5,  min_in_blocking_factor      =  10,
    B   prefer_union_all    =   1,  prefer_union_for_select_all =   0,
    B   prefer_fix_blocking =   0,  prefer_in_itab_opt          =   0,
    B   convert AVG         =   1,  alias table FUPD            =   0,
    B   escape_as_literal   =   0,  opt GE LE to BETWEEN        =   0,
    B   select *            = 0x0,
    B   use_hints           = abap->1, dbif->1, upto->0, rule_in->0,
    B                         rule_fae->0, concat_fae->0, concat_fae_or->0
    M  call semaphore clean-up function ...
    M  ***LOG Q0E=> DpSigGenHandler, Exception (c0000094) [dpnttool.c   390]
    M  -
    C-STACK -
    SAP (R) - R/3(TM) Callstack, Version 1.0
    Copyright (C) SAP AG. All rights reserved.
    Application exception occurred:
    Exception : c0000094 (Divide by zero)
    App       : disp+work.EXE (pid=432)
    When      : 11/19/2007 20:15:39.822
    Threads   : 2
    Computer Name       : APPSERVER
    User Name           : SAPServiceDEV
    Number of Processors: 4
    Processor Type: x86 Family 6 Model 15 Stepping 6
    Windows Version     : 5.2 Current Build: 3790
    Stack Dump for Thread Id 10c8
    eax=0000a000 ebx=00000000 ecx=00000000 edx=00000000 esi=03f48b44 edi=00000000
    eip=10032cab esp=031688b0 ebp=031688dc iopl=0         nv up ei pl nz na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
    function : <nosymbols>
            10032c92 807d1400         cmp     byte ptr [ebp+0x14],0x0      ss:062cfc7a=00
            10032c96 7422             jz      dsql_db_init+0x30d0a (10032cba)
            10032c98 394e08           cmp     [esi+0x8],ecx          ds:070afee2=????????
            10032c9b 751d             jnz     dsql_db_init+0x30d0a (10032cba)
            10032c9d 8d047f           lea     eax,[edi+edi*2]        ds:00000000=????????
            10032ca0 c1e003           shl     eax,0x3
            10032ca3 8bd0             mov     edx,eax
            10032ca5 8b4518           mov     eax,[ebp+0x18]         ss:062cfc7a=00000000
            10032ca8 2bc2             sub     eax,edx
            10032caa 99               cdq
    FAULT-> 10032cab f7fb             idiv    ebx
            10032cad 0fbfd0           movsx   edx,ax
            10032cb0 eb0b             jmp     dsql_db_init+0x30d0d (10032cbd)
            10032cb2 6a02             push    0x2
            10032cb4 58               pop     eax
            10032cb5 e9df040000       jmp     dsql_db_init+0x311e9 (10033199)
            10032cba 6a01             push    0x1
            10032cbc 5a               pop     edx
            10032cbd 803dd95a1d1000                                        ds:101d5ad9=00
                                      cmp  byte ptr [EndFastload+0x19644f (101d5ad9)],0x0
            10032cc4 7409             jz      dsql_db_init+0x30d1f (10032ccf)
            10032cc6 833dac591d1006                                  ds:101d59ac=00000006
                                      cmp dword ptr [EndFastload+0x196322 (101d59ac)],0x6
            10032ccd 7416             jz      dsql_db_init+0x30d35 (10032ce5)
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    031688dc 1000d5df 00000000 018b76f0 00000000 00000001 dbmssslib!dsql_db_init
    03168978 10001cb3 03f41f80 018b8ca8 018b76f0 00000035 dbmssslib!dsql_db_init
    031689c4 008f4765 010056b8 00000035 00000001 018b8ca8 dbmssslib!DbSlVersion
    031689f4 008f10a9 00000001 00000000 3f26827c 00000000 disp+work!<nosymbols>
    03168a74 008f05ff 00000000 3f26827c 00000000 3f2682ec disp+work!<nosymbols>
    03168a9c 008a2873 00000000 018b769c 3f2682ec 00000000 disp+work!<nosymbols>
    03168b48 0089ef88 00000000 3f26827c 3f2682ec 03168d0c disp+work!<nosymbols>
    03168b5c 008a1714 3f261654 00000000 00000000 00000000 disp+work!<nosymbols>
    03168d0c 0089d4ec 00000000 3f26827c 3f2682ec 00000000 disp+work!<nosymbols>
    03168ea0 0061f5f7 00000000 3f26827c 3f2682ec ffffffff disp+work!<nosymbols>
    03168edc 00616212 00000007 03168ef8 0316f130 00000000 disp+work!<nosymbols>
    03168f1c 005bf6a0 00000008 29339f2c 00000000 3f2918e0 disp+work!<nosymbols>
    0316f140 00629e43 00000000 00000000 0316f170 00000001 disp+work!<nosymbols>
    00e5bc44 00000000 49444553 00000000 4f525f25 0000544f disp+work!<nosymbols>
    Stack Dump for Thread Id 10c4
    eax=00000001 ebx=00000103 ecx=7c829f59 edx=00380000 esi=00000000 edi=00000000
    eip=7c8285ec esp=054ffc74 ebp=054ffcb8 iopl=0         nv up ei pl zr na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
    function : KiFastSystemCallRet
            7c8285ec c3               ret
            7c8285ed 8da42400000000   lea     esp,[esp]              ss:054ffc74=7c8270fb
            7c8285f4 8d642400         lea     esp,[esp]              ss:08667013=00000000
    --> Stack Back Trace <--
    FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
    054ffcb8 00c3475c 00000688 00000000 00000000 03e7bdf0 ntdll!KiFastSystemCallRet
    054fff84 77bcb530 00000000 00000000 00000000 03e7be88 disp+work!<nosymbols>
    054fffb8 77e64829 03e7be88 00000000 00000000 03e7be88 MSVCRT!endthreadex
    054fffec 00000000 77bcb4bc 03e7be88 00000000 00000000 kernel32!GetModuleHandleA
    M  -
    M  call clean-up function ...
    M  in_ThErrHandle: 1
    M  ThSigHandler: signal (step 4, th_errno 11, action 4)

    M  Info for wp 22

    M    stat = 4
    M    reqtype = 4
    M    act_reqtype = 4
    M    tid = 22
    M    mode = 0
    M    len = 24
    M    rq_id = 1131
    M    rq_source = 1
    M    rq_info = 8576
    M    last_tid = 22
    M    last_mode = 0
    M    int_checked_resource = 0
    M    ext_checked_resource = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <

    M  Modeinfo for User T22/M0

    M    tm state = 2
    M    uid = 23
    M    term type = 0x0
    M    display = 0x0
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >DDIC        <
    M    terminal = >                    <
    M    client = >000<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    blockSoftCanel = NO
    M    imode = 2
    M    mode state = 0x42
    M    mode clean_state = 1
    M    th_errno = 11
    M    rollout_reason = 0
    M    last_rollout_level = 7
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 1
    M    roll state = 4
    M    abap state = 4
    M    em state = 3
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = -1
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >                    <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 0
    M    act enq infos = 0
    M    em_hyper_hdl = NULL


    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server appserver_DEV_00 on host appserver (wp 22)
    M  *  ERROR       ThSigHandler: signal
    M  *
    M  *  TIME        Mon Nov 19 20:15:39 2007
    M  *  RELEASE     46D
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          11
    M  *  MODULE      thxxhead.c
    M  *  LINE        8628
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  Entering TH_CALL_HOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  Entering ThSetStatError
    M  *** WARNING => sql break failed (-1)
    M  ThErrHandle: don't try rollback again
    M  ThErrHandle: call ThrCoreInfo
    A  ** RABAX: level LEV_RX_ROLLBACK entered.
    A  ** RABAX: level LEV_RX_ROLLBACK completed.
    A  ** RABAX: level LEV_RX_DB_ALIVE entered.
    A  ** RABAX: level LEV_RX_DB_ALIVE completed.
    A  ** RABAX: level LEV_RX_HOOKS entered.
    A  ** RABAX: level LEV_RX_HOOKS completed.
    A  ** RABAX: level LEV_RX_STANDARD entered.
    C  HandleOledbError [RpcExec,line 22204]: Error/Message: (err 8144, sev 0), Procedure or function ##Y8APPSERVEDEV00000054000000000014183031 has too many arguments specified.
    C  RpcExec failed.  HR 80040e14 DBSL retcode 99. proc: [##Y8APPSERVEDEV00000054000000000014183031]
    C  retry with SQL statement string
    A  ** RABAX: level LEV_RX_STANDARD completed.
    A  ** RABAX: level LEV_RX_C_STACK entered.
    A  ** RABAX: level LEV_RX_C_STACK completed.
    A  ** RABAX: level LEV_RX_MEMO_CHECK entered.
    A  ** RABAX: level LEV_RX_MEMO_CHECK completed.
    A  ** RABAX: level LEV_RX_INTERFACES entered.
    A  ** RABAX: level LEV_RX_INTERFACES completed.
    A  ** RABAX: level LEV_RX_GET_MESS entered.
    A  ** RABAX: level LEV_RX_GET_MESS completed.
    A  ** RABAX: level LEV_RX_INIT_SNAP entered.
    A  ** RABAX: level LEV_RX_INIT_SNAP completed.
    A  ** RABAX: level LEV_RX_WRITE_SYSLOG entered.
    A  ** RABAX: level LEV_RX_WRITE_SYSLOG completed.
    A  ** RABAX: level LEV_RX_WRITE_SNAP entered.
    A  ** RABAX: level LEV_SN_END completed.
    A  ** RABAX: level LEV_RX_SET_ALERT entered.
    A  ** RABAX: level LEV_RX_SET_ALERT completed.
    A  ** RABAX: level LEV_RX_COMMIT entered.
    A  ** RABAX: level LEV_RX_COMMIT completed.
    A  ** RABAX: level LEV_RX_SNAP_SYSLOG entered.
    A  ** RABAX: level LEV_RX_SNAP_SYSLOG completed.
    A  ** RABAX: level LEV_RX_RESET_PROGS entered.
    A  ** RABAX: level LEV_RX_RESET_PROGS completed.
    A  ** RABAX: level LEV_RX_STDERR entered.
    A  ** RABAX: level LEV_RX_STDERR completed.
    A  ** RABAX: level LEV_RX_RFC_ERROR entered.
    A  ** RABAX: level LEV_RX_RFC_ERROR completed.
    A  ** RABAX: level LEV_RX_RFC_CLOSE entered.
    A  ** RABAX: level LEV_RX_RFC_CLOSE completed.
    A  ** RABAX: level LEV_RX_IMC_ERROR entered.
    A  ** RABAX: level LEV_RX_IMC_ERROR completed.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE entered.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE completed.
    A  ** RABAX: level LEV_RX_ERROR_SAVE entered.
    A  ** RABAX: level LEV_RX_ERROR_SAVE completed.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    A  ** RABAX: level LEV_RX_END entered.
    A  ** RABAX: level LEV_RX_END completed.
    A  ** RABAX: end RX_RETURN
    M  ThIErrHandle: Entering ThErrHdlUser
    M  ThErrHdlUser: set th_errno (11)
    M  ThErrHdlUser: save context
    B  Disconnecting from ALL connections:
    B  Wp  Hdl ConName              ConCnt ConState     TX  PRM RCT Date     Time
    B  022 000 R/3                  000000 ACTIVE       YES YES NO  20071119 184034
    B  Disconnected from connection 0
    B  statistics db_con_commit (com_total=6, com_forced=2, com_tx=2)
    B  statistics db_con_rollback (roll_total=0, roll_forced=0, roll_tx=0)
    M  ***LOG Q02=> wp_halt, WPStop (Workproc22 432) [dpnttool.c   310]
    M  return from clean-up function ...
    trc file: "dev_w22", trc level: 1, release: "46D"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Mon Nov 19 20:15:54 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' ...
    B  Library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' loaded
    B  Version of library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll' is "46D.00", patchlevel (0.2328)
    B  New connection 0 created
    M  relno      4640
    M  patchlevel 0
    M  patchno    2352
    M  intno      0
    M  pid        4492

    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc22 4492) [dpxxdisp.c   976]
    I  MtxInit: -2 0 0
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 22 initializing ....
    X  Using implementation std
    M  <ES> Memory Reset enabled
    X  ES initialized.
    M  calling db_connect ...
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'D:\usr\sap\DEV\SYS\exe\run\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      2328
    C    patchcomment MSSQL: Transaction inconsistencies HOTNEWS (1067103)
    C  SQLOLEDB Provider Release:08.10.3959
    C  Using shared procedure name cache (APPSERVER_DEVDEV_MEM,1320040 bytes,10000 procs) initialized by another process
    C  Using shared TEMP procedure cache (APPSERVER_DEVDEV_TSP,7040024 bytes,10000 procs) initialized by another process
    C  Connected to db server : [appserver], dbname: DEV, dbuser: dev
    B  Connection 0 opened
    B  Wp  Hdl ConName              ConCnt ConState     TX  PRM RCT Date     Time
    B  000 000 R/3                  000000 ACTIVE       NO  YES NO  20071119 201554
    M  db_connect o.k.
    I  MtxInit: 22 0 0
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 22 initializing ....
    X  Using implementation std
    X  ES initialized.
    B  db_con_shm_ini:  WP_ID = 22, WP_CNT = 31
    B  dbtbxbuf: Buffer TABL  (addr: 0BA400C8, size: 6000000, end: 0BFF8E48)
    B  dbexpbuf: Buffer EIBUF (addr: 0C2100D0, size: 4194304, end: 0C6100D0)
    B  dbexpbuf: Buffer CUA   (addr: 0C6200D0, size: 3072000, end: 0C90E0D0)
    M  rdisp/reinitialize_code_page -> 0
    M  rdisp/hold_keeps_time_slice -> 0
    M  rdisp/no_hooks_for_sqlbreak -> 0
    M  PfReadDBVersion: use compatibility mode for stat-files
    M  CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    S  *** init spool environment
    S  initialize debug system
    T  Stack direction is downwards.
    T  debug control: prepare exclude for printer trace
    T  new memory block 07D86BF0
    S  spool kernel/ddic check: Ok
    S  using table TSP02FX for frontend printing
    S  1 spool work process(es) found
    S  frontend print via spool service enabled
    S  printer list size is 150
    S  printer type list size is 50
    S  queue size (profile)   = 300
    S  hostspool list size = 3000
    S  option list size is 30
    S      found processing queue enabled
    S  found spool memory service RSPO-RCLOCKS at 0D760098
    S  doing lock recovery
    S  setting server cache root
    S  found spool memory service RSPO-SERVERCACHE at 0D760798
    S    using messages for server info
    S  immediate print option for implicitely closed spool requests is disabled

    A  -PXA--
    A  PXA INITIALIZATION
    A  Attached to PXA (address 28230040, size 154674K)
    A  abap/pxa = shared
    A  PXA INITIALIZATION FINISHED
    A  -PXA--

    A  RFC rfc/dump_client_info not set, use default -1
    A  RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0
    A  RFC rfc/bc_no_gui_cp_refresh not set, use default value: 0
    A  RFC Method> initialize RemObjDriver for ABAP Objects
    M  SsfSapSecin: putenv(SECUDIR=D:\usr\sap\DEV\DVEBMGS00\sec): ok

    M  =================================================
    M  === SSF INITIALIZATION:
    M  ===...SSF Security Toolkit name SAPSECULIB .
    M  ===...SSF trace level is 0 .
    M  ===...SSF library is D:\usr\sap\DEV\SYS\exe\run\sapsecu.dll .
    M  ===...SSF hash algorithm is SHA1 .
    M  ===...SSF symmetric encryption algorithm is DES-CBC .
    M  ===...sucessfully completed.
    M  =================================================
    E  Replication is disabled
    E  EnqCcInitialize: local lock table initialization o.k.
    E  EnqId_SuppressIpc: local EnqId initialization o.k.
    E  EnqCcInitialize: local enqueue client init o.k.
    M  ThCheckPrevUser: clean previous user T22/U23/M0/I2

    M  Modeinfo for User T22/M0

    M    tm state = 2
    M    uid = 23
    M    term type = 0x0
    M    display = 0x0
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >DDIC        <
    M    terminal = >                    <
    M    client = >000<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    blockSoftCanel = NO
    M    imode = 2
    M    mode state = 0x42
    M    mode clean_state = 1
    M    th_errno = 11
    M    rollout_reason = 0
    M    last_rollout_level = 7
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 1
    M    roll state = 3
    M    abap state = 3
    M    em state = 2
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = -1
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >                    <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 0
    M    act enq infos = 0
    M    em_hyper_hdl = NULL

    M  ThCheckPrevUser: reset spa state for user T22/U23/M0
    M  LOCK WP ca_blk 216
    M  LOCK APPC ca_blk 72
    M  set task type ZTTABTC
    M  ThCleanPrevUser: clean U23 T22 M0 I2 clean state DP_DEFAULT_CLEANING from previous wp
    M  ThCleanPrevUser: saved MODE_REC = 40
    M  PfStatDisconnect: disconnect statistics
    M  ThCheckEmState: check ATTACH for em hdl 1
    M  ThCheckEmState: call EmContextAttach (em_hdl=1)
    M  ThIAMDel: delete tid/mode 22/0 (th_errno 23, release 1)
    M  ThTSCancel: set T22 M0 in status MODE_CANCEL
    M  ThIDeleteMode (22, 0, 3, ><, 0, 255, TRUE)
    M  ThIDeleteMode: no modes found ..
    M    no sub modes
    M  ThSUsrDel: delete system user
    M  ThSUsrDel: clean batch after error (23)
    C  The IRow interface is supported by this OLEDB provider
    M  ThScheduler: server name: appserver_DEV_00   
    M  ThISendMsg: send message (5) to server (wp) with name >appserver_DEV_00    <
    M  ThISndName: send to name: >appserver_DEV_00    <
    M  ThISend: (tm/user/type = 22/DDIC        /0x2000, mode_deleted=0)
    M    MSG_NAME
    M  ThRqOutCheck: o.k.
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat: new state of T22/M0 = 0xc2
    M  ThISend: new wp stat: 0x0
    M  Adresse   Offset  Message by name (one way)
    M  -
    M  0639A0C0  000000  00000000 05000000 255f4556 454e545f |........%%_EVENT_|
    M  0639A0D0  000016  53434845 44554c45 52002020 20202020 |SCHEDULER.      |
    M  -
    M  ThMkReq: send output to canceled mode
    M  make DISP owner of wp_ca_blk 216
    M  put request into queue (reqtype 0, prio LOW, rq_id 1165)
    M  -OUT- sender_id    WORK_PROCESS   tid  22    wp_ca_blk   216     wp_id 22
    M  -OUT- action    SEND_MSG_ONEWAY   uid  23    appc_ca_blk -1      type  NOWP
    M  -OUT- new_stat  NO_CHANGE         mode 0     len         268     rq_id 1165
    M  -OUT- forward   DIA              
    M  -OUT- req_info  CANCELMODE MSG_WITH_REQ_BUF MSG_WITH_OH
    M  NiPHostToAddr: read hostaddr 127.0.0.1 from operating system
    M  NiIHostToAddr: hostname localhost = addr 127.0.0.1
    M  NiPServToNo: read servno 3200 from operating system
    M  NiIServToNo: servicename sapdp00 = port 0C.80/3200
    M  NiCreateHandle: state nihandle-socket 1-1024 NI_INITIAL
    M  NiIDgSend: init datagram send_handle 1-1024
    M  CPU byte order: little endian, reverse network, low val .. high val
    M  NiIDgSend: send dgram to: host 127.0.0.1, port 0C.80/3200, fam 2 (low adr..high adr)
    M  LOCK WP ca_blk 217
    M  ThResFree: free resources of U23 M0 I2 (normal mode, complete free) at level 3, db_action=TH_DB_NO_ACTION
    M  ThResFree: reset spa state for user T22/U23/M0
    M  ThCallHooks: call hook >SpoolHandleHook< for event SOS_HOOK_BEFORE_SESSION_CANCEL
    M  PfStatDisconnect: disconnect statistics
    M  ThDealComm: T22/U23/M0 has no cpic conns
    M  ***LOG R47=> ThResFree, delete (001023) [thxxmode.c   1099]
    M  ThGetEnqInfo: no enq info found
    M  ThVBIRollBack: initialize TH-hooks
    M  SosRegisterHook: add hook >ThVBICmRbHook< for event AFTER_COMMIT
    M  SosRegisterHook: add hook >ThVBICmRbHook< for event AFTER_ROLLBACK
    M  ThRmLocQueue: no async request found
    M  ThInvalidateRfcCliId: invalidate RfcCliId at 5DA68C48
    M  ThRmFree:  cleanup resources for T22 M0
    M  RmCleanUpResources2: hdr/tbl/ext_tbl = 04037058/00000000/0
    M  RmCleanUpResources2: no resources registered
    M  ThRmFree: reset eg state of T22 M0
    M  ThRmFree cleanup resources for T22
    M  RmCleanUpResources2: hdr/tbl/ext_tbl = 04037BB8/5DA68D20/1
    M  RmCleanUpResources2: call resource handler 0047A981 for key/entry 3/0
    M  ThFreeRollMemory: release eg adr 5DA68C48 for T22
    M  RmInitResourceTblEntry: free resource description  at 5DA693A8 (ext_tbl=1)
    M  ThFreeRollMemory: release eg adr 5DA693A8 for T22
    M  RmIFreeTable: free resource table at 5DA68D20 (ext_tbl=1)
    M  ThFreeRollMemory: release eg adr 5DA68D20 for T22
    M  ThRmFree: reset eg state of T22
    M  ThEmFree: call EmContextDelete (em_hdl=1)
    M  ThResFree: save spa pointer 7FDCE7E0 and install dummy spa
    M  ThCheckComOrRb (event=1, full_commit=1)
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    M  ThCheckComOrRb (event=3, full_commit=1)
    M  ThCallHooks: call hook >ThVBICmRbHook< for event AFTER_COMMIT
    M  ThVBICmRbHook: called for commit
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThNoClearPrevErr: clear prev no err
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  ThISend: (tm/user/type = 22/SAPSYS      /0x41, mode_deleted=1)
    M    TASK_SWITCH
    M    DISP
    M  ThRqOutCheck: o.k.
    M  ThISend: allowed rq_type of T22/M0 = 0
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat: new MODE_REC = 40
    M  ThNewWpStat: new state of T22/M0 = 0xc1
    M  ThISend: new wp stat: 0x2
    M  ThMkReq: send output to canceled mode
    M  ThISend: complete stat record
    M  make DISP owner of wp_ca_blk 217
    M  put request into queue (reqtype 0, prio LOW, rq_id 1166)
    M  -OUT- sender_id    WORK_PROCESS   tid  22    wp_ca_blk   217     wp_id 22
    M  -OUT- action    SEND_TO_DP        uid  23    appc_ca_blk -1      type  NOWP
    M  -OUT- new_stat  WP_WAIT           mode 0     len         8       rq_id 1166
    M  -OUT- req_info  CANCELMODE
    M  NiIDgSend: send dgram to: host 127.0.0.1, port 0C.80/3200, fam 2 (low adr..high adr)
    M

  • Segment fault (Core dump)

    Hi
    when i run the following Pro*c file in Unix Environment im getting the SEGMENTATION FAULT(CORE DUMP) error. I used DBX to debug the code. I couldnt find out the proper reason for this error form the dbx output.
    This is the output i got from DBX.
    *signal SEGV (no mapping at the fault address) in _doprnt at 0xfb98736c*
    *0xfb98736c: _doprnt+0x2798:     stb     %o0, [%o1]*
    I did the showmemuse and show leaks, the output for this commands :
    (dbx) showmemuse
    Checking for memory use...
    Blocks in use report (blocks in use: 575 total size: 328086 bytes)
    Total % of Num of Avg Allocation call stack
    Size All Blocks Size
    ======= ==== ====== ====== =======================================
    134876 41% 30 4495 kpummapg < kghgex
    18098 5% 1 18098 lxldlbb < lxlinit < kpummpin < kpupin < sqgctx < sqgrct < sqlcmex < sqlcxt
    16552 5% 4 4138 kogmapg < kghgex
    16516 5% 4 4129 kogmapg < kogmasg
    12288 3% 6 2048 nlhtnsl < nlhthnew
    10350 3% 5 2070 calloc < nsbGetBFS
    9688 2% 1 9688 kouogini < kouoini < kpuinit0 < kpuinit < sqgctx < sqgrct < sqlcmex < sqlcxt
    8200 2% 1 8200 findbuf < doprnt < _fprintf < main
    8120 2% 4 2030 sqlrlc < sqlcopydfn
    8080 2% 1 8080 kpuinit0 < kpuinit < sqgctx < sqgrct < sqlcmex < sqlcxt < main
    7168 2% 1 7168 calloc < nsgbliuc < nsgblini < niotns < nigcall < osncon < kpuadef < upiini
    7168 2% 3 2389 lxldlod < lxdlobj
    5976 1% 4 1494 sqlrlc < sqlcopydfn
    4640 1% 1 4640 sqlrlc < sqldrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    4640 1% 1 4640 sqlrlc < sqlbrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    4128 1% 1 4128 calloc < nsgbliuc < nsgblini < niotns < nigcall < osncon < kpuadef < upiini
    4024 1% 1 4024 sqlrlc < sqlbrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    3408 1% 1 3408 sqlrlc < sqldrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    2452 <1% 8 306 calloc < nsmal
    2156 <1% 7 308 calloc < nlemfins
    (dbx) showleaks
    Checking for memory leaks...
    Actual leaks report (actual leaks: 1 total size: 30 bytes)
    Total Num of Leaked Allocation call stack
    Size Blocks Block
    Address
    ====== ====== ========== =======================================
    30 1 0x9c9c8 getOutFileName < main
    Possible leaks report (possible leaks: 0 total size: 0 bytes)
    i know its because of Pad pointer and something related to Pointer or array overflow. But i couldnt find out where exactly happening....
    Following is my Code, please help me to find out the error and what i need to change in my code:
    #ifndef ORA_PROC
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <ctype.h>
    #include <math.h>
    #else
    typedef struct FILE FILE;
    #endif
    /*** Added by TCS Begins ***/
    char getOutFileName(char );
    char getEnvVar(char );
    void prepare_declare_oracle_cursors();
    void get_calendar_dates();
    void get_issues();
    void get_master_cusip_no();
    void get_run_date_finish();
    void get_payments();
    int get_pub_dates();
    void get_rights();
    void get_s_h_meetings();
    void get_special_codes();
    void get_agents();
    void get_currency();
    void get_payment_codes();
    void get_issue_codes();
    void get_standard_footnotes();
    void get_index_codes();
    void get_exchanges();
    void get_tax_codes();
    void get_tenders();
    int check_if_holiday(int );
    void sql_error(int , int , char *);
    void login_error();
    void no_pub_dates();
    void no_cal_dates();
    void no_finish_date();
    void save_payment_footnote(char , char [3],int , char );
    void save_issue_footnote(char );
    int print_footnotes();
    int print_foreign_tax();
    int get_partial_run_time();
    void save_rght_footnotes();
    int print_supplimental();
    int convert_tender_price(char *);
    void pad_s_h_meetings();
    int strip_out_codes(char *);
    char *getSqlLogonString();
    /**** TCS ADD Ends ****/
    EXEC SQL INCLUDE sqlca;
    EXEC SQL INCLUDE ddr_create_all_tapes.h;
    #define TRUE 1
    #define ORA_NOT_FOUND     ( sqlca.sqlcode == 1403 )
    /* The Definitions of SUCCESS and FAILURE were switched to test the
    idea that SUCCESS should be Zero and FAILURE should be Non-Zero
    #define SUCCESS 1
    #define FAILURE 0
    #define SUCCESS 0
    #define FAILURE -1
    #define SYSOK          0
    #define SYSERR          1
    #define DEBUGGING     0
    #define DEBUG_LEVEL     0
    /*     #define DEBUGGING     1
         #define DEBUG_LEVEL     2
    int          first_cal_date;
    int          footnote_count;
    int          foreign_count;
    int          last_cal_date;
    int          total_records;
    int          which_tape = 0;
    char          cusip_table_name[30];
    char          field_type_code;
    char          final_cusip_number[10];
    /**** char          footnote_text[300][300];
    char          foreign_text[60][100]; **** Commented by TCS as per the change request ****/
    /*** Added by TCS as per the change request ***/
    char          footnote_text[200][300];
    char          foreign_text[200][300];
    /*** TCS Add Ends ***/
    char          freq_type_code;
    char          init_cusip_number[10];
    char          rec_type_code;
    char          payment_where_clause[600];
    char          rights_where_clause[600];
    char          tenders_where_clause[600];
    char          s_h_meet_where_clause[600];
    char          last_run_time[18];
    char          supp_info_buffer[321];
    int          call_flag;
    int          tenders_flag;
    int          rights_flag;
    int          s_h_meet_flag;
    int          rght_foot_pos;
    double          hold_double;
    int          hold_int;
    char          hold_char[100];
    int i=0;
    FILE      *fp;
    FILE     pfp;          / this is used for a report file to correspond to
    the partial tape file */
    int main(int argc, char argv[]) / Modified by TCS */
         char          ddr_tape_name[100];
         char          ddr_partial_rpt[100];
         char          copyright_notice[100];
         long           file_position;
         char           *logname;
         /* READ IN PARAMETERS AND SET UP VARIABLES */
         memset (oracle_uid.arr, 0, sizeof(oracle_uid.arr));
    memset (oracle_pwd.arr, 0, sizeof(oracle_pwd.arr));
    strcpy (oracle_uid.arr, argv[1]);
    oracle_uid.len = strlen(oracle_uid.arr);
    strcpy (oracle_pwd.arr, argv[2]);
    oracle_pwd.len = strlen(oracle_pwd.arr);
    printf("Calling getSqlLogonString");
    logname = getSqlLogonString();
         which_tape = atoi(argv[1]);
         memset (last_run_time, 0, sizeof(last_run_time));
         if ( ( DEBUGGING ) && ( DEBUG_LEVEL > 1 ) )
         printf ("Oracle username: %s\n", oracle_uid.arr);
         printf ("Oracle password: %s\n", oracle_pwd.arr);
         printf ("Oracle username/password@database: %s\n", logname); /** Added by TCS **/
         printf ("Which Tape: %d\n", which_tape);
         hold_double = 0.0;
         hold_int = 0;
         memset (hold_char, ' ', sizeof(hold_char));
         EXEC SQL WHENEVER SQLERROR DO login_error();
    /*      EXEC SQL CONNECT :oracle_uid IDENTIFIED BY :oracle_pwd; */
         EXEC SQL CONNECT :logname ;
         printf ("Connected to ORACLE... \n");
         EXEC SQL WHENEVER SQLERROR continue;
         get_pub_dates();
         memset (ddr_tape_name, 0, sizeof(ddr_tape_name));
         memset (ddr_partial_rpt, 0, sizeof(ddr_partial_rpt));
         memset (cusip_table_name, 0, sizeof(cusip_table_name));
         memset (payment_where_clause, 0, sizeof(payment_where_clause));
         memset (rights_where_clause, 0, sizeof(rights_where_clause));
         memset (tenders_where_clause, 0, sizeof(tenders_where_clause));
         memset (s_h_meet_where_clause, 0, sizeof(s_h_meet_where_clause));
         /* SET UP VARIABLES BASED ON THE DIFFERENT FREQUENCY OF TAPE */
         switch (which_tape)
              case 0:
                   get_partial_run_time();
                   /*sprintf (ddr_tape_name,
                        "idb_tape$out:ddr_partial%1d.asc", p_count); ** Comented by TCS **/
                   sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_PARTIAL_TAPE_TABLE");
                   /*sprintf (ddr_partial_rpt,
                        "idb_tape$out:ddr_partial%1d.rpt", p_count); ** Commented by TCS **/
                   sprintf (ddr_partial_rpt,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_RPT")); /* Added by TCS */
                   get_calendar_dates();
                   freq_type_code = '0';
                   sprintf (payment_where_clause,
    "AND PYMT_PUB_DATE IS NULL \
    AND ((PYMT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND PYMT_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (PYMT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND PYMT_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   sprintf (rights_where_clause,
    "AND RGHT_PUB_DATE IS NULL \
    AND ((RGHT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND RGHT_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (RGHT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND RGHT_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   sprintf (tenders_where_clause,
    "AND TNDR_PUB_DATE IS NULL \
    AND ((TNDR_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND TNDR_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (TNDR_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND TNDR_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   sprintf (s_h_meet_where_clause,
    "AND SMTG_PUB_DATE IS NULL \
    AND ((SMTG_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND SMTG_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (SMTG_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND SMTG_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   break;
              case 3:
    /*     PARTIAL 5     */
                   get_partial_run_time();
                   p_count = 5;
                   /**sprintf (ddr_tape_name,
                        "idb_tape$out:ddr_partial%1d.asc", p_count); ** Comented by TCS **/
                   sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_ASC")); /* Added by TCS */
    /* for testing only I am using seperate TABLE     */
                   /**strcpy (cusip_table_name,
                        "IDB.DDR_PARTIAL5_TAPE_TABLE"); ** Commented by TCS **/
                   strcpy (cusip_table_name,
                        "IDB.DDR_PARTIAL_TAPE_TABLE");
                   /*sprintf (ddr_partial_rpt,
                        "idb_tape$out:ddr_partial%1d.rpt", p_count); ** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_RPT")); /* Added by TCS */
                   get_calendar_dates();
                   freq_type_code = '3';
                   sprintf (payment_where_clause,
    "AND ( (PYMT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (PYMT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   sprintf (rights_where_clause,
    "AND ((RGHT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (RGHT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   sprintf (tenders_where_clause,
    "AND ((TNDR_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (TNDR_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   sprintf (s_h_meet_where_clause,
    "AND ((SMTG_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (SMTG_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   break;
              case 1:
                   /**strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_daily_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s",getOutFileName("DDR_DAILY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_DAILY_TAPE_TABLE");
                   get_calendar_dates();
                   freq_type_code = '1';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)", pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)", pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)", pub_to_date.arr);
                   sprintf (s_h_meet_where_clause, "AND (SMTG_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR SMTG_PUB_DATE IS NULL)", pub_to_date.arr);
                   break;
              case 5:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_weekly_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name, "%s",getOutFileName("DDR_WEEKLY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_WEEKLY_TAPE_TABLE");
                   get_calendar_dates();
                   freq_type_code = '2';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   /* ram - 6/28/95 - reverted back to original criteria: */
                   /* include on weekly tape based on pub-date, regardless of */
                   /* whether in calendar or not */
                   sprintf (s_h_meet_where_clause, "AND (SMTG_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR SMTG_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   break;
              case 12:
                   /* ram - 7/13/95          */
                   /* changed monthly "6" to "12" */
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_monthly_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name, "%s", getOutFileName("DDR_MONTHLY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_MONTHLY_TAPE_TABLE");
                   freq_type_code = '3';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   break;
              case 8:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_quarterly_tape.asc");** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s",getOutFileName("DDR_QUARTERLY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_QUARTERLY_TAPE_TABLE");
                   freq_type_code = '3';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
    = TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr);               break;
              case 9:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_annual_tape.asc"); ** Comented by TCS **/
                   sprintf (ddr_tape_name,"%s", getOutFileName("DDR_ANNUAL_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_ANNUAL_TAPE_TABLE");
                   freq_type_code = '4';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') \
    OR PYMT_PUB_DATE = TO_DATE('29-OCT-1929','DD-MON-YYYY'))",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
    = TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr);               break;
              case 15:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_general_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s", getOutFileName("DDR_GENERAL_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_GENERAL_TAPE_TABLE");
                   freq_type_code = '3';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
    = TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr);               break;
              default:
                   exit (printf ("Invalid tape option: %d\n", which_tape)); /*** %s changed by TCS to %d ***/
                   break;
         if ((fp = fopen(ddr_tape_name, "w+")) == NULL)
              exit (printf ("Unable to open asc <%s> file for write access\n",
                   ddr_tape_name));
    /*     GR. Partial 5
         if (which_tape == 0 || which_tape == 3 )
              if ((pfp = fopen(ddr_partial_rpt, "w+")) == NULL)
                   exit (printf ("Unable to open asc <%s> file \
    for write access\n", ddr_partial_rpt));
         /* WRITE THE HEADER RECORD ON THE TAPE */
         memset (copyright_notice, 0, sizeof(copyright_notice));
         sprintf (copyright_notice, "COPYRIGHT (c) %.4s STANDARD & POOR'S \
    CORPORATION. ALL RIGHTS RESERVED", year.arr);
         fprintf (fp, "%-80.80sDIVIDEND%8d%17.17s ",
    copyright_notice, control_date, run_date_start.arr);
         file_position = ftell(fp);
         fprintf (fp, "\n");
         total_records = 0;
         /* GET THE SPECIAL CATEGORY RECORDS */
         get_special_codes();
         /* SELECT FROM THE DRIVER TABLE TO GET ALL THE OTHER RECORDS */
         get_master_cusip_no();
         printf("After get_master_cusip_no()");
         get_run_date_finish();
         printf("After get_run_date_finish()");
         if ( DEBUGGING )
              printf ("initial cusip = %s\n", init_cusip_number);
              printf ("final cusip = %s\n", final_cusip_number);
              printf ("record type is %c\n", rec_type_code);
         /* WRITE THE TRAILER RECORD */
         fprintf (fp, "%8d%-17.17s%07d%-9.9s1%-9.9s%c\n", control_date,
    run_date_finish.arr, total_records, init_cusip_number , final_cusip_number,
    rec_type_code);
         /* re-wind and add to the header record ... */
         rewind(fp);
         fseek(fp, file_position - 33, 0);
         fprintf (fp, "%07d%-9.9s1%-9.9s%c", total_records, init_cusip_number,
    final_cusip_number, rec_type_code);
         fclose(fp);
    /*     GR Partial 5
         if (which_tape == 0 || which_tape == 3 )
              fclose(pfp);
         printf ("\nDONE: %07d%-9.9s1%-9.9s%c\n", total_records, init_cusip_number,
    final_cusip_number, rec_type_code);
    return (0); /*** Added by TCS ***/
    void prepare_declare_oracle_cursors() /* Modified by TCS */
         /* We'll us dynamic sql to get the appropriate where clause but use */
         /* a bind variable for the master cusip number. So we prepare and */
         /* declare get_issues, get_payments, get_tenders, get rights, and */
         /* get_s_h_meetings cursors only once, outside the driving loop. */
         EXEC SQL BEGIN DECLARE SECTION;
              /**** TCS Comment begins as per the change request ****
              VARCHAR          sql_stmt1[1500];*/     /* issues */
              /*VARCHAR          sql_stmt2[3000];     *//* payments */
              /*VARCHAR          sql_stmt3[500];          *//* tenders */
              /*VARCHAR          sql_stmt4[500];          *//* rights */
              /*VARCHAR          sql_stmt5[500];          *//* s_h_meetings */
              /**** TCS Add begins as per the change request ****/
              VARCHAR          sql_stmt1[2000];     /* issues */
              VARCHAR          sql_stmt2[4000];     /* payments */
              VARCHAR          sql_stmt3[1000];     /* tenders */
              VARCHAR          sql_stmt4[1000];     /* rights */
              VARCHAR          sql_stmt5[1000];     /* s_h_meetings */
              /**** TCS Add ends ****/
         EXEC SQL END DECLARE SECTION;
         /* prepare and declare the get_issues cursor */
         memset (sql_stmt1.arr, 0, sizeof(sql_stmt1.arr));
         sprintf (sql_stmt1.arr, "SELECT \
    A.ISSU_PAR_VALUE, \
    DECODE (A.ISSU_MARKET_SYMBOL||A.ISSU_NASDAQ,'OTCY','NASD', A.ISSU_MARKET_SYMBOL), \
    A.ISSU_C_RATE, A.ISSU_C_FREQ, A.ISSU_C_NEW_AMOUNT, A.ISSU_C_NEW_Q1, \
    A.ISSU_C_NEW_Q2, A.ISSU_C_NEW_Q3, A.ISSU_C_OLD_AMOUNT, A.ISSU_C_OLD_Q1, \
    A.ISSU_C_OLD_Q2, A.ISSU_C_OLD_Q3, A.ISSU_CURRENCY, \
    A.ISSU_UPD_HIS, A.ISSU_COMMENT, A.TAX_EXEMPT_FLAG,\
    B.SEC_TYPE_CODE, B.ACQ_BY_IND, B.ACQ_ISSUER_NO, \
    rtrim(substr(B.ACQ_ISSUER_DESCR,1,30)), \
    B.INDEX_CODE, B.TRFR_AGT_CODE, B.NY_AGT_CODE, B.TICKER_SYMBOL, \
    B.TICKER_SYMBOL2, \
    rtrim(substr(C.ISSR_DDR_ISSUER_DESCR,1,60)), \
    rtrim(substr(E.ISSUE_DESCR,1,30)), \
    rtrim(substr(D.ISSUER_DESCR1,1,30)), \
    F.TRFR_DAYS \
    FROM IDB.DDR_ISSUES A, IDB.DDR_ISSUES_2 B, IDB.DDR_ISSUERS C, \
    BLIS.CUSIP_ISSUERS D, BLIS.CUSIP_ISSUES E, IDB.DDR_TRANSFER F \
    WHERE A.ISSU_CUSIP_NO = :master_cusip_no \
    AND A.ISSU_CUSIP_NO = B.ISSU_CUSIP_NO(+) \
    AND SUBSTR(A.ISSU_CUSIP_NO, 1, 6) = C.ISSR_ISSUER_NO(+) \
    AND SUBSTR(A.ISSU_CUSIP_NO, 1, 6) = D.ISSUER_NO \
    AND A.ISSU_CUSIP_NO = E.CUSIP_NO \
    AND A.ISSU_TRANSFER_CODE = F.TRFR_TR_CD(+) ");
         sql_stmt1.len = strlen(sql_stmt1.arr);
         EXEC SQL PREPARE ISSUES FROM :sql_stmt1;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing ISSUES");
         EXEC SQL DECLARE ISSUES_C CURSOR FOR ISSUES;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring ISSUES");
         /* now the get_payments cursor */
         memset (sql_stmt2.arr, 0, sizeof(sql_stmt2.arr));
         sprintf (sql_stmt2.arr, "SELECT \
    a.PYMT_RP_DIV, \
    a.PYMT_RP_DEC, \
    a.PYMT_RP_EXD, \
    a.PYMT_RP_REC, \
    a.PYMT_RP_PAY, \
    a.PYMT_RP_DUE, \
    a.PYMT_RP_TAX, \
    a.PYMT_RP_ANN, \
    a.PYMT_PRP_DIV, \
    a.PYMT_PRP_DEC, \
    a.PYMT_PRP_EXD, \
    a.PYMT_PRP_REC, \
    a.PYMT_PRP_PAY, \
    a.PYMT_PRP_DUE, \
    a.PYMT_PRP_TAX, \
    a.PYMT_PRP_ANN, \
    NVL(a.PYMT_SEQ_NO,0), \
    TO_CHAR(a.PYMT_DECLARED, 'YYMMDD'), \
    TO_CHAR(a.PYMT_EX_DATE, 'YYMMDD'), \
    TO_CHAR(a.PYMT_STK_REC, 'YYMMDD'), \
    TO_CHAR(a.PYMT_TRANSFER_DATE, 'YYMMDD'), \
    TO_CHAR(a.PYMT_PAYABLE, 'YYMMDD'), \
    a.PYMT_CODES, \
    NVL(a.PYMT_CASH_DIVD,0.0), \
    NVL(b.ORDINARY_INCOME,0.0), \
    NVL(b.CAP_GAINS,0.0), \
    NVL(b.SHORT_TM_CAP_GAINS,0.0), \
    NVL(b.LONG_TM_CAP_GAINS,0.0), \
    NVL(b.RETURN_OF_CAPITAL,0.0), \
    b.STK_DIVD_IND, \
    NVL(a.PYMT_STK_DIVD,0), \
    b.FRAC_IN_CASH_STK_IND, \
    NVL(b.FRAC_IN_CASH_PRICE,0.0), \
    NVL(a.PYMT_SPLIT_NEW,0), \
    NVL(a.PYMT_SPLIT_OLD,0), \
    TO_CHAR(a.PYMT_DB_DATE, 'YYMMDD'), \
    NVL(b.ARREARS_PAID,0.0), \
    NVL(b.ARREARS_DUE,0.0), \
    b.SPINOFF_IND, \
    b.SPINOFF_ISSUE_NO, \
    b.SPINOFF_ISSUER_DESCR, \
    b.SPINOFF_ISSUE_DESCR, \
    NVL(b.TAX_CODE,0), \
    NVL(b.TAX_CODE_2,0), \
    NVL(b.OLD_SEQ_NO,0), \
    b.ORDINARY_INCOME_CODE, \
    b.CAP_GAINS_CODE, \
    b.SHORT_TM_CAP_GAINS_CODE, \
    b.LONG_TM_CAP_GAINS_CODE, \
    b.RETURN_OF_CAPITAL_CODE, \
    TO_CHAR(b.CALL_DATE, 'YYMMDD'), \
    NVL(b.CALL_PRICE,0.0), \
    b.CALL_PRICE_CURRENCY, \
    b.CALL_AGT_NO, \
    b.ACCRUED_DIVD_IND, \
    TO_CHAR(a.PYMT_DB_DATE, 'YYMMDD'), \
    a.PYMT_DB_TEXT, \
    a.PYMT_DVD_TEXT, \
    a.PYMT_YEAR, \
    TO_CHAR(a.PYMT_STK_REC, 'fmMon dd'), \
    TO_CHAR(a.PYMT_DB_DATE, 'fmMon dd'), \
    b.NY_CALL_AGT_NO, \
    NVL(b.FOREIGN_TAX_RATE, 0.0), \
    NVL(b.NET_RATE, 0.0), \
    NVL(b.FEE, 0.0), \
    NVL(b.COMMISSION, 0.0), \
    a.PYMT_CASH_DIVD_FNS, \
    a.PYMT_STK_DIVD_FNS, \
    a.PYMT_DECLARED_FNS, \
    a.PYMT_EX_DATE_FNS, \
    a.PYMT_STK_REC_FNS, \
    a.PYMT_PAYABLE_FNS, \
    a.PYMT_SPLIT_FNS, \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_PUB_DATE, 'YYYYMMDD')), 0), \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_TRANSFER_DATE, 'YYYYMMDD')), 0), \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_STK_REC, 'YYYYMMDD')), 0), \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_DB_DATE, 'YYYYMMDD')), 0) \
    FROM IDB.DDR_PAYMENTS A, IDB.DDR_PAYMENTS_2 B \
    WHERE A.PYMT_CUSIP_NO = :master_cusip_no \
    AND A.PYMT_CUSIP_NO = B.PYMT_CUSIP_NO (+) \
    AND A.PYMT_SEQ_NO = B.PYMT_SEQ_NO (+) \
    AND NVL(INSTR(A.PYMT_CODES,'CO'),0) NOT IN (1,3,5,7,9,11) ");
         strcat (sql_stmt2.arr, payment_where_clause);
         sql_stmt2.len = strlen(sql_stmt2.arr);
         EXEC SQL PREPARE PAYMENTS FROM :sql_stmt2;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing PAYMENTS");
         EXEC SQL DECLARE PAYMENTS_C CURSOR FOR PAYMENTS;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring PAYMENTS");
         /* now the get_tenders cursor */
         memset (sql_stmt3.arr, 0, sizeof(sql_stmt3.arr));
    /* FXL ADD SUBSTR to tndr_price_qual: substr(A.TNDR_PRICE_QUAL,1,14), 3/23/99,
    to to_number 3/29/99 */
         sprintf (sql_stmt3.arr, "SELECT \
    B.TNDR_AGT_NO, \
    B.NY_AGT_NO, \
    TO_CHAR(A.TNDR_TENDER_DATE, 'YYMMDD'), \
    A.TNDR_PRICE, \
    to_number(A.TNDR_PRICE_QUAL), \
    A.TNDR_TE_SIZE, \
    TNDR_TE_TEXT_1 \
    FROM IDB.DDR_TENDERS A, IDB.DDR_TENDERS_2 B \
    WHERE TNDR_CUSIP_NO = :master_cusip_no \
    AND TNDR_CUSIP_NO = TNDR_ISSUE_NO(+) \
    AND A.TNDR_TENDER_DATE = B.TNDR_TENDER_DATE(+) ");
         strcat (sql_stmt3.arr, tenders_where_clause);
         sql_stmt3.len = strlen(sql_stmt3.arr);
         EXEC SQL PREPARE TENDERS FROM :sql_stmt3;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing TENDERS");
         EXEC SQL DECLARE TENDERS_C CURSOR FOR TENDERS;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring TENDERS");
         /* now the get_rights cursor */
         memset (sql_stmt4.arr, 0, sizeof(sql_stmt4.arr));
    /* ADD TO_CHAR(A.RGHT_DB_DATE, 'YYMMDD') */
         sprintf (sql_stmt4.arr, "SELECT \
    B.NO_RIGHTS_ISSUED, \
    B.SHS_REQ_FOR_PURCH, \
    B.RGHTS_REQUIRED, \
    B.QTY_SHS_PURCHASED, \
    B.TYPE_SHS_ELIGIBLE, \
    B.NEW_SHS_CUSIP_NO, \
    B.NEW_CO_ISSUER_DESCR, \
    TO_CHAR(A.RGHT_RECORD, 'YYMMDD'), \
    TO_CHAR(A.RGHT_EX_DATE, 'YYMMDD'), \
    TO_CHAR(B.NYC_RECORD_DATE, 'YYMMDD'), \
    TO_CHAR(A.RGHT_EXPIRE, 'YYMMDD'), \
    TO_CHAR(A.RGHT_DB_DATE, 'YYMMDD'), \
    A.RGHT_PRICE, \
    NVL(A.RGHT_RECORD_FNS,' '), \
    NVL(A.RGHT_EXPIRE_FNS,' '), \
    NVL(A.RGHT_EX_DATE_FNS,' '), \
    NVL(A.RGHT_PRICE_FNS,' '), \
    NVL(A.RGHT_BASIS_FNS,' '), \
    A.RGHT_FOOTNOTE, \
    B.US_INELIGIBILITY_IND, \
    B.RGHT_TRFR_IND \
    FROM IDB.DDR_RIGHTS A, IDB.DDR_RIGHTS_2 B \
    WHERE RGHT_CUSIP_NO = :master_cusip_no \
    AND RGHT_CUSIP_NO = RGHT_ISSUE_NO(+) \
    AND A.RGHT_RECORD = B.RGHT_RECORD_DATE(+) ");
         strcat (sql_stmt4.arr, rights_where_clause);
         sql_stmt4.len = strlen(sql_stmt4.arr);
         EXEC SQL PREPARE RIGHTS FROM :sql_stmt4;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing RIGHTS");
         EXEC SQL DECLARE RIGHTS_C CURSOR FOR RIGHTS;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring RIGHTS");
         /* ram - added logic on 7/18/95 */
         /* for the standard footnotes cursor */
         EXEC SQL DECLARE STANDARD_FOOTNOTES_C CURSOR
         FOR
         SELECT SFTN_S_F_TEXT, SFTN_S_F_TYPE
         FROM IDB.DDR_STANDARD_FOOTNOTES
         WHERE SFTN_S_F_TYPE = :standard_footnote_type;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring STANDARD_FOOTNOTES");
         /* now the issue footnotes cursor */
         EXEC SQL DECLARE ISSUE_FOOTNOTES_C CURSOR
         FOR
         SELECT FTNT_F_TEXT, FTNT_F_TYPE
         FROM IDB.DDR_FOOTNOTES
         WHERE FTNT_CUSIP_NO = :master_cusip_no
         AND FTNT_SYMBOL = :footnote_symbol
         AND FTNT_YEAR IS NULL;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring ISSUE_FOOTNOTES");
         /* now the payment footnotes cursor */
         EXEC SQL DECLARE PAYMENT_FOOTNOTES_C CURSOR
         FOR
         SELECT FTNT_F_TEXT, FTNT_F_TYPE
         FROM IDB.DDR_FOOTNOTES
         WHERE FTNT_CUSIP_NO = :master_cusip_no
         AND FTNT_SYMBOL = :footnote_symbol
         AND FTNT_YEAR = :footnote_year;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring PAYMENT_FOOTNOTES");
         /* now the get_s_h_meetings cursor */
         /* ONLY for certain tape types. */
    /*     GR PARTial 5
         if (which_tape == 0 || which_tape == 3 || which_tape == 1 || which_tape == 5)
              memset (sql_stmt5.arr, 0, sizeof(sql_stmt5.arr));
              /* ram - 6/15/95 - changed ORigunal to smtg */
              /* TO_CHAR(ORIGINAL_REC_DATE, 'YYMMDD'), \ */
              sprintf (sql_stmt5.arr, "SELECT \
    TO_CHAR(SMTG_MTG_DATE, 'YYMMDD'), \
    TO_CHAR(SMTG_REC_DATE, 'YYMMDD'), \
    SMTG_FOOTNOTE \
    FROM IDB.DDR_S_H_MEETINGS \
    WHERE SMTG_CUSIP_NO = :master_cusip_no ");
              strcat (sql_stmt5.arr, s_h_meet_where_clause);
              sql_stmt5.len = strlen(sql_stmt5.arr);
              EXEC SQL PREPARE S_H_MEET FROM :sql_stmt5;
              if (sqlca.sqlcode)
                   sql_error (SYSERR, sqlca.sqlcode,
                        "Error in preparing S_H_MEET");
              EXEC SQL DECLARE S_H_MEET_C CURSOR FOR S_H_MEET;
              if (sqlca.sqlcode)
                   sql_error (SYSERR, sqlca.sqlcode,
                        "Error in declaring S_H_MEET");
         } /* end of if (which_tape == 0 || which_tape == 1 || which_tape == 5) */
    /* replaced get_calendar_dates function with use of PLSQL - ram - 5/24/95 */
    void get_calendar_dates() /* Modified by TCS */
         /* put first and last calendar dates into global ints */
         /* first_cal_date and last_cal_date (YYYYMMDD) using */
         /* ddr package function get_business_days. */
         /* The package object ddr is owned by idb, so I'll */
         /* specify this, just in case accounts other than idb */
         /* run this code. (EXECUTE priviledge is granted to */
         /* "idb_user" role.) */
    EXEC SQL BEGIN DECLARE SECTION;
              int          cal_start;
              int          cal_end;
              int          return_val;
    EXEC SQL END DECLARE SECTION;
         /* initialize destination globals */

    You actually need to run it with "check -access"; memuse and leaks won't help with the crash, which happens because of illegal memory access. Hopefully, "check -access" will help you to locate the bad guy, but that's not panacea either.
    To be precise:
    - start dbx
    $ dbx <your app>
    - issue
    (dbx) check -access
    (dbx) run
    and wait for dbx to stop and report suspicious memory access.

  • Getting core dump when using EXEC SQL CLOSE

    In my pro*c program , i have used a cursor to fetch the set of accounts.Once cursor is opened , code will perform set
    of operation using fetched data and then cursor is closed. Between open and closing of cursor , i have used 23 EXEC
    SQL CLOSE. For example i am copying the value of a to b using strlcpy between fetch and close cursor statement.If
    returned value from strlcpy is greater than size of destination variable, then flow should not proceed , in that case I will
    close the cursor using EXEC SQL CLOSE and return the flow to calling program. Similarly i have closed the cursor at
    another 22 locations.
    When i compile the code and run binary the core dump occurs. On analyzing the core it shows
    t@null (l@8) terminated by signal SEGV (no mapping at the fault address)
    0xffffffffffffffff: <bad address 0xffffffffffffffff>
    dbx: core file read error: address 0xfc4ffe48 not in data space
    Current function is dbMtBaseClass::Pswd_Change
    7860 sqlcxt(&_dbMtCtx, &sqlctx, &sqlstm, &sqlfpn);
    if I remove any of the three EXEC SQL CLOSE commands , core dump does not occurs.
    It looks strange.Please help me to resolve the issue.

    In my pro*c program , i have used a cursor to fetch the set of accounts.Once cursor is opened , code will perform set
    of operation using fetched data and then cursor is closed. Between open and closing of cursor , i have used 23 EXEC
    SQL CLOSE. For example i am copying the value of a to b using strlcpy between fetch and close cursor statement.If
    returned value from strlcpy is greater than size of destination variable, then flow should not proceed , in that case I will
    close the cursor using EXEC SQL CLOSE and return the flow to calling program. Similarly i have closed the cursor at
    another 22 locations.
    When i compile the code and run binary the core dump occurs. On analyzing the core it shows
    t@null (l@8) terminated by signal SEGV (no mapping at the fault address)
    0xffffffffffffffff: <bad address 0xffffffffffffffff>
    dbx: core file read error: address 0xfc4ffe48 not in data space
    Current function is dbMtBaseClass::Pswd_Change
    7860 sqlcxt(&_dbMtCtx, &sqlctx, &sqlstm, &sqlfpn);
    if I remove any of the three EXEC SQL CLOSE commands , core dump does not occurs.
    It looks strange.Please help me to resolve the issue.

  • Report Server: RTF format on Solaris gives Core Dump

    We have Report Server 6.0.8.11.2 on Solaris.
    We are running reports thru URL and it is working fine for PDF and HTML. When we specify the desformat as RTF it gives Segmentation Fault Core dumped.
    We have tried using rwcli60 thru command line and it gives the same error, while PDF and HTML format is fine.
    Is there a patchset for Solaris for the same or are we missing on some parameter?
    - Tarun

    Hi I am a beginner to solaris and am trying to install Sun ONE Application Server on the virtual machine which runs Solaris10 on X86. When I try to launch the executable bin file, i get a message saying Killed.
    It seems like it is not initiating the executable. ANy comments would be appreciated
    thanks
    nash

  • Webcenter crashing with core dump

    Hi All,
    Once in a while Webcenter(11.1.1.5) is crashing and generating core dump and the error message is same evertime. We tried to research on addPartialTriggerListeners and found this kind of behaviour is a bug in apache trinidad version 1.2.5-core and is fixed in 1.2.7-core. But the webcenter we are using as version 1.2.12. Also the issue seems to be comming from webcenter/adf framework itself as none of our code uses addPartialTriggerListeners.
    Please help us resolve this issue as we are getting this issue in our production environment and we need to fix this asap.
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0xffffffff7318caf0, pid=19921, tid=149
    # JRE version: 6.0_29-b11
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.4-b02 mixed mode solaris-sparc compressed oops)
    *# Problematic frame:*
    +*# J  org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTriggerListeners(Ljavax/faces/component/UIComponent;[Ljava/lang/String;)V*#+
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x00000001145ba000): JavaThread "[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon [_thread_in_Java, id=149, stack(0xfffffffea6800000,0xfffffffea6900000)]
    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000
    Registers:
    G1=0xffffffff503d5098 G2=0x00000001145ba000 G3=0xffffffff73516254 G4=0x00000000000000d1
    Thanks

    Oracle Support has a thread and work around for this.
    DocID 1514563.1
    Applies to:
    Oracle WebCenter Portal - Version 11.1.1.5.0 and later
    Information in this document applies to any platform.
    Purpose
    Java HotSpot Virtual Machine, a core component of Oracle's Java SE platform, known to core dump (resulting in a server crash) while optimizing certain methods in Oracle WebCenter.
    If you can switch to JRockit you can get around it also. Otherwise follow the note and setup the appropriate pre-compile excludes in your WC startup script.

Maybe you are looking for

  • Installed Jam Pack but see no new loops in Garageband loop browser. Why not?

    I successfully installed Jam Pack but don't see new loops in Garageband loop browser. Is there some extra step I'm supposed to do? Before, I had about 57 Rock/Blues loops, and I still have just that. I had 14 instruments under All Drums, and guess wh

  • ITunes won't open up after updating...

    oh no. it won't. i download the update, i install it succesfully, i open up iTunes and...that's it, it bumps in the dock once and then it disappears without opening up. Then the only thing that can restore a working version of iTunes is deleting it w

  • Problem in using FilenameFilter with FileDialog

    perhaps, i dont know how to use FilenameFilter with FileDialog because the following approach doesn' work FileDialog fd=new FileDialog(myframe,"Select an image"); fd.setFilenameFilter(new filefilter());                                                

  • Content Kept on Internal or External Drive

    When I loaded FCP Studio, I save the 46GB (or so) of the content on my MBP internal HD. Is it too late to transfer this over to my external HD ??? or is this even possible? Thanks

  • Different colours for accordion

    I would like to be able to have different accordion panels in my site, each using colours relevant to the page topic. So, for example, all pages about our services would use a green font, all pages about our research department would use red and so o