rwnx / pynonymizer

A universal tool for translating sensitive production database dumps into anonymized copies.
https://pypi.org/project/pynonymizer/
MIT License
103 stars 38 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #25

Closed Tim-Schwalbe closed 3 years ago

Tim-Schwalbe commented 3 years ago

Describe the bug Since today I got the following error message, I see that its now using: successfully installed faker-4.17.0 pynonymizer-1.10.1 python-dateutil-2.8.1 python-dotenv-0.15.0 pyyaml-5.3.1 six-1.15.0 text-unidecode-1.3 tqdm-4.52.0

before it was:

Successfully installed faker-4.16.0 pynonymizer-1.10.1 python-dateutil-2.8.1 python-dotenv-0.15.0 pyyaml-5.3.1 six-1.15.0 text-unidecode-1.3 tqdm-4.52.0 I have done this for months :

pynonymizer --db-user "$SQL_USER_PROD" --db-password "$SQL_PASS_PROD" --db-host "127.0.0.1" --db-port "3306" --db-name temp" --start-at ANONYMIZE_DB --stop-at ANONYMIZE_DB --strategy ./strategy.yaml

Today it raised this error which seems related to the faker upgrade:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x804a0ac]
goroutine 59 [running]:
runtime/internal/atomic.Xadd64(0xa47a0b4, 0x1, 0x0, 0x0, 0x0)
    /usr/local/go/src/runtime/internal/atomic/asm_386.s:105 +0xc
github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/proxy.(*Client).handleConn(0xa47a060, 0xff93fb8e, 0x34, 0x868f080, 0xa6ee000)
    /workspace/proxy/proxy/client.go:129 +0x50
created by github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/proxy.(*Client).Run
    /workspace/proxy/proxy/client.go:120 +0x99
ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 11
Failed to connect to database.