Ticket #242 (new defect)

Opened 2 months ago

Last modified 2 months ago

avahi-daemon segfaults on ARM

Reported by: jamesmalone Assigned to: lennart
Priority: major Milestone:
Component: avahi-daemon Version:
Keywords: avahi-daemon arm segfault sigsegv cross compile Cc:

Description

Attempting to run avahi-daemon on ARM results in signal SIGSEGV.

BT: (gdb) run Starting program: /usr/sbin/avahi-daemon

Program received signal SIGSEGV, Segmentation fault. 0x0000dc14 in load_config_file (c=0x338cc) at main.c:535 535 main.c: No such file or directory.

in main.c

(gdb) bt full

#0 0x0000dc14 in load_config_file (c=0x338cc) at main.c:535

r = 1073864048

f = (AvahiIniFile? *) 0x0

g = (AvahiIniFileGroup? *) 0x0

PRETTY_FUNCTION = "load_config_file"

#1 0x000108ec in main (argc=1, argv=0xbe89ba54) at main.c:1413

pid = -1

r = 255

wrote_pid_file = 0

Change History

09/16/08 01:52:10 changed by lennart

Hmm, the line number 535 in that backtrace unfortunately isn't really helpful since it is just the line of the function declaration itself.

Could you recompile with -O0 -g and generate a new backtrace?

09/16/08 20:01:29 changed by jamesmalone

It is compiled with -O0 -g.

Generated arguments: "-g -O0 -fstack-protector -std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -fPIC"

09/23/08 00:21:08 changed by lennart

Hmm, I have no idea what could be going wrong. Seems to be ARM-specific and I have no access to ARM.

I fear I cannot help you and you'll have to sit down yourself and try to figure out with gdb what might be going wrong. Sorry!