You have been subscribed to a public bug by Jamie Strandboge (jdstrand):

Binary package hint: libc6

Hi, I am programming for some months in perl and Ansi-c using POSIX interfaces, 
so calling c-compiled methods from a perl programm.
My software compostition worked well for some time, but now it breaks on 
(k)ubuntu hoary 8.0x with kernel  2.6.24-15-generic #1 SMP (2008 i686 
GNU/Linux). It breaks at an intern call of calloc or malloc (files 
/lib/libc.so.6, /lib/tls/i686/cmov/libc.so.6) obtaining a stack failure.
This is not really nice. Because I am no hardware closed developer, I cannot 
resolve the problem by myself. But in fact it is no lack of my programming, 
because the same source code works well under suse 10.3 ( kernel 2.6.22-x ) as 
well as MacOSX 10.4.3.
So there must have changed  something elementary in the programming of the 
memory management and seems to be a real problem.
First there is given a runtime-console-report and second an output given 
through my debugging under IDE eclipse with plugins epic and cdt 
( Versions gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7), perl5.8.8 ).

Cheers,
Martin

=====================
-      Runtime- Console Output       -
=====================

/home/martin/Proteindata/pvecs_r6/saent/d1kjqa2.vec not found -recalculating.
*** stack smashing detected ***: perl terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7e9b138]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7e9b0f0]
/home/martin/Development/wurst_circperm/src/Wurst/blib/arch/auto/Wurst/Wurst.so[0xb7c31694]
/home/martin/Development/wurst_circperm/src/Wurst/blib/arch/auto/Wurst/Wurst.so(get_clssfcn+0x1086)[0xb7c0f647]
/home/martin/Development/wurst_circperm/src/Wurst/blib/arch/auto/Wurst/Wurst.so(aa_strct_clssfcn_read+0x58)[0xb7c1fd71]
/home/martin/Development/wurst_circperm/src/Wurst/blib/arch/auto/Wurst/Wurst.so(XS_Wurst_aa_strct_clssfcn_read+0x187)[0xb7be94a7]
perl(Perl_pp_entersub+0x313)[0x80c22d3]
perl(Perl_runops_standard+0x1b)[0x80c0cab]
perl(perl_run+0x2db)[0x806727b]
perl(main+0x112)[0x8063792]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7dc4450]
perl[0x8063611]
======= Memory map: ========
08048000-0814d000 r-xp 00000000 08:06 152232     /usr/bin/perl
0814d000-08151000 rw-p 00104000 08:06 152232     /usr/bin/perl
08151000-0846b000 rw-p 08151000 00:00 0          [heap]
b7b92000-b7b9c000 r-xp 00000000 08:06 4271       /lib/libgcc_s.so.1
b7b9c000-b7b9d000 rw-p 0000a000 08:06 4271       /lib/libgcc_s.so.1
b7bb9000-b7bd4000 r-xp 00000000 08:06 78693      
/usr/lib/perl/5.8.8/auto/POSIX/POSIX.so
b7bd4000-b7bd5000 rw-p 0001a000 08:06 78693      
/usr/lib/perl/5.8.8/auto/POSIX/POSIX.so
b7bd5000-b7c39000 r-xp 00000000 08:02 1095477    
/media/hda2/Development/DevelopmentDiplom/Pepperoni/wurst_circperm/src/Wurst/blib/arch/auto/Wurst/Wurst.so
b7c39000-b7c3a000 rw-p 00064000 08:02 1095477    
/media/hda2/Development/DevelopmentDiplom/Pepperoni/wurst_circperm/src/Wurst/blib/arch/auto/Wurst/Wurst.so
b7c3a000-b7c5b000 rw-p b7c3a000 00:00 0
b7c5b000-b7c9a000 r--p 00000000 08:06 271201     
/usr/lib/locale/de_DE.utf8/LC_CTYPE
b7c9a000-b7d7b000 r--p 00000000 08:06 282658     
/usr/lib/locale/de_DE.utf8/LC_COLLATE
b7d7b000-b7d7c000 rw-p b7d7b000 00:00 0
b7d7c000-b7d85000 r-xp 00000000 08:06 147517     
/lib/tls/i686/cmov/libcrypt-2.7.so
b7d85000-b7d87000 rw-p 00008000 08:06 147517     
/lib/tls/i686/cmov/libcrypt-2.7.so
b7d87000-b7dae000 rw-p b7d87000 00:00 0
b7dae000-b7ef7000 r-xp 00000000 08:06 147515     /lib/tls/i686/cmov/libc-2.7.so
b7ef7000-b7ef8000 r--p 00149000 08:06 147515     /lib/tls/i686/cmov/libc-2.7.so
b7ef8000-b7efa000 rw-p 0014a000 08:06 147515     /lib/tls/i686/cmov/libc-2.7.so
b7efa000-b7efd000 rw-p b7efa000 00:00 0
b7efd000-b7f11000 r-xp 00000000 08:06 147541     
/lib/tls/i686/cmov/libpthread-2.7.so
b7f11000-b7f13000 rw-p 00013000 08:06 147541     
/lib/tls/i686/cmov/libpthread-2.7.so
b7f13000-b7f16000 rw-p b7f13000 00:00 0
b7f16000-b7f39000 r-xp 00000000 08:06 147521     /lib/tls/i686/cmov/libm-2.7.so
b7f39000-b7f3b000 rw-p 00023000 08:06 147521     /lib/tls/i686/cmov/libm-2.7.so
b7f3b000-b7f3d000 r-xp 00000000 08:06 147518     /lib/tls/i686/cmov/libdl-2.7.so
b7f3d000-b7f3f000 rw-p 00001000 08:06 147518     /lib/tls/i686/cmov/libdl-2.7.so
b7f44000-b7f46000 r-xp 00000000 08:06 81463      
/usr/lib/perl/5.8.8/auto/Sys/Hostname/Hostname.so
b7f46000-b7f47000 rw-p 00001000 08:06 81463      
/usr/lib/perl/5.8.8/auto/Sys/Hostname/Hostname.so
b7f47000-b7f49000 r-xp 00000000 08:06 78646      
/usr/lib/perl/5.8.8/auto/Cwd/Cwd.so
b7f49000-b7f4a000 rw-p 00001000 08:06 78646      
/usr/lib/perl/5.8.8/auto/Cwd/Cwd.so
b7f4a000-b7f4b000 r--p 00000000 08:06 282631     
/usr/lib/locale/de_DE.utf8/LC_NUMERIC
b7f4b000-b7f4c000 r--p 00000000 08:06 282660     
/usr/lib/locale/de_DE.utf8/LC_TIME
b7f4c000-b7f4d000 r--p 00000000 08:06 282664     
/usr/lib/locale/de_DE.utf8/LC_MONETARY
b7f4d000-b7f4e000 r--p 00000000 08:06 282627     
/usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7f4e000-b7f4f000 r--p 00000000 08:06 270909     
/usr/lib/locale/de_DE.utf8/LC_PAPER
b7f4f000-b7f50000 r--p 00000000 08:06 282690     
/usr/lib/locale/de_DE.utf8/LC_NAME
b7f50000-b7f51000 r--p 00000000 08:06 282693     
/usr/lib/locale/de_DE.utf8/LC_ADDRESS
b7f51000-b7f52000 r--p 00000000 08:06 282699     
/usr/lib/locale/de_DE.utf8/LC_TELEPHONE
b7f52000-b7f53000 r--p 00000000 08:06 271374     
/usr/lib/locale/de_DE.utf8/LC_MEASUREMENT
b7f53000-b7f5a000 r--s 00000000 08:06 155706     
/usr/lib/gconv/gconv-modules.cache
b7f5a000-b7f5b000 r--p 00000000 08:06 282715     
/usr/lib/locale/de_DE.utf8/LC_IDENTIFICATION
b7f5b000-b7f5d000 rw-p b7f5b000 00:00 0
b7f5d000-b7f5e000 r-xp b7f5d000 00:00 0          [vdso]
b7f5e000-b7f78000 r-xp 00000000 08:06 4394       /lib/ld-2.7.so
b7f78000-b7f7a000 rw-p 00019000 08:06 4394       /lib/ld-2.7.so
bff99000-bffae000 rw-p bffeb000 00:00 0          [stack]
Aborted



==================================
-   Debug Information Output  (IDE eclipse epic and cdt)   -
===================================
[New Thread 0xb7d3a8c0 (LWP 13005)]
[Switching to Thread 0xb7d3a8c0 (LWP 13005)]
Current language:  auto; currently asm
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Current language:  auto; currently c
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Stopped due to shared library event
Single stepping until exit from function _dl_debug_state, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function calloc, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function malloc, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function __libc_dl_error_tsd, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function malloc, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function calloc, 
which has no line number information.
Stopped due to shared library event
Single stepping until exit from function _dl_debug_state, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function pthread_mutex_unlock, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function __pthread_mutex_unlock_usercnt, 
which has no line number information.
mi_cmd_var_create: unable to create variable object
mi_cmd_var_create: unable to create variable object
Single stepping until exit from function __kernel_vsyscall, 
which has no line number information.

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: asm calloc gcc4.2.3 libc libc.so stack tls
-- 
Thread-Local Storage (tls)  Stack Bug: libc.so6, calloc, stack, Bug 
fortify_fail 
https://bugs.launchpad.net/bugs/235450
You received this bug notification because you are a member of Ubuntu Bugs, 
which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to