GLIBC Break : Errors

$vi Segmentation fault $ $/lib/ld-linux.so.2 /bin/ls /bin/ls: error while loading shared libraries: /bin/ls: wrong ELF class: ELFCLASS64 $ $file /lib/ld-linux.so.2 Segmentation fault $ $su Segmentation fault $su – Segmentation fault $sudo 1866: [sudo: unknown uid 1000: who are you? $ $/etc/init.d/gpm restart Segmentation fault $ $ls -l 1955: [total 81960 Segmentation fault $ Typical Fix …

ls -X sort alphabetically by entry extension

commandline session $ls -lX total 1144 -rwxr-xr-x 1 jeffrin jeffrin 115430 Sep 28 01:11 bwt -rwxr-xr-x 1 jeffrin jeffrin 129354 Sep 28 01:11 ds -rw-r–r– 1 jeffrin jeffrin 1063 May 18 19:23 Makefile -rw——- 1 jeffrin jeffrin 3793 Dec 13 2005 README -rwxr-xr-x 1 jeffrin jeffrin 141313 Sep 28 01:11 testlcp drwxr-xr-x 2 jeffrin jeffrin …

Burrows–Wheeler Transform . 1994

commandline session $cat hello Hello. How are you $../bwt hello $ls hello hello~ hello.bwt $rm hello~ $ls hello hello.bwt $cat hello.bwt u.weo rHellyHaoo $ $hexdump hello.bwt 0000000 750a 772e 6f100 200a 4872 6c100 796c 6148 0000010 6f6f 0520 0000 0000 0000017 $../unbwt hello.bwt $ls hello hello.bwt hello.bwt.y $cat hello.bwt.y Hello. How are you $

Binary Tree Debug (Pre-order Related)

commandline session $gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB …

Binary Tree Debug (pre-order)

commandline session $gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB …

Binary Tree Debug II ( Insert Function )

commandline and also gdb session related $pwd /home/jeffrin $gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and …

Running Unit tests

commandline session $./utils/unittest_suite.py Number of test modules found: 59 autotest.client.kernel_versions_unittest: PASS autotest.client.shared.profiler_manager_unittest: PASS autotest.mirror.database_unittest: PASS autotest.client.shared.autotemp_unittest: PASS autotest.tko.utils_unittest: PASS autotest.client.harness_unittest: PASS autotest.client.shared.hosts.base_classes_unittest: PASS autotest.client.setup_job_unittest: PASS autotest.mirror.source_unittest: PASS autotest.client.fsinfo_unittest: PASS autotest.client.shared.base_job_unittest: PASS autotest.server.hosts.remote_unittest: PASS autotest.database_legacy.database_connection_unittest: FAIL autotest.server.hosts.monitors.monitors_util_unittest: PASS autotest.server.hosts.monitors.console_patterns_unittest: FAIL autotest.client.net.net_tc_unittest: PASS autotest.client.partition_unittest: PASS autotest.cli.user_unittest: PASS autotest.scheduler.drone_manager_unittest: PASS autotest.client.local_host_unittest: PASS autotest.cli.rpc_unittest: PASS autotest.scheduler.drones_unittest: PASS autotest.cli.job_unittest: PASS …