Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › I've just done the unimaginable - I've crashed bash
New Posts  All Forums:Forum Nav:

I've just done the unimaginable - I've crashed bash

post #1 of 11
Thread Starter 
Code:
$ cd ~n*** glibc detected *** -bash: munmap_chunk(): invalid pointer: 0x000000000070ad08 ***
======= Backtrace: =========
/lib64/libc.so.6[0x7fe2f154a118]
/lib64/libnsl.so.1[0x7fe2f10c5c89]
/lib64/libnsl.so.1(_nsl_default_nss+0x3b)[0x7fe2f10c5e0b]
/lib64/libnss_nis.so.2(_nss_nis_setpwent+0x21)[0x7fe2f0eb0b51]
/lib64/libnss_compat.so.2[0x7fe2f12d04b9]
/lib64/libnss_compat.so.2(_nss_compat_setpwent+0x36)[0x7fe2f12d0626]
/lib64/libc.so.6[0x7fe2f15b93ba]
/lib64/libc.so.6(setpwent+0x6c)[0x7fe2f157688c]
-bash(rl_username_completion_function+0x74)[0x4a4624]
-bash(rl_completion_matches+0x92)[0x4a4772]
-bash[0x4778bd]
-bash(gen_compspec_completions+0x33)[0x477dc3]
-bash(compgen_builtin+0x2ce)[0x48ee6e]
-bash[0x436c13]
-bash[0x43bdaf]
-bash(execute_command_internal+0xdf0)[0x4387f0]
-bash(parse_and_execute+0x293)[0x47f193]
-bash(command_substitute+0x73d)[0x4504fd]
-bash[0x45b986]
-bash[0x4558ed]
-bash[0x4571e3]
-bash(expand_compound_array_assignment+0xc2)[0x467182]
-bash(assign_array_var_from_string+0x23)[0x467b43]
-bash[0x451f1b]
-bash[0x457adb]
-bash[0x43ae2c]
-bash(execute_command_internal+0xdf0)[0x4387f0]
-bash(execute_command+0x4f)[0x4394ff]
-bash[0x43a006]
-bash(execute_command_internal+0xf1b)[0x43891b]
-bash(execute_command_internal+0x1787)[0x439187]
-bash(execute_command+0x4f)[0x4394ff]
-bash(execute_command_internal+0x1753)[0x439153]
-bash(execute_command+0x4f)[0x4394ff]
-bash(execute_command_internal+0x1753)[0x439153]
-bash(execute_command+0x4f)[0x4394ff]
-bash(execute_command_internal+0x1753)[0x439153]
-bash(execute_command+0x4f)[0x4394ff]
-bash(execute_command_internal+0x1753)[0x439153]
-bash(execute_command_internal+0xc0f)[0x43860f]
-bash[0x43a737]
-bash(execute_shell_function+0x55)[0x43a9b5]
-bash(gen_compspec_completions+0x203)[0x477f93]
-bash[0x478a29]
-bash(programmable_completions+0x84)[0x478b14]
-bash[0x46fe18]
-bash[0x4a4858]
-bash(rl_complete_internal+0xfd)[0x4a5cbd]
-bash(_rl_dispatch_subseq+0x108)[0x49cad8]
-bash(readline_internal_char+0x97)[0x49d4b7]
-bash(readline+0x4d)[0x49d90d]
-bash[0x42d9b3]
-bash[0x4274b4]
-bash[0x42a385]
-bash(yyparse+0x490)[0x42df40]
-bash(parse_command+0x32)[0x4247f2]
-bash(read_command+0x66)[0x4248f6]
-bash(reader_loop+0x161)[0x424b41]
-bash(main+0x12f3)[0x424653]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x7fe2f14f4586]
-bash[0x422289]

laugher.gif
post #2 of 11
doh.gif
post #3 of 11
Golfclap.
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
post #4 of 11
Good time to switch to ksh
post #5 of 11
Thread Starter 
Quote:
Originally Posted by CaptainBlame View Post

Good time to switch to ksh
Not really. That would require installing ksh on hundreds of servers and rewriting some very lengthy environments too.
post #6 of 11
Quote:
Originally Posted by Plan9 View Post

Not really. That would require installing ksh on hundreds of servers and rewriting some very lengthy environments too.

Worth it smile.gif

I was just kidding, this last 2 months I have been working as a Linux admin at a university, thought I'd try it for fun. Was winding up my colleagues about the superiority of ksh over bash and they wouldn't hear of it. Then shell sock hit a few days later, at least I got to have fun with that.
post #7 of 11
Thread Starter 
Yeah, Shellshock was pretty embarrassing for quite a few people and I did end up completely removing Bash from a few outside facing servers because of it.

In fact, that crash would have been an indirect result of those problems since it was an older box with Bash manually compiled that crashed.

But in all honesty, if ever I do get to a stage of leaving bash, it would be for a shell I've written myself rather than ksh. I know Bash isn't the best shell out there, not by a long way. But it does everything I want it to do already and so rarely causes me problems that I just wouldn't ever find the motivation to port my stuff and mental man pages away from Bash.
post #8 of 11
Oh man. I was waiting for a certain someone to chime in.

Edit; that said. I don't disagree. Bash isn't and never has been the best shell. It has its utility though. I'd like to write a smarter terminal at some point in my life.
Edited by Xaero252 - 10/21/14 at 4:15am
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
post #9 of 11
@Xaero252 - Yes, but is it an EVIL certain someone? biggrin.gif



Bash crashing... Bash bashing.... shaight happens. All I can say is "Tcsh, Tcsh...Show me the csh. All can make mistakes, especially if you inhale that ksh.

(Please forgive me, there must've been some strange herb in my Earl Grey this morning)
Edited by enorbet2 - 10/22/14 at 11:14am
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Evga GTX 1070Ti  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14.2 MultiLib, Slackware 14.0 32 bit,... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Evga GTX 1070Ti  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14.2 MultiLib, Slackware 14.0 32 bit,... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
post #10 of 11
Thread Starter 
Ahh I'd kill for a cup of Earl Grey right now <3
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › I've just done the unimaginable - I've crashed bash