Project

General

Profile

Actions

Bug #683

closed

ppa: suricata-dbg contains no debug symbols

Added by Victor Julien over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

How to reproduce:

Start suricata in the foreground. Kill it with a abort signal

sudo kill -n ABRT `pidof suricata`

Suricata will now abort and dump core.
gdb /usr/bin/suricata core

In gdb
thread apply all bt

No Suricata function names will be printed, only ???

Further info:

I think "stripped" in this output means the symbols have been stripped:

# file /usr/bin/suricata
/usr/bin/suricata: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, stripped

The binary is bigger than the "suricata" one though:

(suricata-dbg) # ls -lh /usr/bin/suricata
-rwxr-xr-x 1 root root 3.6M 2012-12-04 03:14 /usr/bin/suricata
(suricata) # ls -lh /usr/bin/suricata
-rwxr-xr-x 1 root root 1.8M 2012-12-04 03:03 /usr/bin/suricata
Actions #1

Updated by Victor Julien over 11 years ago

Ah I see the difference between the packages. suricata-dbg has --enable-debug while the other has not. I think the -dbg should have CFLAGS="-ggdb -O0" instead of --enable-debug.

Actions #2

Updated by Peter Manev over 11 years ago

It has them (CFLAGS="-ggdb -O0") in the configure line , but your point about the "stripped" output could be correct.
plus we have to check the dh_strip behaviour as well ....
investigating...

Actions #3

Updated by Peter Manev over 11 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed and updated in Ubuntu PPA

Actions #4

Updated by Victor Julien over 11 years ago

  • Status changed from Resolved to Closed
  • Target version set to 1.4

Confirmed, thanks Peter.

Actions

Also available in: Atom PDF