Linux-Development-Sys Digest #163, Volume #8     Thu, 21 Sep 00 15:13:12 EDT

Contents:
  Re: Memprof -- lack of behavior. (Szabolcs Csetey)
  Kernel panic: VFS :Unable to mount root (rich)
  Mandrake standard c++ library (Patrik Beyls)
  looking for mandrake standard c++ library (Patrik Beyls)
  Sokets in Linux ("Roman Pavlyuk \(office\)")
  Looking for Timer functions (Stephane St-Hilaire)
  Re: how to send process to background and foreground using a system or lib function? 
(Kaz Kylheku)
  Missing Memory - large dcache?
  Re: Sokets in Linux (Kaz Kylheku)
  Looking for a kernel patch for hooking VFS functions ([EMAIL PROTECTED])
  Re: Installing Win98, Win2000 and Linux on one PC?! (Michael O'Neill)
  Re: Sokets in Linux (Mario Klebsch)
  Re: Installing Win98, Win2000 and Linux on one PC?! (Dave Martel)
  Re: Sleep-on ("mconroy")
  Dose floppy conflict with my PCI driver module? ([EMAIL PROTECTED])
  user space insterrupt handler (Sukru Cinar)

----------------------------------------------------------------------------

From: Szabolcs Csetey <[EMAIL PROTECTED]>
Subject: Re: Memprof -- lack of behavior.
Date: Thu, 21 Sep 2000 11:20:50 GMT

  [EMAIL PROTECTED] wrote:
> >WARNING: Memory leak
> >Address 0x4017bff6, size 10
> >Allocated by malloc at
> >  /lib/libc.so.6(malloc+0x2a)[0x400dea8a]
> >  /home/csz/test/memleak.cc:6(main)[0x8048efc]
> >  /lib/libc.so.6(__libc_start_main+0xff)[0x4009d9ab]
> >  (null):0(_init)[0x8048e41]
> I hate to be picky, but is there one that can read the symbol tables,
> since I'm not very good at doing that myself :(

Interpret the above stack line by line as about
sourcefile:linenumber(function)[address]
So in English the above means, you have mem leak in memleak.cc in line
number 6 in function main(). Symbols are there, don't be confused the
addresses are there as well. Note, you need to compile with debug info
to get most of the useful data.


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: rich <[EMAIL PROTECTED]>
Subject: Kernel panic: VFS :Unable to mount root
Date: Thu, 21 Sep 2000 11:30:03 -0000

Hi all

I have RedHat 6.2 installed on a Pentium machine with level 1 IDE RAID 
(mirroring) partitioned hard drives, and am now trying to build a 
monolithic kernel.

As part of rebuilding the kernel, I uninstalled the Kernel RPM package with 

      rpm -e --nodeps kernel-headers kernel

The following message was reported when trying to boot (I can boot 
successfully off a boot-stiffy):

     VFS: cannot open root device 09:06
     Kernel panic: VFS: Unable to mount root fs on 09:06

I then proceeded with the monolithic kernel build process (make config; 
make dep; make clean; make bzImage etc), which all worked without error.

After trying to reboot, I still get the Kernel panic message.

Any suggestions?

love
rich handlera
cape town, south africa

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: Patrik Beyls <[EMAIL PROTECTED]>
Subject: Mandrake standard c++ library
Date: Thu, 21 Sep 2000 14:12:06 +0200

I`m looking for a Mandrake Linux version of libstdc++ which match
RedHat`s 6.2 libstdc++-2-libc6.1-1-2.9.0.so. I`m trying to build a
server which is linked against libstdc++-libc6.1-1.so.2, but this
library is not yet installed on  Linux Mandrake 7.0.

Thanks in advance!

Patrik.


------------------------------

From: Patrik Beyls <[EMAIL PROTECTED]>
Subject: looking for mandrake standard c++ library
Date: Thu, 21 Sep 2000 14:16:39 +0200

I`m looking for a Mandrake version of  libstdc++ which matches RedHat`s
6.2 libstdc++-2-libc6.1-1-2.9.0.so. I`m building a server which is
linked against libstdc++-libc6.1-1.so.2, but this library is not yet
installed on Mandrake Linux.

Thanks in advance.

Patrik



------------------------------

From: "Roman Pavlyuk \(office\)" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Sokets in Linux
Date: Thu, 21 Sep 2000 16:03:05 +0300

Is there anything like WinSock's WSAGetLastError() in Linux and how error
handling is organized?

Thaks in advance,
Roman Pavlyuk,
[EMAIL PROTECTED]




------------------------------

From: Stephane St-Hilaire <[EMAIL PROTECTED]>
Subject: Looking for Timer functions
Date: Thu, 21 Sep 2000 10:43:18 -0400

I'm new to Linux development so this question could be an easy one to
answer....
I need to be able to start multiple timers on a Linux application I'm
developping, all I've found is the signal capability but this limits me
to one timer which is not good enought.

Any ideas ? I assume there are function calls out there that will do it
without requiring any patches to the OS.

Thanks for your help

Steph


------------------------------

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.unix.programmer
Subject: Re: how to send process to background and foreground using a system or lib 
function?
Reply-To: [EMAIL PROTECTED]
Date: Thu, 21 Sep 2000 14:46:21 GMT

On Thu, 21 Sep 2000 11:09:22 +0800, Richard Lim <[EMAIL PROTECTED]> wrote:
>how to send process to background and foreground using a system or lib
>function?

That depends on what you mean by foreground or background. In UNIX, the terms
foreground and background formally apply to jobs running under a controlling
terminal. In a terminal session, there are one or more process groups. One of
these (at a time) is the foreground process group; it can receive input and
send output to the terminal.  Other jobs are background process groups. The
shell controls who gets to be the foreground process group. When you type
Ctrl-Z (or whatever your configured suspend key is), the foreground process
group gets the SIGTSTP signal, generated by the terminal driver. The shell
detects this change of state and makes itself the foreground process group. You
now interact with the shell.  Using the shell's ``fg'' command, you can select
one of the background jobs to become the foreground process group.

There is no point in messing with any of this, just let the user have the
control.  One thing that sometimes makes sense to implement in a terminal-based
application is a suspend command which ``artificially'' raises SIGTSTP within
that process. You need to do this if you put the tty in raw mode, so that
Ctrl-Z is not interpreted by the driver, and the user otherwise has no way
to suspend.

-- 
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.

------------------------------

From: [EMAIL PROTECTED] ()
Subject: Missing Memory - large dcache?
Date: Thu, 21 Sep 2000 14:52:59 GMT

One of my servers has suddenly 'lost' about 200MB of memory.
A bit of investigation finally turned up the following in
/proc/slabinfo:

dentry_cache       11500 1987007

The highest value I can find on any of my other servers is 
around 68000.  It looks to me as if the dcache has sucked
up the missing memory.

My questions are:

 - Why did this happen (this box is a name server, it 
   doesn't do much in terms of opening files)

 - How do I reclaim the memory from the dcache?
   (preferably without having to resort to a reboot)

The box is running 2.2.14.


-Ronan

------------------------------

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Sokets in Linux
Reply-To: [EMAIL PROTECTED]
Date: Thu, 21 Sep 2000 14:51:53 GMT

On Thu, 21 Sep 2000 16:03:05 +0300, Roman Pavlyuk \(office\)
<[EMAIL PROTECTED]> wrote:
>Is there anything like WinSock's WSAGetLastError() in Linux and how error
>handling is organized?

Linux has standard sockets, which report errors through the errno macro defined
in <errno.h>. This macro expands to an lvalue which designates the memory
location where errors are stored. In other words, the error reporting extends
the ANSI C mechanism in a straightforward way.

Standard UNIX error constants are used, without the WSA prefix, like
EWOULDBLOCK, ECONNREFUSED and so on. See
http://www.unix-systems.org/single_unix_specification_v2/
or your system's man and info pages.

------------------------------

From: [EMAIL PROTECTED]
Subject: Looking for a kernel patch for hooking VFS functions
Date: Thu, 21 Sep 2000 14:49:09 GMT

I remember hearing of work on providing an application interface to the
kernel which could hook various filing system functions.

Unfortunately I've been unable to find any patches, or any details of
such work.

Basically, the interface would allow me to trap every open() call from a
specific application(s) say ftpd or httpd and do something clever in
between (like checking for viruses or executables for instance)

If anyone knows where I can find this patch (or even what it might be
called) I'd appreciate it.

cheers,

-Steve


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Michael O'Neill <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup,microsoft.public.win2000.applications
Subject: Re: Installing Win98, Win2000 and Linux on one PC?!
Date: Thu, 21 Sep 2000 16:05:44 +0100

Shicheng wrote:
> 
> Hello there,
> We would like to install Win98, Win2000 and linux (redhat 6.0)
> three OSs onto our PC. The PC has a 30 GB hard disk, 128 MB memory
> and a 700 MHz CPU.
> 
> We would like to have the above three OSs installed; after the
> installation, we could select one of the three OSs during the boot time,
> otherwise, the PC will be booted automatically to the default
> OS (Win 2000 is the default one). Each OS would use one partition,
> so the three OSs would need three partitions.
> Apart from these three OS partitions, we may also need to create
> two more partitions using the remaining space of the disk:
> one such a partition would be for the storage of linux's data and the
> other one would be for the data storage for both the Win98 and Win2000
> OSs; so the last data partition needs to be seen by both the 98 and the
> 2000 OSs.
> 
> We would be grateful you could give us some advice on the above.
> 
> Thanks,
> 
> Shicheng

Consider reviewing the following website:

http://www.v-com.com/

I have dl'd System Commander 2000 to my system. Originally I had
intended upgrading the PC I'm using, but now I'm building a new one from
scratch, starting wit ha 40Gb Maxtor HD with a view to partitioning it
somilarly to your own.

I am currently running Win95 OSR2. No probs at boot and it allows you
enter DOS or Win95. I think anti-virus software monitoring boot must be
disabled for multi-boot with multiple OSes.

I think you can dl the help.pdf file separately from the website to
allow you to review the product.

Partition Magic is probably best for partitioning HDs

Norton Ghost is probably best for copying a disc image to your new
disc/partition.

Nope, I havent' done all this yet. 

Dose are De Plans!

:-)

M.

------------------------------

From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Sokets in Linux
Date: Thu, 21 Sep 2000 15:54:14 +0200

"Roman Pavlyuk \(office\)" <[EMAIL PROTECTED]> writes:

>Is there anything like WinSock's WSAGetLastError() in Linux and how error
>handling is organized?

$ man errno

ERRNO(3)                Library functions                ERRNO(3)

NAME
       errno - number of last error

SYNOPSIS
       #include <errno.h>

       extern int errno;

DESCRIPTION
       The integer errno is set by system calls (and some library
       functions) to indicate what went wrong.  Its value is sig<AD>
       nificant  only  when  the  call returned an error (usually
       -1), and a library function that does succeed  is  allowed
       to change errno.

       ...

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
 Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518

------------------------------

From: Dave Martel <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup,microsoft.public.win2000.applications
Subject: Re: Installing Win98, Win2000 and Linux on one PC?!
Date: Thu, 21 Sep 2000 10:18:04 -0500

On Thu, 21 Sep 2000 16:05:44 +0100, Michael O'Neill <[EMAIL PROTECTED]>
wrote:

>Shicheng wrote:
>> 
>> Hello there,
>> We would like to install Win98, Win2000 and linux (redhat 6.0)
>> three OSs onto our PC. The PC has a 30 GB hard disk, 128 MB memory
>> and a 700 MHz CPU.
>> 
>> We would like to have the above three OSs installed; after the
>> installation, we could select one of the three OSs during the boot time,
>> otherwise, the PC will be booted automatically to the default
>> OS (Win 2000 is the default one). Each OS would use one partition,
>> so the three OSs would need three partitions.
>> Apart from these three OS partitions, we may also need to create
>> two more partitions using the remaining space of the disk:
>> one such a partition would be for the storage of linux's data and the
>> other one would be for the data storage for both the Win98 and Win2000
>> OSs; so the last data partition needs to be seen by both the 98 and the
>> 2000 OSs.
>> 
>> We would be grateful you could give us some advice on the above.
>> 
>> Thanks,
>> 
>> Shicheng
>
>Consider reviewing the following website:
>
>http://www.v-com.com/
>
>I have dl'd System Commander 2000 to my system. Originally I had
>intended upgrading the PC I'm using, but now I'm building a new one from
>scratch, starting wit ha 40Gb Maxtor HD with a view to partitioning it
>somilarly to your own.

I picked up a copy of System Commander at a garage sale and tried to
use to partition a new 40-gig HD. Three hours after starting out I was
still fighting with the confounded thing. By contrast it took only a
few minutes with Partition Magic 5 to set up my partitions, and then I
went and did other things for a half hour while PM formatted them for
me.

After trying about a dozen boot managers I finally gave up on those,
too. Every last one I tried managed to screw up my partitions one way
or another. Admittedly it was sometimes user error - I forgot to
uninstall or disable the boot manager before tweaking partitions with
Partition Magic - but I really don't care for something that permits
such an easy mistake to wipe an entire 40-gig HD. I'll just stick with
some batch files, Norton's gdisk (it comes with Norton Ghost), and
loadlin.

(Someone's bound to mention LILO. It's great in some cases but in this
one it just didn't let me do all the things that I wanted).

FWIW, of the boot managers I tried, the two that I liked the most were
XOSL (free) and PTSBoot ($20).

>Partition Magic is probably best for partitioning HDs

Agreed. 

>Norton Ghost is probably best for copying a disc image to your new
>disc/partition.

I just picked up Ghost 2001. Not only writes directly to CD burners
from DOS, but supports linux EXT2 partitions as well as Windows and
DOS partitions. One program to back up everything! I haven't tried it,
but it can supposedly also make the CD's bootable using your choice of
bootable floppies.

Watch out if you're using Ghost 2000. If one partition is active and
you restore another partition that was already active when you backed
it up, then it, too, will be made active. You now have two active
partitions and DOS/Windows will refuse to boot off the HD. It gets
complicated to explain but the older version of gdisk doesn't give you
a way to clear TWO active partitions because it presumes there's never
more than one active partition. Partition Magic 5 suffers exactly the
same limitation. 

Again I haven't had an opportunity to try it, but the newer version of
gdisk that comes with Ghost 2001 claims to be able to deactivate
arbitrary partitions now.


------------------------------

From: "mconroy" <[EMAIL PROTECTED]>
Subject: Re: Sleep-on
Date: Thu, 21 Sep 2000 13:08:20 -0400

OK OK... so no one *else* caught that stupid little ";" at the end of the
while either.

*sigh*

Sorry to pollute the bandwidth.



------------------------------

From: [EMAIL PROTECTED]
Subject: Dose floppy conflict with my PCI driver module?
Date: Thu, 21 Sep 2000 18:04:48 GMT

Hi,

I can mount the floppy by using 'mount /dev/fd0 /mnt' after the system
just reboot.  But, after I load my PCI driver module, then I mount
floppy again, it will fail and appear the following messages:
Is my PCI driver module conflicted with floppy driver?
I tried to disable all interrupts in my driver, or don't allocate any
virtual memory for my driver, but all fail.
Even after I unload my driver module, it could not mount floppy neither.
I use IRQ 9, and the Linux kernel is 2.2.14 (RedHat 6.2)

Does anyone know what's wrong with my driver?

Anyway, thanks for your kindly help!

dumped kernel messages ====>

 floppy driver state
 -------------------
 now=13367 last interrupt=429 diff=12938 last called handler=c0197de8
 timeout_message=lock fdc
 last output bytes:
  0  0 0
  0  0 0
  8 80 429
last message repeated 4 times
  e 80 429
 13 80 429
  0 90 429
 1a 90 429
  0 90 429
 12 90 429
  0 90 429
 14 90 429
 18 80 429
  8 80 429
last message repeated 3 times
 last result at 429
 last redo_fd_request at 430

 status=80
 fdc_busy=1
 floppy_tq.routine=c019a0d4
 cont=c0243fa0
 CURRENT=c02690ec
 command_status=-1

 floppy0: floppy timeout called
 end_request: I/O error, dev 02:00 (floppy), sector 0

 floppy driver state
 -------------------
 now=13667 last interrupt=429 diff=13238 last called handler=c0197de8
 timeout_message=lock fdc
 last output bytes:
  0  0 0
  0  0 0
  8 80 429
last message repeated 4 times
  e 80 429
 13 80 429
  0 90 429
 1a 90 429
  0 90 429
 12 90 429
  0 90 429
 14 90 429
 18 80 429
  8 80 429
last message repeated 3 times
 last result at 429
 last redo_fd_request at 13367

 status=80
 fdc_busy=1
 floppy_tq.routine=c019a0d4
 cont=c0243fa0
 CURRENT=c02690ec
 command_status=-1

 floppy0: floppy timeout called
 end_request: I/O error, dev 02:00 (floppy), sector 0

 floppy driver state
 -------------------
 now=15667 last interrupt=429 diff=15238 last called handler=c0197de8
 timeout_message=lock fdc
 last output bytes:
  0  0 0
  0  0 0
  8 80 429
last message repeated 4 times
  e 80 429
 13 80 429
  0 90 429
 1a 90 429
  0 90 429
 12 90 429
  0 90 429
 14 90 429
 18 80 429
  8 80 429
last message repeated 3 times
 last result at 429
 last redo_fd_request at 13667

 status=80
 fdc_busy=1
 floppy_tq.routine=c019a0d4
 cont=c0243fa0
 CURRENT=c02690ec
 command_status=-1

 floppy0: floppy timeout called
 end_request: I/O error, dev 02:00 (floppy), sector 2
 task queue still active

 floppy driver state
 -------------------
 now=15967 last interrupt=429 diff=15538 last called handler=c0197de8
 timeout_message=lock fdc
 last output bytes:
  0  0 0
  0  0 0
  8 80 429
last message repeated 4 times
  e 80 429
 13 80 429
  0 90 429
 1a 90 429
  0 90 429
 12 90 429
  0 90 429
 14 90 429
 18 80 429
  8 80 429
last message repeated 3 times
 last result at 429
 last redo_fd_request at 15667

 status=80
 fdc_busy=1
 floppy_tq.routine=c019a0d4
 cont=c0243fa0
 CURRENT=c02690ec
 command_status=-1

 floppy0: floppy timeout called
 end_request: I/O error, dev 02:00 (floppy), sector 0
 task queue still active


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Sukru Cinar <[EMAIL PROTECTED]>
Subject: user space insterrupt handler
Date: Thu, 21 Sep 2000 14:24:14 -0400

hello,

I wonder if it's possible to handle an interrupt in user space without
switching to kernel in linux-i386.

thanks for your help.


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to