Re: Linux executable startup stack structure

2008-07-03 Thread Gilad Ben-Yossef
Hi, Shachar Shemesh wrote: am looking for some documentation on the structure of the stack when an executable starts. I know the basics - argc, then argv, then envp. What I'm interested in is what's beyond that. I've tried googling, reading the sources in the kernel for fs/binfmt_elf.c and

Re: Linux executable startup stack structure

2008-07-03 Thread Valery Reznic
Hi, Shachar. stack has following structure: argc argv envp AND auxv You can see auxv by running any dynamically linked executable as LD_SHOW_AUXV=1 program What you are looking for is AT_ENTRY Code that initialized user_entry is in the sysdeps/generic/dl-sysdep.c (look for 'case

Re: Linux executable startup stack structure

2008-07-03 Thread Shachar Shemesh
Valery Reznic wrote: P.S. And what do you need it for (except curiosity) ? It's going to be a somewhat long p.s. If you understood the problem I'm trying to solve, skip ahead to area marked proposed solution for how I'll be trying to solve it. Here's a piece of trivia for you.

Re: Linux executable startup stack structure

2008-07-03 Thread Valery Reznic
--- On Thu, 7/3/08, Shachar Shemesh [EMAIL PROTECTED] wrote: From: Shachar Shemesh [EMAIL PROTECTED] Subject: Re: Linux executable startup stack structure To: [EMAIL PROTECTED] Cc: Fakeroot NG [EMAIL PROTECTED], linux-il linux-il@cs.huji.ac.il Date: Thursday, July 3, 2008, 10:46 AM

Re: Linux executable startup stack structure

2008-07-03 Thread Shachar Shemesh
Valery Reznic wrote: I think your proposed solution will work (no reason why not) Actually, I can think of four or five reasons why it may fail, but I'll cross those bridges when I get to them. And if you change AT_ENTRY in the auxv you'll trick ld-linux to think it was loaded as

Grub weirdness

2008-07-03 Thread Noam Rathaus
Hi, We encountered a grub weirdness and I can't find any reference to this issue on the Internet. Recipe: 1) Install debian via debian-installer (testing version) 2) Get a standard desktop running 3) Download a tar.gz of another debian-installer based system 4) Boot into a network-based rescue

Re: Grub weirdness

2008-07-03 Thread Yedidyah Bar-David
On Thu, Jul 03, 2008 at 01:26:48PM +0300, Noam Rathaus wrote: Hi, We encountered a grub weirdness and I can't find any reference to this issue on the Internet. Recipe: 1) Install debian via debian-installer (testing version) 2) Get a standard desktop running 3) Download a tar.gz of

Re: Grub weirdness

2008-07-03 Thread Shachar Shemesh
Noam Rathaus wrote: Hi, We encountered a grub weirdness and I can't find any reference to this issue on the Internet. Recipe: 1) Install debian via debian-installer (testing version) 2) Get a standard desktop running 3) Download a tar.gz of another debian-installer based system 4) Boot into

Re: Grub weirdness

2008-07-03 Thread Noam Rathaus
I will try and get back to you :) On Thursday 03 July 2008 13:46:48 Yedidyah Bar-David wrote: On Thu, Jul 03, 2008 at 01:26:48PM +0300, Noam Rathaus wrote: Hi, We encountered a grub weirdness and I can't find any reference to this issue on the Internet. Recipe: 1) Install debian

Re: Grub weirdness

2008-07-03 Thread Noam Rathaus
Hi, The blue menu doesn't appear, only the prompt. Everything is identical the only different between before and after is that the tar.gz is based on stable kernel, while the installer was based on a testing kernel. But that shouldn't affect it, as I am basically replacing everything...

Re: Grub weirdness

2008-07-03 Thread Noam Rathaus
Hi, I mounted the problematic disk with a rescue disk. Under /mnt/custom Now when I try to run grub-install: grub-install --root-directory=/mnt/custom /dev/sda I get The file /mnt/custom/grub/boot/stage1 not read correctly On Thursday 03 July 2008 13:46:48 Yedidyah Bar-David wrote: On Thu,

