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

signal arrived during cgo execution #7

Closed
daozhao opened this issue Aug 8, 2014 · 2 comments
Closed

signal arrived during cgo execution #7

daozhao opened this issue Aug 8, 2014 · 2 comments

Comments

@daozhao
Copy link
Contributor

daozhao commented Aug 8, 2014

system: Mac OSX 10.9
go version go1.2 darwin/amd64
ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 3 2014 09:09:13 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-fontconfig --enable-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100

go run encoding.go
[mpeg @ 0x6812600] VBV buffer size not set, muxing may fail
2014/08/08 16:37:30 Write frame=1 size=17078 pts=0 dts=-3600
2014/08/08 16:37:30 Write frame=2 size=17718 pts=3600 dts=0
2014/08/08 16:37:30 Write frame=3 size=8800 pts=7200 dts=3600
2014/08/08 16:37:30 Write frame=4 size=8459 pts=10800 dts=7200
2014/08/08 16:37:31 Write frame=5 size=8248 pts=14400 dts=10800
2014/08/08 16:37:31 Write frame=6 size=6848 pts=18000 dts=14400
2014/08/08 16:37:31 Write frame=7 size=5171 pts=21600 dts=18000
2014/08/08 16:37:31 Write frame=8 size=5501 pts=25200 dts=21600
2014/08/08 16:37:31 Write frame=9 size=3938 pts=28800 dts=25200
2014/08/08 16:37:31 Write frame=10 size=4722 pts=32400 dts=28800
2014/08/08 16:37:31 Write frame=11 size=4024 pts=36000 dts=32400
2014/08/08 16:37:31 Write frame=12 size=4970 pts=39600 dts=36000
2014/08/08 16:37:31 Write frame=13 size=21005 pts=43200 dts=39600
2014/08/08 16:37:31 Write frame=14 size=3352 pts=46800 dts=43200
2014/08/08 16:37:31 Write frame=15 size=4241 pts=50400 dts=46800
2014/08/08 16:37:31 Write frame=16 size=3188 pts=54000 dts=50400
2014/08/08 16:37:32 Write frame=17 size=3008 pts=57600 dts=54000
2014/08/08 16:37:32 Write frame=18 size=2667 pts=61200 dts=57600
2014/08/08 16:37:32 Write frame=19 size=3446 pts=64800 dts=61200
2014/08/08 16:37:32 Write frame=20 size=2850 pts=68400 dts=64800
2014/08/08 16:37:32 Write frame=21 size=2912 pts=72000 dts=68400
2014/08/08 16:37:32 Write frame=22 size=2771 pts=75600 dts=72000
2014/08/08 16:37:32 Write frame=23 size=2854 pts=79200 dts=75600
2014/08/08 16:37:32 Write frame=24 size=3097 pts=82800 dts=79200
2014/08/08 16:37:32 Write frame=25 size=14828 pts=86400 dts=82800
SIGSEGV: segmentation violation
PC=0x4270965
signal arrived during cgo execution

runtime.cgocall(0x4001cc0, 0x6561c28)
/usr/local/go/src/pkg/runtime/cgocall.c:149 +0x11b fp=0x6561c10
github.com/3d0c/gmf._Cfunc_av_write_trailer(0x6812600, 0x0)
github.com/3d0c/gmf/_obj/_cgo_defun.c:419 +0x31 fp=0x6561c28
github.com/3d0c/gmf.(*FmtCtx).CloseOutput(0xc210050020)
/Users/daozhao/Documents/SourceCode/goPath/src/github.com/3d0c/gmf/format.go:172 +0x68 fp=0x6561c40
main.main()
/Users/daozhao/Documents/SourceCode/goPath/src/github.com/3d0c/gmf/examples/encoding.go:106 +0xdb1 fp=0x6561f48
runtime.main()
/usr/local/go/src/pkg/runtime/proc.c:220 +0x11f fp=0x6561fa0
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1394 fp=0x6561fa8

goroutine 3 [syscall]:
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1394

rax 0x0
rbx 0x7800000
rcx 0x7029600
rdx 0x7029600
rdi 0x7800000
rsi 0x0
rbp 0x7029600
rsp 0x7fff5fbff600
r8 0x2d3
r9 0x8000000000000000
r10 0x4389b10
r11 0x80124a
r12 0x0
r13 0x4270960
r14 0x0
r15 0x5
rip 0x4270965
rflags 0x10246
cs 0x2b
fs 0x0
gs 0x0
exit status 2

@3d0c
Copy link
Owner

3d0c commented Aug 10, 2014

I couldn't reproduce this error.
Please update your branch from current master and try again.

@daozhao
Copy link
Contributor Author

daozhao commented Aug 11, 2014

I pull new version( 4a4dfd7 ) and run with go 1.3

I couldn't reproduce this error,too.

@daozhao daozhao closed this as completed Aug 11, 2014
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