View Issue Details

IDProjectCategoryView StatusLast Update
0008296ADK-VCDKAPIpublic2018-07-03 15:10
ReporterChris ZakrewskyAssigned ToIvan Smahin 
PriorityurgentSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformINTELOSWindowsOS Version*
Product Version 
Target VersionFixed in Version8.3.x 
Summary0008296: Crash in Server_GetVariable()
DescriptionI have an unconditional crash whenever running the Server_GetVariable() against anything retrieved by Valentina_GetLocalConnection().
Steps To ReproduceRun this code:

    int cacheSize = 100*1024*1024;

    printf ( "\tInitializing Valentina\n" );
    Valentina_Init ( cacheSize, "", SERVER_REPORTS_LICENCE, "" );
    Valentina_InitClient ( cacheSize );
    Valentina_InitReports ( "", SERVER_REPORTS_LICENCE, "" );
    Valentina_SetDebugLevel ( 3 );

    connectionP = Valentina_GetLocalConnection ();

    if ( connectionP )
        {
        printf ( "\tConnection: OK\n" );

        VServer dbServerP = Server_New ( connectionP );
        
        if ( dbServerP )
            {
            char *portP = NULL;

            printf ( "\tServer_New: OK\n" );
            
            portP = Server_GetVariable ( dbServerP, "Port_SSL" ); // Crashing & burning!
            if ( portP )
                {
                printf ( "\tPORT: %s OK\n", portP );
                VCDK_Free ( portP );
                }
            else
                printf ( "\tPORT: n/a\n" );

            Server_Free ( dbServerP );
            }
        else
            printf ( "\tServer_New: FAILED\n" );
        }
    else
        printf ( "\tValentina_GetLocalConnection: FAILED\n" );

    printf ( "\tShutdown Valentina\n" );
    Valentina_ShutdownReports ();
    Valentina_ShutdownClient ();
    Valentina_Shutdown ();
    }
TagsNo tags attached.

Activities

Chris Zakrewsky

Chris Zakrewsky

2018-06-27 15:20

reporter  

Snapshot-2018-06-27-170443.png (7,167 bytes)
Chris Zakrewsky

Chris Zakrewsky

2018-06-27 15:21

reporter  

Snapshot-2018-06-27-171230.png (11,591 bytes)
Ivan Smahin

Ivan Smahin

2018-07-03 15:09

manager   ~0010233

connectionP = Valentina_GetLocalConnection ();

It should not be a crash of course, but you should establish a real remote connection to vServer for getting its properties.

LocalConnection does not mean "local-host connection". It's specific vKernel feature to have something above database level.

Issue History

Date Modified Username Field Change
2018-06-27 15:20 Chris Zakrewsky New Issue
2018-06-27 15:20 Chris Zakrewsky File Added: Snapshot-2018-06-27-170443.png
2018-06-27 15:21 Chris Zakrewsky File Added: Snapshot-2018-06-27-171230.png
2018-07-03 15:09 Ivan Smahin Note Added: 0010233
2018-07-03 15:10 Ivan Smahin Status new => resolved
2018-07-03 15:10 Ivan Smahin Fixed in Version => 8.3.x
2018-07-03 15:10 Ivan Smahin Resolution open => fixed
2018-07-03 15:10 Ivan Smahin Assigned To => Ivan Smahin