Re: Grub weirdness

2008-07-03 Thread Shachar Shemesh
Noam Rathaus wrote: Hi, The blue menu doesn't appear, only the prompt. Can you boot anyways? Take the commands written in the menu.lst file under the kernel version you want and type them at the prompt one at a time, adding boot as the last command. It should start the right kernel. Was

Re: Grub weirdness

2008-07-03 Thread Shachar Shemesh
Noam Rathaus wrote: Hi, I mounted the problematic disk with a rescue disk. Under /mnt/custom Now when I try to run grub-install: grub-install --root-directory=/mnt/custom /dev/sda I get The file /mnt/custom/grub/boot/stage1 not read correctly Don't use --root-directory. Chroot into it.

Re: Grub weirdness

2008-07-03 Thread Yedidyah Bar-David
On Thu, Jul 03, 2008 at 02:03:13PM +0300, Noam Rathaus wrote: Hi, The blue menu doesn't appear, only the prompt. Everything is identical the only different between before and after is that the tar.gz is based on stable kernel, while the installer was based on a testing kernel. But

Re: Grub weirdness

2008-07-03 Thread Noam Rathaus
Hi, Issue is that if I chroot, there is no /dev/sda there.. unless u tell me how to manually create it :) On Thursday 03 July 2008 14:17:46 Shachar Shemesh wrote: Noam Rathaus wrote: Hi, I mounted the problematic disk with a rescue disk. Under /mnt/custom Now when I try to run

Re: Grub weirdness

2008-07-03 Thread Noam Rathaus
Hi, My aim is to take a dump of one server (tar.gz) and put it on a new server, effectively duplicating the computer. On Thursday 03 July 2008 14:21:54 Yedidyah Bar-David wrote: On Thu, Jul 03, 2008 at 02:03:13PM +0300, Noam Rathaus wrote: Hi, The blue menu doesn't appear, only the

Re: Grub weirdness

2008-07-03 Thread Noam Rathaus
I got the /dev/sda created under /mnt/custom The error still presists though... This is what I can find: If you get an error that says The file /boot/grub/stage1 not read correctly, it probably means that your fstab/mtab is incorrect for some reason and needs to be fixed. These files are

Re: Grub weirdness

2008-07-03 Thread Omer Zak
Since no one has already suggested the following, I'm making this suggestion: 1. cp -r /boot /tmp/boot-before 2. Untar the tarfile 3. cp -r /boot /tmp/boot-after 4. diff -r /tmp/boot-before /tmp/boot-after 5. Study the differences. 6. ??? 7. Profit! On Thu, 2008-07-03 at 15:04 +0300, Noam Rathaus

Re: Grub weirdness [solved]

2008-07-03 Thread Noam Rathaus
Hi, The problem is solved, the error still there if I do it from the rescue disk, but it boots if I do it manually from the grub prompt. Once it booted, I re-run grub-install and now it works without doing it from the prompt :) Thanks guy. On Thursday 03 July 2008 15:34:28 Noam Rathaus

Re: I need your addvice on ISP troubleshooting.

2008-07-03 Thread Dotan Cohen
2008/6/30 sara fink [EMAIL PROTECTED]: My first advice is to lie about the OS. Sadly that's the case. Or tell them you have another pc with windows and you have the same problem. They will ask you to click on all sorts of things as the idiot with the checklist checks things off. This route

New network device causes 'jump' from eth0 to eth1

2008-07-03 Thread Noam Rathaus
Hi, I moved an HD from one computer to another (not related to the grub issue :D), and because there is a different network card, eth0 is not longer present and now eth1 is the deacto network card. I don't want to reconfigure a few products I have bounded to eth0 (mainly firewall rules). How

Re: New network device causes 'jump' from eth0 to eth1

