Jump to content


Photo

Bdscan Segmentation Fault


  • Please log in to reply
17 replies to this topic

#1 algifford

algifford

    Newbie

  • Members
  • 3 posts

Posted 21 November 2011 - 09:56 PM

after recent update, when I run "bdscan --info" I get the following:

#bdscan --info
BitDefender Antivirus Scanner for Unices v7.90123 Linux-amd64
Copyright © 1996-2009 BitDefender. All rights reserved.

Loading plugins, please wait / Segmentation fault
#

How should I proceed to determine which plug-in is tanking me?

#2 algifford

algifford

    Newbie

  • Members
  • 3 posts

Posted 21 November 2011 - 10:08 PM

QUOTE (algifford @ Nov 21 2011, 11:56 AM) <{POST_SNAPBACK}>
after recent update, when I run "bdscan --info" I get the following:

#bdscan --info
BitDefender Antivirus Scanner for Unices v7.90123 Linux-amd64
Copyright © 1996-2009 BitDefender. All rights reserved.

Loading plugins, please wait / Segmentation fault
#

How should I proceed to determine which plug-in is tanking me?


I ran the command I found in another response (see below) but it could not create the symbolic link because the file bdcore.so already existed. So, I deleted bdcore.so and reran and now it works...

cat /opt/BitDefender-scanner/var/lib/scan/versions.dat.* |awk '/bdcore.so.linux/{print $3}'|while read bdcore_so;do touch /opt/BitDefender-scanner/var/lib/scan/$bdcore_so;bdscan --update;ln -s /opt/BitDefender-scanner/var/lib/scan/$bdcore_so /opt/BitDefender-scanner/var/lib/scan/bdcore.so;done

#3 Andionescu

Andionescu

    Regular Poster

  • Technical Support
  • PipPip
  • 290 posts
  • Gender:Male

Posted 23 November 2011 - 12:17 PM

Hello Algifford,


Thanks for your posts.
If you have any questions please do not hesitate to contact us.

Regards,

Andrei

#4 JanJ

JanJ

    Newbie

  • Members
  • 1 posts

Posted 29 December 2011 - 06:13 AM

QUOTE (algifford @ Nov 21 2011, 09:08 PM) <{POST_SNAPBACK}>
I ran the command I found in another response (see below) but it could not create the symbolic link because the file bdcore.so already existed. So, I deleted bdcore.so and reran and now it works...

cat /opt/BitDefender-scanner/var/lib/scan/versions.dat.* |awk '/bdcore.so.linux/{print $3}'|while read bdcore_so;do touch /opt/BitDefender-scanner/var/lib/scan/$bdcore_so;bdscan --update;ln -s /opt/BitDefender-scanner/var/lib/scan/$bdcore_so /opt/BitDefender-scanner/var/lib/scan/bdcore.so;done



Hi.

I can confirm that this method works. Bitdefender works now under Unbuntu 11.10.

Thanks

#5 onzevil

onzevil

    Newbie

  • Members
  • 1 posts

Posted 02 January 2012 - 09:20 PM

The new knowledge of good and post it.

#6 algifford

algifford

    Newbie

  • Members
  • 3 posts

Posted 13 February 2012 - 06:35 PM

I am still interested in learning if a method exists for figuring out which plugin is seg faulting, short of removing them one by one until it works...Is there a log/trace file or some other method of determining what loaded last before the seg fault?

I appreciate your encouragement Andrei, but you did not answer the question in the post...

Thanks,

Al

#7 Andionescu

Andionescu

    Regular Poster

  • Technical Support
  • PipPip
  • 290 posts
  • Gender:Male

Posted 20 February 2012 - 12:49 PM

Hi algifford,

There is no log file. The issue was with a lib not a plugin.

Regards,

Andi

#8 whotwagner

whotwagner

    Newbie

  • Members
  • 2 posts

Posted 28 February 2012 - 05:30 PM

Hi,

I have a similar problem. When i install BitDefender-Antivirus-Scanner-7.6.4(amd64) it works, but as soon as i run bdscan --update the scanner segfaults.

CODE
bdscan info
BitDefender Antivirus Scanner for Unices v7.90123 Linux-amd64
Copyright (C) 1996-2009 BitDefender. All rights reserved.
Trial key found. 23 days remaining.

Infected file action: ignore
Suspected file action: ignore
Loading plugins, please wait | Segmentation fault


