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

Unexpected Fault on Windows #3

Open
cytek04 opened this issue Feb 4, 2021 · 5 comments
Open

Unexpected Fault on Windows #3

cytek04 opened this issue Feb 4, 2021 · 5 comments
Labels

Comments

@cytek04
Copy link

cytek04 commented Feb 4, 2021

Hi,
I recently downloaded the exe version of this for windows. When I try to run it, it throws a fatal error and ends. See below.

C:\Users\Cy\chromecsv>chromecsv.exe "%LOCALAPPDATA%\Google\Chrome\User Data"
Using C:\Users\Cy\AppData\Local\Google\Chrome\User Data/Default/Login Data
Loading database...
Columns found: origin_url, username_value, password_value,
Exporting stuff...
unexpected fault address 0x15d0000
fatal error: fault
[signal 0xc0000005 code=0x0 addr=0x15d0000 pc=0x424616]

goroutine 1 [running]:
runtime.throw(0x6930de)
C:/Go/src/pkg/runtime/panic.c:464 +0x74 fp=0x15a2c90
runtime.sigpanic()
C:/Go/src/pkg/runtime/os_windows.c:340 +0xfe fp=0x15a2ca8
runtime.memmove(0xc084037000, 0x15a2bc8, 0x6994c0)
C:/Go/src/pkg/runtime/memmove_amd64.s:75 +0x76 fp=0x15a2cb0
runtime.gostringn(0x15a2d10, 0x15a2bc8, 0x6994c0)
C:/Go/src/pkg/runtime/string.goc:79 +0x56 fp=0x15a2ce0
main.Cfunc_GoStringN(0x15a2bc8, 0xc0006994c0, 0xc084000100, 0x15a2bc8)
C:/Users/Claus/AppData/Local/Temp/go-build284841727/
/C_/Users/Claus/vcs/chromecsv/_obj/_cgo_defun.c:18 +0x40 fp=0x15a2d00
main.(*WindowsCrypt).decrypt(0x6a01a8, 0xc0840340f0, 0x28, 0x28, 0x0, ...)
C:/Users/Claus/vcs/chromecsv/crypt_windows.go:44 +0x70 fp=0x15a2d30
main.main()
C:/Users/Claus/vcs/chromecsv/main.go:86 +0x9b9 fp=0x15a2f48
runtime.main()
C:/Go/src/pkg/runtime/proc.c:220 +0x132 fp=0x15a2fa0
runtime.goexit()
C:/Go/src/pkg/runtime/proc.c:1394 fp=0x15a2fa8

goroutine 3 [syscall]:
runtime.goexit()
C:/Go/src/pkg/runtime/proc.c:1394

goroutine 4 [chan receive]:
database/sql.(*DB).connectionOpener(0xc08400d080)
C:/Go/src/pkg/database/sql/sql.go:574 +0x41
created by database/sql.Open
C:/Go/src/pkg/database/sql/sql.go:436 +0x250

I read the other issue on here and guessing maybe it is related to the same issue? Or is there something simple I am overlooking?

@cfstras
Copy link
Owner

cfstras commented Feb 10, 2021

Welp, I guess there's some error handling that's not being done. Looks like one of your passwords can't be decrypted and is throwing an error.

Since I don't have a windows system to debug this, you're on your own.

You could try:

  1. checking the output of CryptUnprotectData in https://github.com/cfstras/chromecsv/blob/master/crypt_windows.go#L14 and returning null instead of something invalid
  2. then using GetLastError to figure out what happened
  3. skip the offending password.

PRs welcome ;)

@cfstras cfstras added the bug label Feb 10, 2021
@cfstras cfstras changed the title Throws fatal error and does not work Unexpected Fault on Windows Feb 10, 2021
@cfstras
Copy link
Owner

cfstras commented Feb 10, 2021

@cytek04
Copy link
Author

cytek04 commented Feb 10, 2021

Thanks for the reply. Personally I do not think this is the issue because I have tried the exe on 3 different machines and it throws the same error. Also it was working and suddenly started throwing this error one day. I do not have enough time and programming experience to investigate much farther, though. It makes me wonder if it still works for others.

@eduardomarossi
Copy link

I have tried here, not working either on Windows x64, same fault.

@Zero3K
Copy link

Zero3K commented Oct 4, 2023

It also doesn't work for me.

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

No branches or pull requests

4 participants