Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#34 Windows crash after dropfuncs and loadfuncs

closed
nobody
None
5
2011-04-22
2011-04-18
Jon Wolfers
No

If I drop and reload the library then Windows crashes on connection.

I see this with ooRexx 3.2 & ooRexx 4.01 using rexxmy 2.5 15 Oct 2006 WIN32 MySQL libraries.

I attach a test program and a screenshot

thanks,

Jon

Discussion

  • Jon Wolfers
    Jon Wolfers
    2011-04-18

    Script to cause crash

     
    Attachments
  • Jon Wolfers
    Jon Wolfers
    2011-04-18

    Sorry. I don't seem to be able to upload a second file to this tracker.
    Here is the screenshot.

    C:\ooRexx>rexx test1
    2 *-* parse version v
    >>> "REXX-ooRexx_4.0.1(MT) 6.03 2 May 2010"
    >>> "REXX-ooRexx_4.0.1(MT) 6.03 2 May 2010"
    3 *-* say v
    >>> "REXX-ooRexx_4.0.1(MT) 6.03 2 May 2010"
    REXX-ooRexx_4.0.1(MT) 6.03 2 May 2010
    4 *-* if rxfuncquery('MYLoadFuncs')
    >>> "0"
    5 *-* if rxfuncquery('MYconnect')
    >>> "0"
    6 *-* say myVariable('version')
    >>> "rexxmy 2.5 15 Oct 2006 WIN32 MySQL"
    rexxmy 2.5 15 Oct 2006 WIN32 MySQL
    8 *-* rv = MYconnect('con1','root','xxxx','obrowser','localhost')
    >>> "0"
    9 *-* rv = Mydisconnect('con1')
    >>> "0"
    11 *-* rv = MYconnect('con1','root','xxxx','obrowser','localhost')
    >>> "0"
    12 *-* rv = Mydisconnect('con1')
    >>> "0"
    14 *-* call MyDropFuncs
    >>> "0"
    15 *-* if rxFuncQuery('MyLoadFuncs') = .false
    >>> "1"
    15 *-* then
    15 *-* call rxFuncDrop 'MYLoadFuncs'
    >>> "1"
    17 *-* if rxfuncquery('MYLoadFuncs')
    >>> "0"
    18 *-* if rxfuncquery('MYconnect')
    >>> "0"
    20 *-* rv = MYconnect('con2','root','xxxx','obrowser','localhost')

    C:\ooRexx>

    the crash happens at line 20.

    thanks,

    Jon

     
  • Jon Wolfers
    Jon Wolfers
    2011-04-18

    Sorry, looking at your response to Brians segmentation fault, I see that the problem with my script is that LoadFuncs is not run the second time.
    This is because dropFuncs does not seem to deregister the connect function.
    When I change the script to run loadfuncs each time, the crash goes away.

    Should dropFuncs not deregister the other functions?

    thanks,

    Jon

     
  • Jon Wolfers
    Jon Wolfers
    2011-04-22

    If I ignore what RxFuncQuery says, and use loadfuncs and dropfuncs each time I start on a new thread this problem goes away, so I am closing this tracker as it seems to me it is a problem with my (back-level) ooRexx rather than rexxSQL
    thanks, Jon

     
  • Jon Wolfers
    Jon Wolfers
    2011-04-22

    • status: open --> closed