I am on vacation next week so I will have a little free time to look into it. Thanks for the report.
Hi,
I don't if i mess something but crunch segfault on my computer.
I did an backtrace (it's my first one so ...)
But first some info :
I compil crunch with this opts:Portage 2.2_rc49 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31-zen5 i686)
================================================== ===============
System uname: Linux-2.6.31-zen5-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 18 Nov 2009 05:30:24 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python: 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.5.2-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils: 2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=core2 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=core2 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache confcache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="cutted"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu"
LINGUAS="fr"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/otih /usr/local/portage/adaptec /usr/local/portage/subtitleeditor /usr/local/portage/wine_hacked /usr/local/portage/x264 /usr/local/portage/mplayer"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa bash-completion berkdb bzip2 cli cracklib crypt cups dbus dri fortran freetype gdbm gif gpm hal hashstyle iconv jpeg kde mmx modules mudflap ncurses nls nptl nptlonly nvidia opengl openmp pam pcre perl png pppd python qt3support qt4 readline reflection session spl sse sse2 ssl ssse3 sysfs tcpd truetype type1 unicode x86 xcomposite xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" LIRC_DEVICES="asusdh" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
"-Wall -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=core2 -O2 -ggdb"
The backtrace log :
The backtrace print in the shell from libc :Starting program: /home/jerome/crunch/crunch 3 3 -h mon dad sister
Program received signal SIGABRT, Aborted.
0xb7fff424 in __kernel_vsyscall ()
#0 0xb7fff424 in __kernel_vsyscall ()
#1 0x4de47421 in raise () from /lib/libc.so.6
#2 0x4de48b62 in abort () from /lib/libc.so.6
#3 0x4de824d5 in ?? () from /lib/libc.so.6
#4 0x00000007 in ?? ()
#5 0xbfffe890 in ?? ()
#6 0x00000400 in ?? ()
#7 0xbfffe7ac in ?? ()
#8 0x4df41c38 in ?? () from /lib/libc.so.6
#9 0x00000017 in ?? ()
#10 0xbffff155 in ?? ()
#11 0x0000001a in ?? ()
#12 0x4df41c51 in ?? () from /lib/libc.so.6
#13 0x00000002 in ?? ()
#14 0x4df3e726 in ?? () from /lib/libc.so.6
#15 0x00000017 in ?? ()
#16 0x4df41c55 in ?? () from /lib/libc.so.6
#17 0x00000004 in ?? ()
#18 0xbfffedbf in ?? ()
#19 0x00000008 in ?? ()
#20 0x4df41c5b in ?? () from /lib/libc.so.6
#21 0x00000005 in ?? ()
#22 0x00000000 in ?? ()
Hope, this could help.*** glibc detected *** /home/jerome/crunch/crunch: free(): invalid pointer: 0x4de168e0 ***
======= Backtrace: =========
/lib/libc.so.6[0x4de88311]
/lib/libc.so.6[0x4de89b88]
/lib/libc.so.6(cfree+0x6d)[0x4de8cc3d]
/home/jerome/crunch/crunch[0x8049b7d]
/lib/libc.so.6(__libc_start_main+0xe6)[0x4de33bb6]
/home/jerome/crunch/crunch[0x8048991]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 08:05 17425 /home/jerome/crunch/crunch
0804c000-0804d000 r--p 00003000 08:05 17425 /home/jerome/crunch/crunch
0804d000-0804e000 rw-p 00004000 08:05 17425 /home/jerome/crunch/crunch
0804e000-0806f000 rw-p 00000000 00:00 0 [heap]
41014000-4102f000 r-xp 00000000 08:03 15350 /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libgcc_s.so.1
4102f000-41030000 r--p 0001a000 08:03 15350 /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libgcc_s.so.1
41030000-41031000 rw-p 0001b000 08:03 15350 /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libgcc_s.so.1
4ddf9000-4de15000 r-xp 00000000 08:03 6901 /lib/ld-2.11.so
4de15000-4de16000 r--p 0001b000 08:03 6901 /lib/ld-2.11.so
4de16000-4de17000 rw-p 0001c000 08:03 6901 /lib/ld-2.11.so
4de1d000-4df5c000 r-xp 00000000 08:03 6912 /lib/libc-2.11.so
4df5c000-4df5d000 ---p 0013f000 08:03 6912 /lib/libc-2.11.so
4df5d000-4df5f000 r--p 0013f000 08:03 6912 /lib/libc-2.11.so
4df5f000-4df60000 rw-p 00141000 08:03 6912 /lib/libc-2.11.so
4df60000-4df63000 rw-p 00000000 00:00 0
b7e00000-b7e21000 rw-p 00000000 00:00 0
b7e21000-b7f00000 ---p 00000000 00:00 0
b7fdd000-b7fde000 rw-p 00000000 00:00 0
b7ffd000-b7fff000 rw-p 00000000 00:00 0
b7fff000-b8000000 r-xp 00000000 00:00 0 [vdso]
bffeb000-c0000000 rw-p 00000000 00:00 0 [stack]
Program received signal SIGABRT, Aborted.
0xb7fff424 in __kernel_vsyscall ()
If needed, i can provide more info
See you,
Jjeje007
I am on vacation next week so I will have a little free time to look into it. Thanks for the report.
I like the bleeding edge, but I don't like blood loss
The command you want should be:
crunch 3 3 -m mom dad sister
There is no -h option.
Also there is a Makefile included that you should use instead of specifying your own options. There is no benefit to specifying -march as crunch is not processor dependent. The same is true for the -O2 option.
If you have any problems please let me know.
Thanks,
I like the bleeding edge, but I don't like blood loss
Hi bofh28.
I relay love your script, it's kinda JTR, but what i am relay missing is resume sesion just like JTR has it.
Can you please implement this in program?
This will slow it down a bit, and isn't the best solution but I figure if I start it people seem to come play golf and fix it, which will hopefully reduce some of your workload later. PseudoCode:
Code:printf("%s", currentPassword); emptyFile(file); fwrite(file, "CONF:%s", configurationOptions); fwrite(file, "%s", currentPassword); ... resume() { fread(file, configurationOptions); fread(file, currentPassword); return currentPassword; // configurationOptions is a global }
Still not underestimating the power...
There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.