atftp crashed with SIGSEGV in __strcasecmp()

Bug #686301 reported by Carl Karsten
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
atftp (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: atftp

It only happens when stdin has been redirected, and when it needs to prompt.

(veyepar)juser@dhcp42:~$ echo "get pxelinux.cfg/default" | atftp shaz
tftp> get pxelinux.cfg/default
Overwite local file [y/n]? Segmentation fault (core dumped)
(veyepar)juser@dhcp42:~$ atftp shaz <<< "get pxelinux.cfg/default"
tftp> get pxelinux.cfg/default
Overwite local file [y/n]? Segmentation fault (core dumped)
(veyepar)juser@dhcp42:~$ atftp shaz
tftp> get pxelinux.cfg/default
Overwite local file [y/n]? y
tftp>
(veyepar)juser@dhcp42:~$ rm default
(veyepar)juser@dhcp42:~$ atftp shaz <<< "get pxelinux.cfg/default"
tftp> get pxelinux.cfg/default
tftp>
(veyepar)juser@dhcp42:~$ atftp shaz <<< "get pxelinux.cfg/default"
tftp> get pxelinux.cfg/default
Overwite local file [y/n]? Segmentation fault (core dumped)
(veyepar)juser@dhcp42:~$

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: atftp 0.7.dfsg-9.2
ProcVersionSignature: Ubuntu 2.6.37-7.19-generic 2.6.37-rc3
Uname: Linux 2.6.37-7-generic i686
Architecture: i386
CrashCounter: 1
Date: Mon Dec 6 20:36:46 2010
ExecutablePath: /usr/bin/atftp
ProcCmdline: atftp shaZ
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US
SegvAnalysis:
 Segfault happened at: 0x8d9d2b <__strcasecmp+59>: movzbl (%esi,%edx,1),%edi
 PC (0x008d9d2b) ok
 source "(%esi,%edx,1)" (0x00000000) not located in a known VMA region (needed readable region)!
 destination "%edi" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: atftp
StacktraceTop:
 __strcasecmp (s1=0x0, s2=0x8050a24 "y") at strcasecmp.c:65
 ?? ()
 ?? ()
 ?? ()
 __libc_start_main (main=0x804b730, argc=2, ubp_av=0xbfde6204, init=0x8050680, fini=0x8050670, rtld_fini=0xbf3ac0 <_dl_fini>, stack_end=0xbfde61fc) at libc-start.c:226
Title: atftp crashed with SIGSEGV in __strcasecmp()
UserGroups: adm admin audio cdrom dialout lpadmin plugdev video

Revision history for this message
Carl Karsten (carlfk) wrote :
visibility: private → public
Revision history for this message
Apport retracing service (apport) wrote :

Stacktrace:
 #0 0x008d9d2b in __strpbrk_ia32 () from /lib/libc.so.6
 No symbol table info available.
 #1 0x08048bec in ?? ()
 No symbol table info available.
 Backtrace stopped: previous frame inner to this frame (corrupt stack?)
StacktraceTop:
 __strpbrk_ia32 () from /lib/libc.so.6
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in atftp (Ubuntu):
status: New → Invalid
Revision history for this message
Apport retracing service (apport) wrote : Crash report cannot be processed

Thank you for your report!

However, processing it in order to get sufficient information for the
developers failed (it does not generate an useful symbolic stack trace). This
might be caused by some outdated packages which were installed on your system
at the time of the report:

libc6-dbg: installed version 2.12.1-0ubuntu9, latest version: 2.12.1-0ubuntu10
libc-bin: installed version 2.12.1-0ubuntu9, latest version: 2.12.1-0ubuntu10
libc6: installed version 2.12.1-0ubuntu9, latest version: 2.12.1-0ubuntu10

Please upgrade your system to the latest package versions. If you still
encounter the crash, please file a new report.

Thank you for your understanding, and sorry for the inconvenience!

tags: removed: need-i386-retrace
Revision history for this message
Paul Hewlett (phewlett76) wrote :

I get the same result on 64bit ubuntu 16.04 when following this link:

https://help.ubuntu.com/community/Installation/QuickNetboot

Please advise how to fix...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.