Simple multiversion test crashes (db-5.3.15)

Hi!
I wrote a small test for a multiversion database (using the C++ API). The test starts a transaction with DB_TXN_SNAPSHOT and reads/writes a key-value pair foo=bar. It then sleeps 10 seconds to allow starting a second instance of the program. The first instance succeeds, with this output:
$ mvcctest
get key foo
put key foo
successfully wrote key foo=bar
waiting 10 seconds...
$
The second instance which I started in gdb to get the stacktrace produces this output/stacktrace:
(gdb) r
Starting program: /home/stefan/src/sandbox/bdb-trans/mvcctest
[Thread debugging using libthread_db enabled]
get key foo
put key foo
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b5bd01 in __memp_fput (dbmfp=0x605230, ip=0x0, pgaddr=0x0, priority=DB_PRIORITY_UNCHANGED)
at ../src/mp/mp_fput.c:125
125 infop = &dbmp->reginfo[bhp->region];
(gdb) bt
#0 0x00007ffff7b5bd01 in __memp_fput (dbmfp=0x605230, ip=0x0, pgaddr=0x0, priority=DB_PRIORITY_UNCHANGED)
at ../src/mp/mp_fput.c:125
#1 0x00007ffff79f3cce in __bam_get_root (dbc=0x605a10, root_pgno=1, slevel=1, flags=12802, stack=0x7fffffffd75c)
at ../src/btree/bt_search.c:235
#2 0x00007ffff79f3ed6 in __bam_search (dbc=0x605a10, root_pgno=1, key=0x7fffffffdbf0, flags=12802, slevel=1, recnop=0x0,
exactp=0x7fffffffd934) at ../src/btree/bt_search.c:309
#3 0x00007ffff79dce1c in __bamc_search (dbc=0x605a10, root_pgno=1, key=0x7fffffffdbf0, flags=14, exactp=0x7fffffffd934)
at ../src/btree/bt_cursor.c:2804
#4 0x00007ffff79dad0b in __bamc_put (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14, pgnop=0x7fffffffd9b0)
at ../src/btree/bt_cursor.c:2143
#5 0x00007ffff7adf03f in __dbc_iput (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14)
at ../src/db/db_cam.c:2136
#6 0x00007ffff7adee8d in __dbc_put (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14)
at ../src/db/db_cam.c:2049
#7 0x00007ffff7ad78dd in __db_put (dbp=0x604af0, ip=0x0, txn=0x605390, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=0)
at ../src/db/db_am.c:583
#8 0x00007ffff7af20c8 in __db_put_pp (dbp=0x604af0, txn=0x605390, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=0)
at ../src/db/db_iface.c:1661
#9 0x00007ffff79bc576 in Db::put (this=0x604a50, txnid=0x605fa0, key=0x7fffffffdbf0, value=0x7fffffffdc20, flags=0)
at ../lang/cxx/cxx_db.cpp:367
#10 0x0000000000400caf in main () at mvcctest.cc:60
I am unsure if this is my fault (because the testcase does something it should not do), or if this is a Berkeley DB bug.
#include <sys/stat.h>
#include <sys/types.h>
#include <assert.h>
#include <db_cxx.h>
#include <string.h>
#include <stdlib.h>
#include <string>
using std::string;
int
main()
mkdir ("bdb", 0770);
DbEnv *db_env = new DbEnv (DB_CXX_NO_EXCEPTIONS);
int ret = db_env->open ("bdb",
DB_CREATE | /* on-demand create */
DB_INIT_MPOOL | /* shared memory buffer subsystem */
DB_INIT_TXN | /* transactions */
DB_INIT_LOG | /* logging */
DB_INIT_LOCK | /* locking */
DB_MULTIVERSION,
0);
assert (ret == 0);
db_env->set_flags (DB_MULTIVERSION, 1);
Db *db = new Db (db_env, 0);
db->set_flags (DB_DUP); // allow duplicate keys
// Open the database
u_int32_t oFlags = DB_CREATE | DB_AUTO_COMMIT | DB_MULTIVERSION; // Open flags;
db->open (NULL, // Transaction pointer
"db", // Database name
NULL, // Optional logical database name
DB_BTREE, // Database access method
oFlags, // Open flags
0); // File mode (using defaults)
DbTxn* transaction;
ret = db_env->txn_begin (NULL, &transaction, DB_TXN_SNAPSHOT);
assert (ret == 0);
char foo[4] = "foo";
char bar[4] = "bar";
Dbt key (foo, 3);
Dbt new_data (bar, 3);
Dbt data;
printf ("get key foo\n");
ret = db->get (transaction, &key, &data, 0);
if (ret == 0)
printf ("successfully read key foo\n");
printf ("put key foo\n");
ret = db->put (transaction, &key, &new_data, 0);
if (ret == 0)
printf ("successfully wrote key foo=bar\n");
printf ("waiting 10 seconds...\n");
sleep (10);
ret = transaction->commit (0);
assert (ret == 0);
ret = db->close (0);
delete db;
db = NULL;
assert (ret == 0);
ret = db_env->close (0);
delete db_env;
db_env = NULL;
assert (ret == 0);
}

