[help me plz] Crash of go-sqlite3 on Windows 32bit with linking libgcc_s.a

325 views
Skip to first unread message

mattn

unread,
Dec 9, 2012, 7:25:41 PM12/9/12
to golan...@googlegroups.com
Hi, all

I've received issue report on github about go-sqlite3.
He suggest to add -lgcc_s into cgo LDFLAGS for win32. But it's working correctly on my environment.
However, someone is saying that adding -lgcc_s is needed.
Now, I'm confusing.


Currently, all of users who has that problems are using Windows7 32bit not WindowsXP.

Could you please test it on WindowsXP and report to me?

mattn

unread,
Dec 9, 2012, 7:26:09 PM12/9/12
to golan...@googlegroups.com
The issue report is here: https://github.com/mattn/go-sqlite3/issues/27

mattn

unread,
Dec 9, 2012, 7:27:18 PM12/9/12
to golan...@googlegroups.com
I forgot to write most important thing.

If adding -lgcc_s on my environment (WindowsXP), example/main crash for me. but they says that it's working on Windows7.


On Monday, December 10, 2012 9:25:41 AM UTC+9, mattn wrote:

minux

unread,
Dec 14, 2012, 5:14:48 AM12/14/12
to mattn, golan...@googlegroups.com
On Mon, Dec 10, 2012 at 8:27 AM, mattn <matt...@gmail.com> wrote:
I forgot to write most important thing.

If adding -lgcc_s on my environment (WindowsXP), example/main crash for me. but they says that it's working on Windows7.
Don't worry about this.
Go 1.1 contains fixes that will alleviate this libgcc issue.

You can try the default branch yourself to see if it still crashes
(remove the -lgcc_s of course, as it's not needed any more).
If it still crashes, I'd like to hear about it. Thank you.

mattn

unread,
Dec 14, 2012, 7:19:12 AM12/14/12
to golan...@googlegroups.com, mattn
Thank you for your point. :)

I'm trying go with hg-tip always, the CL isn't included yet?

mattn

unread,
Dec 14, 2012, 7:52:04 AM12/14/12
to golan...@googlegroups.com, mattn
Ah, sorry. It does not occur on my environment. :)

minux

unread,
Dec 14, 2012, 8:40:13 AM12/14/12
to mattn, golan...@googlegroups.com
On Fri, Dec 14, 2012 at 8:19 PM, mattn <matt...@gmail.com> wrote:
I'm trying go with hg-tip always, the CL isn't included yet?
It has been included for quite some time.
 
If the crash is still happening on tip (if you include sqlite3.c in the pkg, you don't need
to include any special LDFLAGS on windows, everything should be auto detected),
please provide a detailed procedure to reproduce it, and I will investigate.
(I can test on Windows 2008 R2 x64 and Windows XP x86.)

minux

unread,
Dec 14, 2012, 8:46:16 AM12/14/12
to mattn, golan...@googlegroups.com
On Fri, Dec 14, 2012 at 8:52 PM, mattn <matt...@gmail.com> wrote:
Ah, sorry. It does not occur on my environment. :)
No problem. If anyone can reproduce the crash with Go tip and can
provide related information. I will take a look.
Reply all
Reply to author
Forward
0 new messages