bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash segfaults processing a certain .bashrc file on AMD 64-bit machi


From: Chris Rodgers
Subject: Re: bash segfaults processing a certain .bashrc file on AMD 64-bit machine
Date: Thu, 18 Nov 2004 13:15:38 +0000

> > Description: If my .bashrc file contains the lines below, then newly
> > invoked copies of bash segfault on my new Redhat FC2 AMD 64-bit
> > machine. The same code works fine on a variety of i386 32-bit machine
> > (single, dual CPU) and on 64-bit Sun machines. I got the cleanpath
> > function off the web, so it is conceivable that the problem is in
> > there. In that case, sorry for wasting your time... In any case, could
> > you give me some pointers to fixing this?
> 
> I can't reproduce this on my 64-bit powermac, using 2.05b or 3.0.
> 
> You could always generate a stack traceback from the core file after it
> segfaults:
> 
>       gdb bash core
>       (gdb) where
> 
> That might help pinpoint the problem.

OK, here's the output from gdb...

[347 hadamard ~]$ gdb bash
GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging
symbols found)...Using host libthread_db library
"/lib64/tls/libthread_db.so.1".
 
(gdb) run -l
Starting program: /bin/bash -l
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...Detaching after fork
from child process 2010.
Detaching after fork from child process 2012.
Detaching after fork from child process 2013.
Detaching after fork from child process 2014.
Detaching after fork from child process 2016.
Detaching after fork from child process 2019.
Detaching after fork from child process 2021.
Detaching after fork from child process 2022.
Detaching after fork from child process 2023.
Detaching after fork from child process 2024.
Detaching after fork from child process 2025.
Detaching after fork from child process 2026.
Detaching after fork from child process 2028.
 
Program received signal SIGSEGV, Segmentation fault.
0x000000345f5217ff in __gconv_transform_utf8_internal () from
/lib64/tls/libc.so.6
(gdb) where
#0  0x000000345f5217ff in __gconv_transform_utf8_internal () from
/lib64/tls/libc.so.6
#1  0x000000345f57401d in mbrtowc () from /lib64/tls/libc.so.6
#2  0x0000000000435366 in word_list_remove_quoted_nulls ()
#3  0x0000000000435984 in word_list_remove_quoted_nulls ()
#4  0x0000000000437d49 in pat_subst ()
#5  0x000000000043895f in pat_subst ()
#6  0x0000000000438e16 in pat_subst ()
#7  0x0000000000438f0d in pat_subst ()
#8  0x0000000000434539 in cond_expand_word ()
#9  0x00000000004345e4 in cond_expand_word ()
#10 0x000000000043461e in expand_string_unsplit ()
#11 0x0000000000434309 in string_rest_of_args ()
#12 0x0000000000433e4e in strip_trailing_ifs_whitespace ()
#13 0x000000000043a047 in expand_words_shellexp ()
#14 0x0000000000425736 in execute_command_internal ()
#15 0x0000000000423136 in execute_command_internal ()
#16 0x000000000044e197 in parse_and_execute ()
#17 0x0000000000425e16 in execute_command_internal ()
#18 0x00000000004264f4 in execute_shell_function ()
#19 0x000000000042599c in execute_command_internal ()
#20 0x0000000000423136 in execute_command_internal ()
#21 0x00000000004241ca in execute_command_internal ()
#22 0x000000000042337e in execute_command_internal ()
#23 0x00000000004233de in execute_command_internal ()
#24 0x0000000000426170 in execute_command_internal ()
#25 0x00000000004265a1 in execute_shell_function ()
#26 0x000000000042599c in execute_command_internal ()
#27 0x0000000000423136 in execute_command_internal ()
#28 0x000000000044e197 in parse_and_execute ()
#29 0x000000000044dd57 in eval_builtin ()
#30 0x000000000045395c in source_builtin ()
#31 0x0000000000425e16 in execute_command_internal ()
#32 0x00000000004264f4 in execute_shell_function ()
#33 0x000000000042599c in execute_command_internal ()
#34 0x0000000000423136 in execute_command_internal ()
#35 0x0000000000422ca6 in execute_command ()
#36 0x0000000000423352 in execute_command_internal ()
#37 0x000000000044e197 in parse_and_execute ()
#38 0x000000000044dd57 in eval_builtin ()
#39 0x000000000044dea3 in maybe_execute_file ()
#40 0x0000000000417880 in sh_exit ()
#41 0x00000000004170d5 in main ()
(gdb)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]