Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEGV in sv_subscriber.c #105

Closed
RootUp opened this issue Jan 11, 2019 · 4 comments
Closed

SEGV in sv_subscriber.c #105

RootUp opened this issue Jan 11, 2019 · 4 comments

Comments

@RootUp
Copy link

RootUp commented Jan 11, 2019

Hi team,

SEGV fault in sv_subscriber.c

Snip sv_subscriber.c

        Thread_start(thread);
    }
    else {
        if (DEBUG_SV_SUBSCRIBER)
            printf("SV_SUBSCRIBER: Starting SV receiver failed for interface %s\n", self->interfaceId);
    }
}

SEGV

Using interface eth0
Error creating raw socket!
ASAN:DEADLYSIGNAL
=================================================================
==1403==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000a (pc 0x55b5675c1284 bp 0x7f92623fee30 sp 0x7f92623fee20 T1)
==1403==The signal is caused by a WRITE memory access.
==1403==Hint: address points to the zero page.
    #0 0x55b5675c1283 in Ethernet_setProtocolFilter /home/input0/Desktop/libiec61850/hal/ethernet/linux/ethernet_linux.c:209
    #1 0x55b5675ba75f in SVReceiver_startThreadless /home/input0/Desktop/libiec61850/src/sampled_values/sv_subscriber.c:232
    #2 0x55b5675ba3b7 in svReceiverLoop /home/input0/Desktop/libiec61850/src/sampled_values/sv_subscriber.c:163
    #3 0x55b5675c1720 in destroyAutomaticThread /home/input0/Desktop/libiec61850/hal/thread/linux/thread_linux.c:90
    #4 0x7f9265c976da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)
    #5 0x7f92659c088e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x12188e)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/input0/Desktop/libiec61850/hal/ethernet/linux/ethernet_linux.c:209 in Ethernet_setProtocolFilter
Thread T1 created by T0 here:
    #0 0x7f9265ee6d2f in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x37d2f)
    #1 0x55b5675c17ab in Thread_start /home/input0/Desktop/libiec61850/hal/thread/linux/thread_linux.c:101
    #2 0x55b5675ba49a in SVReceiver_start /home/input0/Desktop/libiec61850/src/sampled_values/sv_subscriber.c:186
    #3 0x55b5675b9eec in main /home/input0/Desktop/libiec61850/examples/sv_subscriber/sv_subscriber_example.c:76
    #4 0x7f92658c0b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

==1403==ABORTING
@stv0g
Copy link
Contributor

stv0g commented Jan 12, 2019

Hi @RootUp,

why do you believe this is caused by a memory leak? To me this looks more like a segmentation fault.
Can you provide a simple example code or call stack for debugging?

@stv0g
Copy link
Contributor

stv0g commented Jan 12, 2019

Most likely, this is a duplicate of #86.

@RootUp RootUp changed the title Memory leak in sv_subscriber.c SEGV in sv_subscriber.c Jan 13, 2019
@abergmann
Copy link

CVE-2019-6136 got assigned to this issue.

@mzillgith
Copy link
Contributor

Duplicate. Reason already explained in #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants