segfault at 0 ip 00007f7bd48ac7ac sp 00007fff53fa8610 error 4 in libperl.so.5.10.1[7f7bd47ef000+162000]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
postgresql-8.4 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Impossible to use DBI with DBD::mysql on Ubuntu 10.04.1 LTS.
I get Segmentation fault of Perl when exiting the script.
It seems that there is an internal destructor for DBD which is called on script exit which produce this segfault error.
I can repeat the error at any time.
Here are the details:
root@trashmail /var/www/
Segmentation fault
(gdb) r ./recv_
Starting program: /usr/bin/perl ./recv_
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b2e7ac in Perl_sv_clear () from /usr/lib/
(gdb) ba
#0 0x00007ffff7b2e7ac in Perl_sv_clear () from /usr/lib/
#1 0x00007ffff7b2eed2 in Perl_sv_free2 () from /usr/lib/
#2 0x00007ffff7b23e22 in ?? () from /usr/lib/
#3 0x00007ffff7b23e81 in Perl_sv_clean_objs () from /usr/lib/
#4 0x00007ffff7ac3be9 in perl_destruct () from /usr/lib/
#5 0x0000000000400d1c in main ()
strace:
pipe([6, 7]) = 0
clone(child_
close(7) = 0
dup2(5, 4) = 4
close(5) = 0
read(6, "", 4) = 0
close(6) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff2c2f3350) = -1 EINVAL (Invalid argument)
lseek(4, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
write(4, "From <email address hidden> Sat Sep 1"..., 330) = 330
close(4) = 0
rt_sigaction(
rt_sigaction(
rt_sigaction(
wait4(7015, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 7015
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(
rt_sigaction(
rt_sigaction(
stat("/
stat("/
stat("/
stat("/
stat("/
stat("/
stat("/
stat("/
stat("/
stat(".
poll([{fd=3, events=
write(3, "\t\0\0\
read(3, "\7\0\0\
write(3, "\1\0\0\0\1", 5) = 5
shutdown(3, 2 /* send and receive */) = 0
close(3) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
# uname -ar
Linux trashmail 2.6.32-23-server #37-Ubuntu SMP Fri Jun 11 09:11:11 UTC 2010 x86_64 GNU/Linux
dmesg:
[ 8819.042703] perl[13414]: segfault at 0 ip 00007f7bd48ac7ac sp 00007fff53fa8610 error 4 in libperl.
# perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=
uname='linux crested 2.6.24-27-server #1 smp fri mar 12 01:23:09 utc 2010 x86_64 gnulinux '
config_
hint=
useithreads
useperlio=
use64bitint
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-
optimize='-O2 -g',
cppflags=
ccversion='', gccversion='4.4.3', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=
gnulibc_
Dynamic Linking:
dlsrc=
cccdlflags=
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_
Built under linux
Compiled at Apr 23 2010 08:21:31
@INC:
/etc/perl
/usr/
/usr/
/usr/lib/perl5
/usr/
/usr/
/usr/
/usr/
.
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | New → Incomplete |
Changed in linux (Ubuntu): | |
status: | Incomplete → New |
Hi Stephan,
Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http:// cdimage. ubuntu. com/daily/ current/ . If the issue remains, please run the following command from a Terminal (Applications- >Accessories- >Terminal) . It will automatically gather and attach updated debug information to this report.
apport-collect -p linux 641998
Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https:/ /wiki.ubuntu. com/KernelMainl ineBuilds . Once you've tested the upstream kernel, please remove the 'needs- upstream- testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs- upstream- testing' text. Please let us know your results.
Thanks in advance.
[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]