Same issue found while doing multi threading in C. It runs fine when single 
thread is there but fails for multithread. Did you know how to implement 
multi threading in C python with golang integratiion?


On Tuesday, August 25, 2015 at 6:10:22 AM UTC+5:30 eviefe...@gmail.com 
wrote:

> hello!I got this problem in my program too ,do you konw how to solve this 
> multi-threaded C code problem?
>
> 在 2014年9月16日星期二 UTC+8上午7:20:16,Andrew Gerrand写道:
>
>> You'll need to show more of the stacks. Usually the first stack trace is 
>> for the responsible goroutine.
>>
>> Are you calling into multi-threaded C code? I've seen that cause this 
>> particular error.
>>
>> Andrew
>>
>> On 16 September 2014 09:12, Eric Z <hadoo...@gmail.com> wrote:
>>
>>> Hello Golang-Nuts,
>>>
>>> I am writing a go program calling c library and function. It works 
>>> fluently in some cases, but sometime it exit with error code 2.
>>>
>>> However the error printout starts with a long list of go routines at 
>>> crash. This gives me no clue how to debug. Can some one give some advice? 
>>> Thanks a lot.
>>>
>>> fatal error: unexpected signal during runtime execution
>>> [signal 0xb code=0x1 addr=0x0 pc=0x0]
>>> runtime stack:
>>> runtime.throw(0x863885)
>>>       /usr/local/go/src/pkg/runtime/panic.c:520 +0x69 fp=0x7fa2c0df9c28 
>>> sp=0x7fa2c0df9c10
>>>  runtime: unexpected return pc for runtime.sigpanic called from 0x4098a5
>>>  runtime.sigpanic()
>>>     /usr/local/go/src/pkg/runtime/os_linux.c:222 +0x3d fp=0x7fa2c0df9c40 
>>> sp=0x7fa2c0df9c28
>>>
>>>
>>>
>>> Cheers,
>>> Eric
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to golang-nuts...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/7c63de5d-b659-4a35-a7e8-f917d13ed6a1n%40googlegroups.com.

Reply via email to