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

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

Closed
draksjahs opened this issue Aug 3, 2022 · 11 comments
Closed

Comments

@draksjahs
Copy link

Hi,
I get error when I try to run the tool.
2022/08/03 21:54:09 wait for init config files ...
2022/08/03 21:54:13 Init2 k-v db 不能多个进程同时开启 Mmap value log file. Path=.DbCache/000000.vlog. Error=exec format error
2022/08/03 21:54:13 init config files is over .
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x14a pc=0xa27d54]

goroutine 1 [running]:
github.com/dgraph-io/badger.(*DB).View(0x24221c0?, 0xc000719e48)
/home/draksjahs/go/pkg/mod/github.com/dgraph-io/[email protected]/txn.go:676 +0x34
github.com/hktalent/scan4all/lib/util.(*KvDbOp).Get(0x2131586?, {0x206b128?, 0x35245d8?})
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/lib/util/kvDb.go:75 +0x71
github.com/hktalent/scan4all/brute.init.2.func1()
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/brute/fuzzAI.go:51 +0x16f
github.com/hktalent/scan4all/lib/util.DoInit(0x7?)
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/lib/util/config.go:417 +0xb6
main.main()
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/main.go:23 +0x5d

@hktalent
Copy link
Collaborator

hktalent commented Aug 4, 2022

download and use release 2.7.1
rm -rf . DbCache
reTry

@hktalent hktalent closed this as completed Aug 4, 2022
@draksjahs
Copy link
Author

Hi @hktalent ,
still same error;

2022/08/04 20:24:43 wait for init config files ...
2022/08/04 20:24:46 Init2 k-v db cannot open multiple processes at the same time, or please delete the .DbCache directory and try again: Mmap value log file. Path=.DbCache/000000.vlog. Error=exec format error
2022/08/04 20:24:46 init config files is over .
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x14a pc=0xa41c54]

goroutine 1 [running]:
github.com/dgraph-io/badger.(*DB).View(0x52a?, 0xc000769e48)
/home/draksjahs/go/pkg/mod/github.com/dgraph-io/[email protected]/txn.go:676 +0x34
github.com/hktalent/scan4all/lib/util.(*KvDbOp).Get(0x21608a2?, {0x20997a6?, 0x3565ac0?})
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/lib/util/kvDb.go:75 +0x71
github.com/hktalent/scan4all/brute.init.2.func1()
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/brute/fuzzAI.go:51 +0x16f
github.com/hktalent/scan4all/lib/util.DoInit(0x7?)
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/lib/util/config.go:417 +0xb6
main.main()
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/main.go:23 +0x5d

@hktalent
Copy link
Collaborator

hktalent commented Aug 5, 2022

that version?
1、mkdir db
2、download 2.7.2

reTry

@umar98
Copy link

umar98 commented Aug 5, 2022

Still facing the same issue

@draksjahs
Copy link
Author

Hi @hktalent ,
still not working. trying to use the latest version. same error;
command : scan4all

error;
2022/08/05 14:35:38 wait for init config files ...
2022/08/05 14:35:42 Init2 k-v db cannot open multiple processes at the same time, or please delete the .DbCache directory and try again: Mmap value log file. Path=.DbCache/000000.vlog. Error=exec format error
2022/08/05 14:35:42 init config files is over .
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x14a pc=0xa41c54]

goroutine 1 [running]:
github.com/dgraph-io/badger.(*DB).View(0x52a?, 0xc0063bbe48)
/home/draksjahs/go/pkg/mod/github.com/dgraph-io/[email protected]/txn.go:676 +0x34
github.com/hktalent/scan4all/lib/util.(*KvDbOp).Get(0x21608a2?, {0x20997a6?, 0x3565ac0?})
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/lib/util/kvDb.go:75 +0x71
github.com/hktalent/scan4all/brute.init.2.func1()
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/brute/fuzzAI.go:51 +0x16f
github.com/hktalent/scan4all/lib/util.DoInit(0x7?)
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/lib/util/config.go:417 +0xb6
main.main()
/home/draksjahs/go/pkg/mod/github.com/hktalent/[email protected]/main.go:23 +0x5d

@hktalent
Copy link
Collaborator

hktalent commented Aug 5, 2022

that version? 1、mkdir db 2、download 2.7.2

reTry

rm -rf .DbCache/

reTry

@draksjahs
Copy link
Author

Hi @hktalent ,
I already tried and got the same error again.

@hktalent
Copy link
Collaborator

hktalent commented Aug 6, 2022

windows?
what scan4all versions?
@draksjahs

hktalent added a commit that referenced this issue Aug 6, 2022
@draksjahs
Copy link
Author

draksjahs commented Aug 6, 2022

Hi @hktalent ,
yes windows OS but I use kali linux wsl.

what scan4all versions?

2.7.2 version I just tested the new version. 2.7.4 still got the same error again.

@hktalent
Copy link
Collaborator

hktalent commented Aug 6, 2022

@draksjahs
I use kali,is ok

wget -c 'https://github.com/hktalent/scan4all/releases/download/2.7.4/scan4all_2.7.4_linux_amd64.zip'
unzip scan4all_2.7.4_linux_amd64.zip
image
image

@draksjahs
Copy link
Author

Hi @hktalent ,
still got the same error again.
2022/08/07 21:11:58 wait for init config files ...
2022/08/07 21:11:59 Init2 k-v db cannot open multiple processes at the same time, or please delete the .DbCache directory and try again: Mmap value log file. Path=.DbCache/000000.vlog. Error=exec format error
2022/08/07 21:11:59 init config files is over .
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x14a pc=0xa28214]

goroutine 1 [running]:
github.com/dgraph-io/badger.(*DB).View(0x242cec0?, 0xc001151e48)
/home/runner/work/scan4all/scan4all/vendor/github.com/dgraph-io/badger/txn.go:676 +0x34
github.com/hktalent/scan4all/lib/util.(*KvDbOp).Get(0x2133af1?, {0x206cd55?, 0x3537f20?})
/home/runner/work/scan4all/scan4all/lib/util/kvDb.go:81 +0x71
github.com/hktalent/scan4all/brute.init.2.func1()
/home/runner/work/scan4all/scan4all/brute/fuzzAI.go:51 +0x16f
github.com/hktalent/scan4all/lib/util.DoInit(0x7?)
/home/runner/work/scan4all/scan4all/lib/util/config.go:428 +0xb6
main.main()
/home/runner/work/scan4all/scan4all/main.go:23 +0x5d

hktalent added a commit that referenced this issue Dec 10, 2022
hktalent added a commit that referenced this issue Sep 1, 2023
hktalent added a commit that referenced this issue Dec 11, 2023
hktalent added a commit that referenced this issue Dec 21, 2023
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

3 participants