Page 1 of 1

anope segmentation fault on start

Posted: Sun Sep 25, 2005 8:22 am
by nix
I'm using the latest release of unrealircd and anope on amd64, when I try to start services I get a segmentation fault instantly. I've tried both the latest 1.6.x and 1.7.x versions of Anope, also.
nick@nix ~/services $ ./services -debug -nofork
[Sep 25 03:33:10.367339 2005] Segmentation fault
I tried running it under gdb, but it doesn't recognize it:
(gdb) run
Starting program: /home/nick/services/services

Program exited normally.
That happens instantly as I enter run, so it seg faults right away and exits.

Posted: Sun Sep 25, 2005 10:33 am
by w00t
Try:

gdb services

r -debug -nofork

;)

Posted: Sun Sep 25, 2005 11:00 am
by nix
Okay, well this is the output and backtrace if it's of any use:
(gdb) r -debug -nofork
Starting program: /home/nick/.ircd/services/services -debug -nofork
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 19680)]
[Sep 25 06:28:52.208937 2005]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 19680)]
0x00002aaaaafdcc20 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x00002aaaaafdcc20 in strlen () from /lib/libc.so.6
#1 0x00002aaaaafb3638 in vfprintf () from /lib/libc.so.6
#2 0x00002aaaaafb00e4 in cuserid () from /lib/libc.so.6
#3 0x00002aaaaafb026b in vfprintf () from /lib/libc.so.6
#4 0x0000000000427661 in alog (
fmt=0x4448b0 "Loading IRCD Protocol Module: [%s]") at log.c:162
#5 0x000000000042f94e in protocol_module_init () at modules.c:127
#6 0x0000000000423540 in init (ac=3, av=0x7fffffc34798) at init.c:449
#7 0x0000000000428e0f in main (ac=3, av=0x7fffffc34798, envp=0x7fffffc347b8)
at main.c:495

Posted: Sun Sep 25, 2005 5:32 pm
by Trystan