I have no idea how to solve this problem, maybe someone can help me?

greets
Wolfgang


#9 Andionescu

Andionescu

    Regular Poster

  • Technical Support
  • PipPip
  • 290 posts
  • Gender:Male

Posted 28 February 2012 - 07:15 PM

Hi,

Thank you for your post.
Please read more about the issue and also the fix from the forum link below:
http://forum.bitdefe...showtopic=30005

Regards,

Andi

#10 whotwagner

whotwagner

    Newbie

  • Members
  • 2 posts

Posted 29 February 2012 - 12:17 PM

I already ran the comand, but i also had to remove /opt/BitDefender-scanner/var/lib/scan/bdcore.so first. Now it works

Thank You

QUOTE (andionescu @ Feb 28 2012, 06:15 PM) <{POST_SNAPBACK}>
Hi,

Thank you for your post.
Please read more about the issue and also the fix from the forum link below:
http://forum.bitdefe...showtopic=30005

Regards,

Andi



#11 Andionescu

Andionescu

    Regular Poster

  • Technical Support
  • PipPip
  • 290 posts
  • Gender:Male

Posted 29 February 2012 - 12:24 PM

Great,

If you have any questions please feel free to contact us.

Regards,
Andi

#12 loshakova

loshakova

    Newbie

  • Members
  • 1 posts

Posted 02 March 2012 - 08:07 AM

QUOTE (andionescu @ Nov 23 2011, 12:17 PM) <{POST_SNAPBACK}>
Hello Algifford,


Thanks for your posts.
If you have any questions please do not hesitate to contact us.

Regards,

Andrei


Hello Andrei,
I am having a similar problem, getting segmentation fault errors whenever I try to scan root directory using bdgui or bd command line. I went through a procedure described on one of these help pages, and generated a core program crash data file. Can you tell me where to send it to you?
Thanks
Heidi


#13 Andionescu

Andionescu

    Regular Poster

  • Technical Support
  • PipPip
  • 290 posts
  • Gender:Male

Posted 22 March 2012 - 11:17 AM

Hi loshakova,

Sorry for the late reply.
Have you followed the steps from my previous post and you still have the segmentation error ?
Please can you provide an update status?

I await your reply.

Regards,

Andi

#14 terminator14

terminator14

    Newbie

  • Members
  • 3 posts

Posted 22 February 2013 - 03:56 AM

I realize this is an inactive thread, but this problem still exists with the latest version of Linux BitDefender and this is the first link people see when they google "bit defender segmentation fault" (at least it was for me). Here's a script that will fix it, and it's easier to use than the "cat /opt/BitDefe..." line:

http://forum.bitdefe...showtopic=42676

#15 desdic

desdic

    Newbie

  • Members
  • 1 posts

Posted 31 May 2013 - 03:15 PM

I have the same issue. Running a strace on it shows that it tries to load a .dll file (and its not there)