Yes, we have the same error:
com.sleepycat.dbxml.XmlException: std::exception thrown from C++ API: bad allocation: Unknown error, errcode = INTERNAL_ERROR
     at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
     at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
com.sleepycat.dbxml.XmlException, errcode = NO_MEMORY_ERROR
     at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
     at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
The version we use is 2.2.13, can anyone give suggestions to resolve it?
Regards,
Jane

Similar Messages

  • Best way to do a simple Boolean test?

    Hello All,
      Trying to do a simple Boolean test, but it is proving to be more complicated than I would have expected.  Hoping that I am missing something simple.
    I have a Labview code module that provides a Boolean value for the output.  I want to evaluate this value and provide pass/fail results to the report.  Sounds simple, but here is what I am running into:
    -The built-in NI step type "Pass/Fail Test" will evaluate the Boolean directly with True=Pass, and False=Fail.  This would be fine, except that I have situations where I need False to equal Pass.  I've read a few posts that speak of inverting or negating the Boolean result, but they all involve passing the result to a parameter or variable, and then evaluating it outside of the test step.  This adds several layers that I don't think I should need.
    -I have read a post that suggested I convert the Boolean to a numeric inside of the code module.  This does indeed make sense, but this is not practical in my situation because of the scale and implementation of my code modules.  I use custom type definitions for controls and indicators from a Labview project, and would have to create a new control/indicator for every one if I wanted to change the data type.  
    -Next logical step was to see if the "Numeric Limit Test" would recognize a Boolean.  Turns out it doesn't.     
    -After this, I looked into creating a custom step type.  This would probably be the most useful, but it is beyond my current ability to do so.  I got as far as making a copy of the built in step type and putting it in the custom "MyTypes" directory, but I have made very little progress in editing it to make it a work.  Additionally, I've read a few posts that recommend avoiding custom step types.  
    Hoping someone can point me in the right direction.  Please advise.
    Thanks,
    GSinMN    
    Solved!
    Go to Solution.

    You could change the Data Source based on what value you want.  Since there doesn't appear to be an logical XOR, you will need to use a case statement.  For example, you could do:
    Locals.Desired? Step.Result.PassFail:!Step.Result.PassFail
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Error while running simple JAXB test class

    I am new to JAXB and trying to run simple tutorial code.
    I created Java project and added required jar files in a classpath.
    But I get error as
    "com.jaxbtest" doesnt contain ObjectFactory.class or jaxb.index
    I am using Eclipse and I have added these external jars in build path as well as in "Open Run Dialog" classpath.
    Thank you in advance.
    YB

    Hi Timo,
    Im using JDev version 11.1.1.6.0.
    I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
    Manifest-Version: 1.0
    Class-Path: lib/identitystore.jar
    lib/adfm.jar
    lib/groovy-all-1.6.3.jar
    lib/adftransactionsdt.jar
    lib/adf-dt-at-rt.jar
    lib/adfdt_common.jar
    lib/adflibrary.jar
    lib/xmlparserv2.jar
    lib/db-ca.jar
    lib/jdev-cm.jar
    lib/ojmisc.jar
    lib/commons-el.jar
    lib/jsp-el-api.jar
    etc...
    So I expect the library references should be resolved looking at the manifest file.
    Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
    -classpath
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
    How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
    Thanks,
    Sapna

  • Extremely simple photo gallery crashes after few tens of pics viewed... (ipad)

    Images are JPG, 300 - 350kb each, the thing crashes every time! not to mention that in future it was planned to pload few swf's instead of few jpgs there...
    package
        import flash.display.*;
        import flash.geom.Matrix;
        import flash.utils.*;
        import flash.net.URLRequest;
        import flash.events.TransformGestureEvent;
        import flash.system.Capabilities;
        import flash.system.TouchscreenType;
        import flash.ui.Multitouch;
        import flash.ui.MultitouchInputMode;
        import flash.events.*;
        import flash.utils.getDefinitionByName;
        import com.greensock.TweenLite;
        import com.greensock.easing.*;
        public class Base extends Sprite
            var pageCounter = 1;
            var controlsoff = false;
            var activePage;
            var previousPage;
            var total = 70;
            public function Base()
                loadNewPage("next");
                nextp.visible = false;
                prevp.visible = false;
                btn1.buttonMode = true;
                btn1.addEventListener(MouseEvent.CLICK, openbook);
            function openbook(evt:MouseEvent):void
                pageCounter++;
                loadNewPage("next");
                btn1.visible = false;
                arrow1.visible = false;
                nextp.visible = true;
                prevp.visible = true;
                nextp.buttonMode = true;
                prevp.buttonMode = true;
                nextp.addEventListener(MouseEvent.CLICK, slidenext);
                prevp.addEventListener(MouseEvent.CLICK, slideback);
            function loadNewPage(direction)
                previousPage = activePage;
                var loader = new Loader();
                loader.load(new URLRequest("full/"+pageCounter+".jpg"));
                loader.x = (pageCounter-1)*768;
                //newpage.cacheAsBitmap = true;
                activePage = loader;
                container.addChild(loader);
                TweenLite.to(container,1, {x:-(pageCounter-1)*768, delay:.5, ease:Cubic.easeOut, onComplete:removePage});
            function removePage()
                if (previousPage)
                    container.removeChild(previousPage);
                    previousPage.unload();
                    previousPage = null;
            // ----------------------------------------------- sliding to the next page  ------------------------------------------
            function slidenext(evt:MouseEvent):void
                if (controlsoff == false)
                    controlsoff = true;
                    pageCounter++;
                    setTimeout(function() {
                    controlsoff = false;
                    }, 1000);
                    loadNewPage("next");
                    if (pageCounter==total) {
                        nextp.visible = false;
                    prevp.visible = true;
            // ----------------------------------------------- sliding to the previous page  ------------------------------------------
            function slideback(evt:MouseEvent):void
                if (controlsoff == false)
                    controlsoff = true;
                    pageCounter--;
                    setTimeout(function() {
                    controlsoff = false;
                    }, 1000);
                    loadNewPage("prev");
                    if (pageCounter==1) {
                        prevp.visible = false;
                        nextp.visible = false;
                        btn1.visible = true;
                        arrow1.visible = true;

    Can't test this right now, but you keep creating new loaders, and those loaders all have a loader.content.  Can you keep a reference to them and then null those out?
    loader.content=null;
    container.removeChild(loader);
    loader=null;
    etc.
    Might help to see which object is hanging around.  It definitely sounds like a memory issue, though.  Something is not being cleaned up...

  • Simple UI test

    I've managed to get check boxes working. No vast feat I know but I'm happy with it!
    Feast your eyes on the incredible red or grey box script!
    /// simple UI script that creates an image and fills it red or grey
    preferences.rulerUnits = Units.PIXELS
    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,280,250],"+
    "panel0:Panel{bounds:[10,10,170,140] , text:'Fill that box ' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
    "redcheck:Checkbox{bounds:[30,30,120,51] , text:'Change to red' },"+
    "exit:Button{bounds:[30,90,130,110] , text:'Cancel' },"+
    "fill:Button{bounds:[30,60,130,80] , text:'Fill it!' },"+
    "},"+
    var ColorRef = new SolidColor;
    ColorRef.rgb.hexValue="A6A6A6"
    var win = new Window(dlg,'Simple Window');
    win.center();
    win.panel0.exit.onClick = function(){
    win.close(1);
    win.panel0.redcheck.onClick = function(){
      if (win.panel0.redcheck.value){
         ColorRef.rgb.hexValue="DD0022";
      } else {
         ColorRef.rgb.hexValue="A6A6A6";
    win.panel0.fill.onClick = function(){
    var docRef = documents.add(100, 100, 72.0);
    app.activeDocument.selection.fill(ColorRef)
    win.close(1);
    win.show();

    Are you using LabVIEW? If so perform the following:  I did this on the TS 2012 and LV 2012.
    1.) Right click on the button lableled 'ENTRYPOINT1] and select Advanced-> Enable State -> Disabled & Greyed
    2.) Now in the code open the ConfigureSequenceFileView Manager.vi
    In the first ConnectCommand invoke node,the one where you are setting 'CommandKind_ExecutionEntryPoints_Set' with Index 0.  This would be the Test UUTs execution entry point.
    Set the 'opts' parameter to 0x4.  Here is the help on the options parameters:
    CommandConnection_EnableImage–(Value: 0x8) The connection sets the image on the connected control.
    CommandConnection_IgnoreCaption–(Value: 0x2) The connection does not set the caption on the connected control.
    CommandConnection_IgnoreEnable–(Value: 0x4) The connection does not enable or disable the connected control.
    CommandConnection_IgnoreVisible–(Value: 0x1) The connection does not change the visibility of the connected control.
    CommandConnection_NoOptions–(Value: 0x0) No options.
    So my disabling the button in LabVIEW and 'ignoring' it via the 0x4 parameter should work.  Otherwise without the 0x4 it seems to ignore the LabVIEW setting that you actually disabled the button.
    Good luck,
    PH

  • Help creating a simple function testing conditions in 2 columns

    I want to create a simple function which tests if a value is found in one of two columns:
    If MyValue is in columnA or ColumnB then True ELSE False
    Any ideas?

    Ok, This is the deal. This has been kicking my butt all day. So here is the exact table names and view names and all the columns involved.
    The table I am inserting into only after I determine that the concatenated string is not there either "forward" or "backwards."
    RPT_DS1_ALOC_ZLOC_REVERSE_VW:
    ALOC VARCHAR2(8)                 Data looks like 'AFD32GD2'
    ZLOC VARCHAR2(8)                 Data looks like 'AFD55GDF'
    MASTER_ROUTE_NAME VARCHAR(17)      Data looks like 'AFD32GD2-AFD55GDF'
    REVERSED       VARCHAR(17)      Data looks like 'AFD55GDF-AFD32GD2'
    This view is built off another table that has only the ALOC and ZLOCsSELECT * FROM RPT_DS1_ALOC_ZLOC_REVERSE_VW WHERE ROWNUM <=5;
    MASTER_ROUTE_NAME     REVERSED          ALOC          ZLOC
    ABDLFLXA-ABDLFLXA     ABDLFLXA-ABDLFLXA     ABDLFLXA     ABDLFLXA
    AGSTGAAU-AGSTGAAU     AGSTGAAU-AGSTGAAU     AGSTGAAU     AGSTGAAU
    AGSTGAFL-AGSTGAFL     AGSTGAFL-AGSTGAFL     AGSTGAFL     AGSTGAFL
    AGSTGAMT-AGSTGAAU     AGSTGAAU-AGSTGAMT     AGSTGAMT     AGSTGAAU
    AGSTGAMT-AGSTGAFL     AGSTGAFL-AGSTGAMT     AGSTGAMT     AGSTGAFL
    RATE_MASTER_ROUTE:
    MASTER_ROUTE_NAME VARCHAR2(17)   Data looks like 'AFD32GDS-AFD55GDF' or 'AFD55GDF-AFD32GDS'
    ALOC VARCHAR2(8)                 Data looks like 'AFD32GD2'
    ZLOC VARCHAR2(8)                 Data looks like 'AFD55GDF'SELECT * FROM RATE_MASTER_ROUTE WHERE ROWNUM <=5;
    MASTER_ROUTE_NAME     ALOC          ZLOC
    ABDLFLXA-ABDLFLXA     ABDLFLXA     ABDLFLXA
    AGSTGAAU-AGSTGAAU     AGSTGAAU     AGSTGAAU
    AGSTGAFL-AGSTGAFL     AGSTGAFL     AGSTGAFL
    AGSTGAMT-AGSTGAAU     AGSTGAMT     AGSTGAAU
    AGSTGAMT-AGSTGAFL     AGSTGAMT     AGSTGAFThe idea is to insert a record into RATE_MASTER_ROUTE ONLY if it is not in there already. So since the view takes care of the reversing, all I am doing is passing in the MASTER_ROUTE_NAME and the REVERSED to see if either of them are in RATE_MASTER_ROUTE. If not, then I am INSERTING both the ALOC and ZLOC and the MASTER_ROUTE_NAME into RATE_MASTER_ROUTE. I appreciate the help so far, but I am still missing something. I have tried a number of variations. I added a dummy record to the first table that I knew was not in the second. I tried selecting it according to a similar query that was made above. But I am not communicating something correctly so this is the detail. I hope somebody can help me over this brain freeze.

  • Does DotA 2 Test crash for anyone else?

    DotA 2 Test is now available on Steam for Linux and for me, I keep getting illegal instruction calls which crashes the game every time I actually try to start a game of DotA. I can use the lobby fine and change graphics settings and everything but actually trying to play the game calls things it shouldn't be, apparently, and the core is aborted or dumped or whatever it's called.
    Has anyone else been experiencing a similar error?

    i can run Dota 2 test but when I'm in game I have  this problem https://github.com/ValveSoftware/Dota-2/issues/36
    Pc specs:
    AMD Phenom(tm) II X4 945 Processor × 4
    ram 6GB
    ATI 4850HD 13.1 catalyst driver
    I added these options  in /etc/X11/xorg.conf and my fps  increased from 10 to 30 fps. But i still have graphic artefacts on screen.
           Option        "AllowGLXWithComposite" "true"
              Option        "backingstore" "true"         
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    Option "backingstore" "true"
    Option "Monitor-DFP2" "0-DFP2"
    Option "AllowGLXWithComposite" "true"
    Option "UseFastTLS" "off"
    BusID "PCI:1:0:0"
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    Last edited by marceel (2013-07-14 09:16:09)

  • Simple CIS test using JSP?

    Can anyone post a simple block of JSP code that will execute a basic connectivity test to make sure CIS is set up properly? My setup is using the following:
    - Tomcat 5.5 (standalone installation)
    - CIS Server (deployed as a WAR into Tomcat)
    - Content Server (running on the same box as Tomcat and Apache)
    - Apache 2.2.9
    I'd also assume that this JSP test page should be executed from the cis-server web root?
    Thanks

    Hi,
    can you please share the url of the place from where you downloaded the CIS WARs.
    I am also planning to do the same using TomCat / Apache. This is why i need WARs.
    If there is some workaround using which we can get the work done in tomcat using CIS EARs. Please let me know.
    regards,
    sapan
    Edited by: sapan on Nov 6, 2008 9:21 PM

  • HT203254 MBP Logic board failure or GPU failure?  Apparently it's simple to test...

    I have a 2008 Macbook Pro 15" (2.2Ghz) with NVidia 8600M GT graphics chip.  Last month it failed, no longer booting up.  The fans start, the LED light comes on, but the keyboard, hard drive and screen fail to come on. After reading article TS2377 I was convinced that the symptoms described match those on my MBP, so I took it to the nearest Apple store.  The 'genius' at the 'genius bar' (cringe) took it away then came back and told me that the problem was with the logic board, not the GPU.  They diagnosed this by removing the RAM and seeing if the RAM failure beeps sounded.  Seeing as there was no sound they diagnosed that the logic board was the source of failure because the RAM test comes before the GPU test in the boot sequence.  This test is so simple surely it should be posted under article TS2377???
    I must say that I'm completely unconvinced by the diagnosis, but who can argue with a 'genius'?  I'd really appreciate it if someone on here could give me a second opinion?  Even if they turn out to be right I think I might take out the logic board to see if there's evidence that the GPU has fried the logic board...

    There are many comments about the NVIDIA GPU issue and Apple not replacing the GPU.  I will say I had good success in getting Apple to replace mine in my Macbook Pro. When my computer suddenly would not fully turn on, I researched the issue to find out the possible reasons and then somewhat dawdled in taking it in. It was 2 weeks past the 4-year GPU warranty window. But I had had problems for some time preceding when it wouldn't fully turn on, such as geo designs appearing on the screen and the screen going dark, and those issues did occur at least a month or more before my warranty ended. I had no idea what those issues meant and simply ignored them until the computer wouldn't fully turn on.
    The good folks at The Apple store in Austin initially said no luck; yes it's the GPU but it's two weeks past the warranty. But then they kindly relented because clearly the symptoms I described to them that occurred during the warranty were caused by the faulty GPU. How would I know this was the issue?  They replaced the logic board at no cost. I've seen comments here that a Genius said the problem was the logic board, not the GPU, and therefore Apple would not make the repair. I was told by my Genius that the GPU is partof the logic board, and therefore the logic board needed replacing. This was a $526 repair that I was grateful Apple took care of. I would not have made the repair and would have gone out and bought a new non-Apple computer with a warranty.
    When I got my computer back, I checked it before I left the Apple store and it was running slow. I ended up paying Apple to replace the hard drive, so ultimately I did pay for an Apple repair. But I'm a happy rather than disappointed Apple customer because of the free GPU repair. Happy, devoted customers has made Apple a great company, and it should be worth it to the company to fix the faulty GPUs that are close to warranty to keep customers and keep them happy.

  • [CS 5.5/JS/OSX] Simple regular expression crashes InDesign

    I'm in the process of migrating a script from CS3 to CS5.5. When trying the script with no modifications it causes InDesign to stall, and I have to force close it. After running through the script line by line I found the culprit:
    /A(_|-)?B\.jpg/.test("A-C.jpg")
    This causes the entire script engine to freeze.
    With CS3 it works fine. Also when do I slight change it works fine:
    /A(-|_)?B\.jpg/.test("A-C.jpg")
    Any idea what's going on? Is it a bug in the scripting engine?

    Any ideas exactly what kind of expressions triggers the bug?
    I rewrote my expression to not contain phrases like /(a|b|abc)?/. Instead I use /[ab]?(abc)?/, which is close enough, and seems to not trigger the bug.

  • Accessibility testing crashes Acrobat

    We're using JAWS and NVDA to test PDFs for section 508 compliance. When we exit JAWS, Windows presents a Data Execution Prevention message:"To help protect your computer, Windows has closed this program: Adobe Acrobat 9.3" With NVDA, after exiting the reader, Acrobat will occasionally close unexpectedly. Anyone else seeing this issue? The operating environment is Windows XP Pro SP3, Acrobat Pro Extended v9.3.3, JAWS v11.0.1461.400. Thanks.

    > Ask Adobe support.
    Just phoned them... They said "Not supported anymore, get the upgrade"...
    Fortunately, PDFCreator does the job as well...
    PJ

  • Simple Math VI crashes LabVIEW 2009 SP1

    Hi,
    We previously filed a related issue, (ref #: 7302858). The last problem was resolved by 
    Andy Hertzka from NI re-compiled the VI and send it back to us. That re-compilation solved the LabVIEW crashing.
    However, the interesting crash happens again.
    I attached a working VI before the change and a non working VI after the change and save. All the change I applied to the VI is
    1. Add the "Word bits" as a connector on the diagram
    2. Save it Then the VI begin to crash LabVIEW 2009 SP1.
    Before the change, the VI was functioning all right.
    Any idea why this might be happening? Can you try to recompile the non_working version and send it back to me for a try?
    Thanks,
    Tian
    Attachments:
    Non_working_AfterChange_RECOMPILED LRSample_U32in_U32output.vi ‏110 KB
    Working_B4Change_RECOMPILED LRSample_U32in_U32output.vi ‏110 KB

    Tian,
    Like Andy I was unable to see why this code is unstable on your machine. I am able to run the code fine on my computer without any problems. Looking at the code on the block diagram I do not see any major "crash worthy" issues with it. 
    I have resaved the VIs like Andy had in order to fix your issue. By the way what OS are you using, windows 7? It might be helpful to save the log file for the LabVIEW crash. You should get this option when LabVIEW is restarted. 
    <Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 
    Attachments:
    Non_working_AfterChange_RECOMPILED LRSample_U32in_U32output1.vi ‏108 KB
    Working_B4Change_RECOMPILED LRSample_U32in_U32output1.vi ‏108 KB

  • Simple Load Test Using SQL

    Does anyone have some SQL scripts that creates some test data and then executes against the data to test AMM?
    Example:
    I want to see how AMM dynamically changes memory but the test database I have only now has dictionary data.
    Thanks

    ALWAYS
    Post Operating System (OS) name & version for DB server system.
    Post results of
    SELECT * from v$version;
    Why do you expect us to have test data for YOUR DB?

  • Sample delivered simple cobol test program error

    Hi,
    I am receiving the below error, When I try to run the delivered cobol program on my new production linux server. (The same program executed successfully in my Dev and test servers.)
    Compiled and linked the cobol program successfully.
    Any help on this highly appreciated.
    SUCCESSFUL DATABASE CONNECTION
    Application Program Failed
    Action Type     : SQL UPDATE                  
    In Pgm Section  : SQLRT: SQL-STMT-GET                                                                                                                                       
    Error Message   : Stored Statement PTPUSTAT_U_PRCRQSE not found
    Stored Stmt     : PTPUSTAT_U_PRCRQSE
                                           at pos 00028
    PTPSQLRT - Error Encountered
    No longer have connection to DB due to an error from previous
    action: SQL UPDATE                    . Bypassing current action: SQL SELECT                    .
    Terminating Program.
    Thanks
    Soundappan

    The error message indicates that a stored statement is missing from PS_SQLSTMT_TBL. This table is initially loaded by the dms scripts that run when the database is created (something like epengs.dms), but there is a later step in the installation guide--Updating PeopleTools System Data--which instructs you to run the storept.dms script. This would have refreshed all stored statements for programs that start with PT. If you still have your log files you can check to see if this was run, or if it encountered errors. Either way, you can run the dms script to fix the problem. If this task was missed, though, you might want to verify that this was the only task that was missed.
    Regards,
    Bob

  • Simple Soap Test, VERY SLOW with XP, only 5 calls per second !

    Hello,
    I'm just starting developing a web service. My first test shows a very slow performance of only about 5 calls per second:
    Windows XP client localhost -> Windows XP server: 2000 calls per second
    Windows XP client in VM on server maschine -> Windows XP server: 4,5 calls per second
    Windows XP client over 100 MBit LAN -> Windows XP server: 2000 calls per second: 4,5 calls per second
    Windows XP client over 1000 MBit LAN -> Windows XP server: 2000 calls per second: 4,5 calls per second
    So you might think, that is it, but - using identical jars:
    Mac OS X, 10.6 client -> Windows XP server: 880 calls per second
    Windows XP client -> Mac OS X 10.6 server: 4,5 calls per second
    So the problem seems to be the client setup on an Windows XP system.
    This is the service code:
    package net.metasafe.soapbenchmark.server;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public class TestLib {
         private int count = 0;
         public TestLib() {
              // nothing to do
         @WebMethod
         public int div(int a, int b) {
              this.count++;
              if (b == 0)
                   throw new IllegalArgumentException("b must not be 0!");
              return a / b;
         @WebMethod
         public int getNumberOfCalls() {
              return this.count;
         @WebMethod
         public void resetCount() {
              this.count = 0;
    }This is the sevice publisher:
    package net.metasafe.soapbenchmark.server;
    import javax.xml.ws.Endpoint;
    class ServicesPublisher {
         public static void main(String[] args) {
              if (args.length != 2) {
                   System.out.println("2 Arguments required: <servername/IP> <port>");
                   return;
              String url = "http://" + args[0] + ":" + args[1] + "/services";
              System.out.println("Publishing TestLib service at url '" + url + "'.");
              Endpoint.publish(url, new TestLib());
    }This is the client code:
         public static void main(String[] args) throws MalformedURLException {
              if (args.length != 3) {
                   System.out
                             .println("3 Arguments required: <servername/IP> <port> <number of calls>");
                   return;
              int num = Integer.parseInt(args[2]);
              URL url = new URL("http://" + args[0] + ":" + args[1]
                        + "/services?wsdl");
              System.out.println("Conneting to service '" + url + "' .... ");
              QName qname = new QName("http://some_uri/",
                        "TestLibService");
              TestLibService service = new TestLibService(url, qname);
              TestLib tl = service.getTestLibPort();
              System.out.println("Connected !");
              // reset count
              tl.resetCount();
              System.out.println("\nPerforming " + num + " calls ...");
              long starttime = System.currentTimeMillis();
              int i;
              for (i = 1; i <= num; i++) {
                   tl.div(i, 2);
                   if (i % 100 == 0)
                        System.out.println(i);
              long t = System.currentTimeMillis() - starttime;
              System.out.println("Performed " + tl.getNumberOfCalls() + " calls in "
                        + (t / 1000.0f) + " seconds.");
              System.out.println("Calls per second: " + (num * 1000.0f / t));
              System.out.println("Done");
         }Any idea, why this is so slow, if the client runs on an Windwos XP (Pro) system ?
    Is there anything I have to be aware of when choosing the QName ?
    Best regards
    Marc

    Hello,
    no one any idea on for this ?
    How many calls do you get normally on Windows XP machines ?
    Regards
    Markus

Maybe you are looking for

  • Can't delete email with a 9 mb attachment from iphone

    can't delete email with a 9 mb attachment from iphone(3gs, software v 4.3.1) -- every time i try to delete the email with a swipe it shows the red delete button on the right but then freezes for a while and then the delete button disappears but the e

  • Delete retail material via batch job?

    Hey guys, is there a way to delete a retail material via batch job? I know with transaction MM16 you can schedule a job to do that. But how can i do that without using transaction MM16. Is it possible to this via IDoc?     thx,       Wei-Ming

  • How to turn off autoformatting of numbers in a table. enter 1,2,3,4,5 in a table and you get 12,345.

    if you enter 1,2,3,4,5 in word processing mode, this is exactly what you get. if you enter this in a table, it converts it to 12,345. How do i stop this behavoir in pages?

  • Facebook Inbox Errors

    Facebook Inbox Errors. It says "Error. Unable to load this mailbox. Have the latest Itunes version and have tried deleting and re-installing the application. Any ideas?

  • Print out cut off right hand side

    Hi All, We configured network printer  in production system,print out cut off right hand side user giving print out e-recruiting web based system.i had made all changes in SPAD. It seems to apply some SAP note Can anyone suggest me please. Thanks in