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

when i comment delay funtion in example(simple_client), it cause Segmentation fault ! #2

Closed
ckoh01 opened this issue May 16, 2017 · 1 comment

Comments

@ckoh01
Copy link

ckoh01 commented May 16, 2017

hello,
in the simple_client example, i compiled sourcecode which two delay funtions "Thread_sleep(5000)" at line 89 and 93 were commented with make in ubuntu12.04 . the program run to Segmentation fault (core dumped).

when debug with gdb , it throw below info.

(gdb) bt
#0 0xb7e79410 in __GI___libc_free (mem=0x8060128) at malloc.c:2984
#1 0x08056bdd in Memory_free (memb=0x8060128) at src/common/lib_memory.c:79
#2 0x08056a8b in Thread_destroy (thread=0x8060128)
at src/hal/thread/linux/thread_linux.c:114
#3 0x08049712 in T104Connection_close (self=0x8060008)
at src/iec60870/t104/t104_connection.c:321
#4 0x08049725 in T104Connection_destroy (self=0x8060008)
at src/iec60870/t104/t104_connection.c:328
#5 0x08048ffb in main (argc=1, argv=0xbffff334) at simple_client.c:118

coredumped at free() funtion in glibc , could you give some cue.

BTW, v0.9.3 does not get this problem.

@mzillgith
Copy link
Contributor

Hello. There was bug in memory allocation introduced by refactoring. Seems to be solved now.

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

2 participants