2008-07-03 Thread Shachar Shemesh
Noam Rathaus wrote: Hi, I moved an HD from one computer to another (not related to the grub issue :D), and because there is a different network card, eth0 is not longer present and now eth1 is the deacto network card. I don't want to reconfigure a few products I have bounded to eth0 (mainly

Re: New network device causes 'jump' from eth0 to eth1

2008-07-03 Thread Omer Zak
--=-norL4QRk5t43W51udD8G Content-Type: text/plain Content-Transfer-Encoding: 7bit The relevant file is /etc/network/interfaces - see man 5 interfaces. On Thu, 2008-07-03 at 16:27 +0300, Noam Rathaus wrote: Hi, I moved an HD from one computer to another (not related to the grub issue :D),

Re: New network device causes 'jump' from eth0 to eth1

2008-07-03 Thread Baruch Siach
Hi Noam, On Thu, Jul 03, 2008 at 04:27:29PM +0300, Noam Rathaus wrote: Hi, Or basically, where is it written that eth0 is 'thismodule' while eth1 is 'thisothermodule'? udev takes care of this. On Debian machines the relevant configuration file is /etc/udev/rules.d/z25_persistent-net.rules.

source for libtermcap

2008-07-03 Thread Aharon Schkolnik
Hi. I am looking for the source for /lib/libtermcap.so.2.0.8 which comes from rpm libtermcap-2.0.8-35. Everything I have found so far points me to sunsite, but I can not find the sources there. Does anyone know where I can find the sources ? TIA -- The day is short, and the work is

source for libtermcap - more information

2008-07-03 Thread Aharon Schkolnik
Hi. I am looking for the source for /lib/libtermcap.so.2.0.8 which comes from rpm libtermcap-2.0.8-35. Everything I have found so far points me to sunsite, but I can not find the sources there. I have also seen references to Homepage:

Re: Grub weirdness

2008-07-03 Thread Yedidyah Bar-David
On Thu, Jul 03, 2008 at 03:48:15PM +0300, Omer Zak wrote: Since no one has already suggested the following, I'm making this suggestion: 1. cp -r /boot /tmp/boot-before 2. Untar the tarfile 3. cp -r /boot /tmp/boot-after 4. diff -r /tmp/boot-before /tmp/boot-after 5. Study the differences.

Re: Grub weirdness

2008-07-03 Thread Yedidyah Bar-David
On Thu, Jul 03, 2008 at 03:04:05PM +0300, Noam Rathaus wrote: Hi, My aim is to take a dump of one server (tar.gz) and put it on a new server, effectively duplicating the computer. OK, so I repeat my suggestion below: Do not duplicate the files that belong to grub, only the rest of the

Re: Linux executable startup stack structure

2008-07-03 Thread Valery Reznic
--- On Thu, 7/3/08, Shachar Shemesh [EMAIL PROTECTED] wrote: From: Shachar Shemesh [EMAIL PROTECTED] Subject: Re: Linux executable startup stack structure To: [EMAIL PROTECTED] Cc: linux-il linux-il@cs.huji.ac.il, Fakeroot NG [EMAIL PROTECTED] Date: Thursday, July 3, 2008, 12:50 PM

X cursor problem

2008-07-03 Thread Shlomo Solomon
My cursor dissappeared. By randomly movng the mouse, I could see that the mouse was functioning (icons, windows, etc were highlighted so I could guess where the cursor should have been). I tried 2 possible solutions but neither solved the problem: 1 - ctrl-alt-Backspace to restart X 2 -

Gedit accelerator keys not working under KDE?

