Bug#330851: pxe: immediate segfault when started

2005-11-01 Thread alexandre-francois
OK, I found the problem in upstream source code :

all you have to do is to replace each "return()" calls by "exit()" calls in 
main function.

I attached a small patch to this email, changing the 2 calls I found in pxe.cc.

Regards,
diff -urN pxe-1.4.2.old/pxe.cc pxe-1.4.2.new/pxe.cc
--- pxe-1.4.2.old/pxe.cc2005-11-01 20:49:26.0 +0100
+++ pxe-1.4.2.new/pxe.cc2005-11-01 20:49:58.0 +0100
@@ -263,7 +263,7 @@
if(-1 == chk)
{
std::cerr << "PXE daemon already running\n";
-   return(-1);
+   exit(-1);
}
 
// set the UID/GID to a low user
@@ -334,5 +334,5 @@
StartPxeService(configfile);
}

-   return(0);
+   exit(0);
 }


Bug#330851: pxe: immediate segfault when started

2005-09-29 Thread alexandre-francois
Package: pxe
Version: 1.4.2-2
Severity: grave
Justification: renders package unusable

*** Please type your report below this line ***

/etc/init.d/pxe start gives :
  Starting pxe: /etc/init.d/pxe: line 12: 25999 Segmentation fault
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec
$DAEMON

Here are the last line of "strace pxe" output :
  open("/var/log/pxe.log", 64, 0666)  = 4
  close(4)= 0
  chown("/var/log/pxe.log", 65534, 65534) = 0
  setgid(65534)   = 0
  setegid(65534, 65534, 65534, 0, 0xbf896374) = 0
  setuid(65534)   = 0
  seteuid(65534)  = 0
  signal(17, 0x1) = NULL
  fork()  = 26035
  _ZNSt13basic_filebufIcSt11char_traitsIcEE5closeEv(0xbf896314, 1, 65534,  0, 
0xbf896374) = 0
  _ZNSt12__basic_fileIcED1Ev(0xbf89634c, 1, 65534, 0, 0xbf896374)  = 0
  
  --- SIGSEGV (Segmentation fault) ---
  +++ killed by SIGSEGV +++

Here is the "gdb /usr/sbin/pxe" output :
  Program received signal SIGSEGV, Segmentation fault.
  0xb7e922cd in std::ostream::flush () from /usr/lib/libstdc++.so.6

On the other hand, the "pxe -d" command works like a charm.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.alf
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages pxe depends on:
ii  libc6 2.3.5-6GNU C Library: Shared libraries an
ii  libgcc1   1:4.0.1-9  GCC support library
ii  libstdc++64.0.1-9The GNU Standard C++ Library v3

Versions of packages pxe recommends:
pn  atftpd (no description available)
ii  dhcp3-server  3.0.3-4DHCP server for automatic IP addre
ii  syslinux  2.11-0.1   Bootloader for Linux/i386 using MS

-- no debconf information




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#330851: pxe: immediate segfault when started

2005-10-03 Thread alexandre-francois
FYI, the program segfaults when compiled with gcc >= 4.0.

If you try compiling the source package with gcc-3.3, pxe works again and 
doesn't segfault anymore.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]