lseek(7, 0, SEEK_CUR) = 0
Loading plugins, please wait - "\300\1\300\336\t\0\0\0004\0\7\0\235\1\0\0\4\0\7\0\3\0\0\0\321\1\7\0%\0\0\0"..., 193499) = 193499
lseek(7, 193499, SEEK_SET) = 193499
close(7) = 0
mmap(NULL, 478760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4039b58000
mprotect(0x7f4039b58000, 424416, PROT_READ|PROT_EXEC) = 0
mprotect(0x7f4039bc0000, 52776, PROT_READ|PROT_WRITE) = 0
munmap(0x7f4039b58000, 478760) = 0
stat("kernel32.dll", 0x7fff7570bed8) = -1 ENOENT (No such file or directory)
stat("kernel32.dll", 0x7fff7570bed8) = -1 ENOENT (No such file or directory)
stat("kernel32.dll", 0x7fff7570bed8) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

(gdb) r /root/invoice\ copy.exe
Starting program: /opt/BitDefender-scanner/bin/bdscan /root/invoice\ copy.exe
[Thread debugging using libthread_db enabled]
BitDefender Antivirus Scanner for Unices v7.90123 Linux-amd64
Copyright © 1996-2009 BitDefender. All rights reserved.
Trial key found. 30 days remaining.

Infected file action: ignore
Suspected file action: ignore
[New Thread 0x7ffff659f700 (LWP 3099)]
Loading plugins, please wait /
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff65ae01b in ?? () from /opt/BitDefender-scanner/var/lib/scan/bdcore.so
(gdb) where
#0 0x00007ffff65ae01b in ?? () from /opt/BitDefender-scanner/var/lib/scan/bdcore.so
#1 0x00007ffff65ad4ea in ?? () from /opt/BitDefender-scanner/var/lib/scan/bdcore.so
#2 0x0000000000000000 in ?? ()
(gdb) info reg
rax 0x7fffffff7fb8 140737488322488
rbx 0x0 0
rcx 0x54 84
rdx 0x0 0
rsi 0x0 0
rdi 0x7fffffff8048 140737488322632
rbp 0x0 0x0
rsp 0x7fffffff7fb8 0x7fffffff7fb8
r8 0x90 144
r9 0x101010101010101 72340172838076673
r10 0x7ffff65adff0 140737326538736
r11 0x7ffff74597c0 140737341921216
r12 0x0 0
r13 0x7fffffff8130 140737488322864
r14 0x0 0
r15 0x0 0
rip 0x7ffff65ae01b 0x7ffff65ae01b
eflags 0x10206 [ PF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x7 7
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]



#16 Cachorro Podre

Cachorro Podre

    Newbie

  • Members
  • 1 posts

Posted 11 June 2014 - 12:01 AM

root@debian:/home/fabio# bdgui

(bdgui:19328): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

root@debian:/home/fabio# bdscan --info
BitDefender Antivirus Scanner for Unices v7.90123 Linux-amd64 (debian)
Copyright © 1996-2009 BitDefender. Todos os direitos reservados.

-----------------------------------------

Those errors only occur after the first update, before that i could scan my windows partition (that is the main reason for me to have AV on Linux).
I can see the main panel of the BitDefender, update it, change it's configuration, i can select the path to scan but right after the start of the scan i have the first message.


#17 NoOp

NoOp

    Newbie

  • Members
  • 1 posts

Posted 17 June 2014 - 09:12 AM

$ bdscan --info
BitDefender Antivirus Scanner for Unices v7.90123 Linux-amd64
Copyright © 1996-2009 BitDefender. All rights reserved.
This program is licensed for home or personal use only.
Usage in an office or production environment represents
a violation of the license terms

Loading plugins, please wait
Plugins loaded.

Engine signatures: 11902502
Scan engines: 15
Archive engines: 52
Unpack engines: 10
Mail engines: 8
System engines: 5
Update time GMT: Mon Jun 16 16:27:12 2014
Version: 7.55366
License expire date: Jun 16 2015

Ubuntu 14.04 gnome-fallback mode
Linux g 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linu
$ apt-cache policy bitdefender-scanner-gui
bitdefender-scanner-gui:
Installed: 1.0-3

I can reliably segfault when running as a regular user:

mmap(NULL, 2118280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 17, 0) = 0x7fb8f5f84000
mprotect(0x7fb8f5f88000, 2097152, PROT_NONE) = 0
mmap(0x7fb8f6188000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 17, 0x4000) = 0x7fb8f6188000
close(17) = 0
mprotect(0x7fb8f6188000, 4096, PROT_READ) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x4e} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

To trigger the segfault all I need to do is select a directory with many subdirectories (on my linux ext4 /home) and quickly scroll up and down the direcory/file list. If I do not scroll quickly, but instead simply select a directory, I can generally run the scan with only the expected file permission issues.

However, if I run using:

$ gksu bdgui

the scanner works properly.

#18 John Smith 2014

John Smith 2014

    Newbie

  • Members
  • 2 posts

Posted 17 July 2014 - 02:33 AM

QUOTE (andionescu @ Nov 23 2011, 06:17 AM) <{POST_SNAPBACK}>
Hello Algifford,


Thanks for your posts.
If you have any questions please do not hesitate to contact us.

Regards,

Andrei


I recently installed BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run in Linux Mint 17 KDE x64. I (as most users) encountered the Segmentation Fault error when trying to run Update and Scan after installation. After applying the BitDefender patch, I again ran bdgui from Terminal (as root) and the program returned:

*** Error in `bdgui': free(): invalid pointer: 0x00007fd6ef7147e8 ***
Aborted


I previously ran BitDefender Antivirus Scanner for Unices in another distro of Linux without any problems and would very much like to continue using this excellent program.

Please advise.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users