2008-07-03 Thread Omer Zak
I was not successful in using accelerator keys in Gedit, when running it under KDE desktop. Is this a known problem, or am I doing anything wrong? The relevant versions are: * Debian Etch Linux * KDE desktop, version 3.5.5 (the kdebase package version is 3.5.5a.dfsg.1-6etch2). * gedit 2.14.4 (the

Re: Linux executable startup stack structure

2008-07-03 Thread Shachar Shemesh
Valery Reznic wrote: Actually, I can think of four or five reasons why it may fail, but I'll cross those bridges when I get to them. Could you list them ? Let's see. Off the top of my head, these are not necessarily won't work problems, but obstacles to overcome: - I need to

Re: X cursor problem

2008-07-03 Thread Omer Zak
Looks like your cursor was loaded by an empty or transparent cursor image. On Thu, 2008-07-03 at 18:03 +0300, Shlomo Solomon wrote: My cursor dissappeared. By randomly movng the mouse, I could see that the mouse was functioning (icons, windows, etc were highlighted so I could guess where

Re: X cursor problem

2008-07-03 Thread Shlomo Solomon
Sounds logical, but: 1 - how did this happen in the middle of a session (uptime of a few weeks)? 2 - why didn't restarting X or the runlevel solve this? 3 - how could I have solved this without the re-boot? On Thursday 03 July 2008, Omer Zak wrote: Looks like your cursor was loaded by an empty

Re: Grub weirdness [solved]

2008-07-03 Thread Ehud Karni
On Thu, 3 Jul 2008 16:00:11 +0300, Noam Rathaus [EMAIL PROTECTED] wrote: The problem is solved, the error still there if I do it from the rescue disk, but it boots if I do it manually from the grub prompt. Once it booted, I re-run grub-install and now it works without doing it from the

Re: New network device causes 'jump' from eth0 to eth1

2008-07-03 Thread Ehud Karni
On Thu, 3 Jul 2008 16:41:20 Baruch Siach wrote: On Thu, Jul 03, 2008 at 04:27:29PM +0300, Noam Rathaus wrote: Hi, Or basically, where is it written that eth0 is 'thismodule' while eth1 is 'thisothermodule'? udev takes care of this. On Debian machines the relevant configuration file is

Re: X cursor problem

2008-07-03 Thread Shachar Shemesh
Shlomo Solomon wrote: Sounds logical, but: 1 - how did this happen in the middle of a session (uptime of a few weeks)? 2 - why didn't restarting X or the runlevel solve this? 3 - how could I have solved this without the re-boot? I'd actually wager on a hardware problem. Modern VGA adapters

Re: source for libtermcap - more information

2008-07-03 Thread Shlomi Fish
Hi! On Thursday 03 July 2008, Aharon Schkolnik wrote: Hi. I am looking for the source for /lib/libtermcap.so.2.0.8 which comes from rpm libtermcap-2.0.8-35. Everything I have found so far points me to sunsite, but I can not find the sources there. As a fallback, you can unpack the

Re: X cursor problem

2008-07-03 Thread Matan Ziv-Av
On Thu, 3 Jul 2008, Shachar Shemesh wrote: Shlomo Solomon wrote: Sounds logical, but: 1 - how did this happen in the middle of a session (uptime of a few weeks)? 2 - why didn't restarting X or the runlevel solve this? 3 - how could I have solved this without the re-boot? I'd actually wager on

Re: I need your addvice on ISP troubleshooting.

2008-07-03 Thread sara fink
Technion web site doesn't support ping not in and not out. So don't be surprised if you get the ???. Try a ftp transfer from technion and see the speed. About the router, try the same thing without router. If the problem persists, you can tell them. For

Re: X cursor problem

2008-07-03 Thread Shlomo Solomon
On Thursday 03 July 2008, Matan Ziv-Av wrote: A driver problem is more likely in this case. Adding Option SWCursor true to the correct device section in /etc/X11/xorg.conf (and then restarting X11 server) would probably hide the problem at a very slight performance price. You can add this

Re: Grub weirdness [solved]

2008-07-03 Thread Amos Shapira
2008/7/4 Ehud Karni [EMAIL PROTECTED]: On Thu, 3 Jul 2008 16:00:11 +0300, Noam Rathaus [EMAIL PROTECTED] wrote: The problem is solved, the error still there if I do it from the rescue disk, but it boots if I do it manually from the grub prompt. Once it booted, I re-run grub-install and now