*******************************
* 42sh compiled with success. *
*******************************
bash-3.1$ ./42sh
Segmentation fault (core dumped)
bash-3.1$ gdb 42sh
GNU gdb 6.3
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 "i386-unknown-openbsd4.0"...
(gdb) run
Starting program: /home/clex/prog/42sh/42sh
Program received signal SIGSEGV, Segmentation fault.
0x1c00197c in check_conf_exist_var (file=0x8aa01000 "## 42sh configuration file\n\nprompt=\"<prompt> \"\nalias \"l\"=\"ls -al\"\nhistsize=100\ncolor=n\nPATH=/bin:/sbin\n")
at src/check_conf_exist_var.c:43
43 if ((file[i - 1] == '\n' || !file[i - 1]) && file[i + 1])
(gdb) where
#0 0x1c00197c in check_conf_exist_var (file=0x8aa01000 "## 42sh configuration file\n\nprompt=\"<prompt> \"\nalias \"l\"=\"ls -al\"\nhistsize=100\ncolor=n\nPATH=/bin:/sbin\n")
at src/check_conf_exist_var.c:43
#1 0x1c001a14 in check_conf_var (file=0xcf7f1c5c "Ô\035\177Ï") at src/check_conf_var.c:16
#2 0x1c0018c2 in check_conf (file=0x8aa01000 "## 42sh configuration file\n\nprompt=\"<prompt> \"\nalias \"l\"=\"ls -al\"\nhistsize=100\ncolor=n\nPATH=/bin:/sbin\n") at src/check_conf.c:16
#3 0x1c0034bd in main () at src/main.c:24
(gdb)