#828 Exception when using ArraySize()

v4.0
closed
5
2012-08-14
2009-09-28
No

I think I can supply code that will cause an exception when invoking ArraySize().

To get at that, follow the instructions at https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2866554&group_id=119701 to download the archive and unzip it.

Before running the script "run_90_testgroup.cmd" get the package "BSF4Rexx_ArraySize_Exception.zip" from the same location and unzip it, and use the BSF4Rexx* files to replace those in the "MT_bug" subdirectory.

Then follow the instructions to setup the environment and run either "run_90_testgroup.cmd" or enter "rexxj2.cmd infoBSF.rex one two three".

Discussion

  • Rick McGuire

    Rick McGuire - 2009-09-28

    I get the following error trying to to execute run_90_testgroup.cmd:

    test_MultiThreading_via_Java_threads.testGroup
    336 - call bsf "bsfPrefixReturnValue", .true
    28 - ::requires "BSF.cls"
    Error 40 running C:\ORexxDev\bugs\2869000\MT_bug\BSF.CLS line 336: Incorrect ca
    ll to routine
    Error 40.900: BSF4Rexx/routine/BSF(), error 1: no JVM (Java Virtual Machine) av
    ailable

    Please provide a SINGLE archive with all materials necessary to recreate this.

     
  • Rony G. Flatscher

    Oops, here too!
    :(

    Obviously, I have mixed up something in between. Will take some time to bail out my changes, in the worst case I have to re-set to this morning's stage.

    In any case, I will come up with a new, single arhcive, but please be patient, this mess will cost me some time!
    :-((

     
  • Rony G. Flatscher

    Forgot: the line # where it bombs is now: 2344:

    fprintf(stderr, "\t---> ra~size=[%Zu]\n",rtc->ArraySize(ra));fflush(stderr);
    
     
  • Rick McGuire

    Rick McGuire - 2009-09-28

    This is not dying in ArraySize(), it is dying in the fprintf() routine because you are using a pattern position of %Zu on a numeric value. The returned value of "1" is being interpreted as a pointer to a a string value.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks