Bug#391840: ztcfg segfaults because of -O4

2006-10-08 Thread Robert Millan
Package: zaptel Version: 1:1.2.9.1.dfsg-1 Severity: important When compiled with -finline-functions (implied by -O4), ztcfg segfaults: $ sudo gdb --args ztcfg -vvv [...] (gdb) r Starting program: /usr/sbin/ztcfg -vvv Notice: Configuration file is /etc/zaptel.conf line 221: Cannot get number of

Bug#391840: ztcfg segfaults because of -O4

2006-10-08 Thread Mark Purcell
Robert, On Monday 09 October 2006 05:37, Robert Millan wrote: You might want to add -fno-inline-functions to CFLAGS as a workaround (tested and known to work). Besides, I'm not sure if this also qualifies as a gcc bug and should be reported separately. Could someone enlighten me? :-)

Bug#391840: ztcfg segfaults because of -O4

2006-10-08 Thread Tzafrir Cohen
On Sun, Oct 08, 2006 at 09:37:51PM +0200, Robert Millan wrote: Package: zaptel Version: 1:1.2.9.1.dfsg-1 Severity: important When compiled with -finline-functions (implied by -O4), ztcfg segfaults: What is -O4? Should it be -O2? $ sudo gdb --args ztcfg -vvv [...] (gdb) r Starting

Bug#391840: ztcfg segfaults because of -O4

2006-10-08 Thread Tzafrir Cohen
On Mon, Oct 09, 2006 at 06:05:50AM +0200, Tzafrir Cohen wrote: One nice this about those errors is that ztcfg is kind enough to let us know that an error has occoured, but it keeps on working as if its data is not trash. It seems ztcfg should have aborted in the call to error() . Or try to