Linux-Development-Sys Digest #980, Volume #6 Wed, 21 Jul 99 17:13:57 EDT
Contents:
Lecture =?iso-8859-1?Q?N=B0?= carte ETHERNET (Vincent)
Re: DOS FS module problem in 2.3.10 kernel? (Peter Gavin)
Re: Kernel, AOLserver, and Oracle .so driver wierdness (Robert Lynch)
basic_string on Linux using SMP - bug? ("Paul Archard")
Re: basic_string on Linux using SMP - bug? (Kaz Kylheku)
Re: Kernel, AOLserver, and Oracle .so driver wierdness ([EMAIL PROTECTED])
Re: Package manager as a VFS (Jonathan Abbey)
Re: ISDN FAX Project ? (Igor Zlatkovic)
Re: basic_string on Linux using SMP - bug? ("Paul Archard")
Re: Kernel, AOLserver, and Oracle .so driver wierdness (Don Baccus)
Re: PTHREADS kernel/user level threading? (David Schwartz)
Re: Why not C++ (David Schwartz)
Re: severe SCSI hard disk problems (Dave Platt)
Re: MICROSOFT LINUX DISTRIBUTION (Bill Anderson)
Re: documentation for /dev/mem (and other devices) (Peter Pointner)
Car Stereo - Best Prices Anywhere
----------------------------------------------------------------------------
From: Vincent <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development
Subject: Lecture =?iso-8859-1?Q?N=B0?= carte ETHERNET
Date: Wed, 21 Jul 1999 17:32:37 +0200
Hi.
I'll like to know how I can read my ID ethernet on my network card in
language C.
Moreover, I'm looking for schemes for protect my own software.
Thanks.
--
=========================================
DEVERRE Vincent - MCII : [EMAIL PROTECTED]
=========================================
------------------------------
From: Peter Gavin <[EMAIL PROTECTED]>
Subject: Re: DOS FS module problem in 2.3.10 kernel?
Date: Wed, 21 Jul 1999 12:58:01 -0400
Andrea Dixon wrote:
> When modprobe tries to load the FAT module for access
> to my (crappy) FAT partition, it complains that
> symbol "update_vm_cache" is not found.
Gee, I'm surprised you even got that module to build at all...
Pete
------------------------------
Date: Wed, 21 Jul 1999 09:20:29 -0700
From: Robert Lynch <[EMAIL PROTECTED]>
Crossposted-To: linux.debian.devel
Subject: Re: Kernel, AOLserver, and Oracle .so driver wierdness
[EMAIL PROTECTED] wrote:
>
> The recently GPL'd AOLserver (www.aolserver.com) can connect to Oracle
> using a GPL'd driver from Arsdigita (www.arsdigita.com).
>
> When starting up the server however, the driver (often called ora8.so)
> often fails to load. The driver will load and function correctly after
> many repeated AOLserver restarts. There is no noticeable pattern to
> good or bad loads.
>
> Each time it fails to load the driver, error messages complaining of
> undefined symbols pop up in the server's log. The symbols it complains
> about are very often different or nonsensical with each failed load.
>
> The problem has been seen on kernels 2.0.36 through 2.2, glibc 20.07
> through >= 2.1.
>
> The problem is only seen on Linux, not HP/UX, Irix, etc., leading some
> to suspect a kernel bug.
>
> We would like to isolate and kill the bug, but need suggestions. Here
> are excerpts from the AOLserver logs:
>
> A good load:
>
> [19/Jul/1999:02:19:37][1358.1358][-main-] Notice: AOLserver/3.0b1
> starting.
> [19/Jul/1999:02:19:37][1358.1358][-main-] Notice: security info:
> uid=1006, euid=1006, gid=1006, egid=1006
> [19/Jul/1999:02:19:37][1358.1358][-main-] Notice: loading:
> /opt/aolserver/bin/ora8.so
> [19/Jul/1999:02:19:37][1358.1358][-main-] Notice: Loaded driver
> 'Oracle8', version '1.0.2 for aolserver 3', built on 02:07:59/Jul 19
> 1999
Note the versioning shown in the last line of the log and that the Web
page:
http://www.arsdigita.com/free-tools/oracle-driver.html
contains the following statement:
> Note: If you are running version 1.0.2 of the Oracle driver, it is
> strongly recommended that you upgrade to version 1.0.3 to prevent
> unexpected error conditions. (See Version History or the README for
> more details.) This product [snip]
Doh!
Bob L.
> One bad load, note the name of the undefined symbol:
>
> [20/Jul/1999:00:56:14][446.446][-main-] Notice: AOLserver/3.0b1
> starting.
> [20/Jul/1999:00:56:14][446.446][-main-] Notice: security info:
> uid=1006, euid=1006, gid=1006, egid=1006
> [20/Jul/1999:00:56:14][446.446][-main-] Notice: loading:
> /opt/aolserver/bin/ora8.so
> [20/Jul/1999:00:56:15][446.446][-main-] Warning: could not load
> /opt/aolserver/bin/ora8.so: /opt/aolserver/bin/ora8.so: undefined
> symbol: ncrfglft
> [20/Jul/1999:00:56:15][446.446][-main-] Error: nsd.db: could not load
> driver: ora8
> [20/Jul/1999:00:56:15][446.446][-main-] Error: nsd.db: no such default
> pool: main
> [20/Jul/1999:00:56:15][446.446][-main-] Notice: nsd.db: no configured
> pools
>
> Another bad load, notice the different undefined symbol:
>
> [20/Jul/1999:01:16:58][444.444][-main-] Notice: AOLserver/3.0b1
> starting.
> [20/Jul/1999:01:16:58][444.444][-main-] Notice: security info:
> uid=1006, euid=1006, gid=1006, egid=1006
> [20/Jul/1999:01:16:58][444.444][-main-] Notice: loading:
> /opt/aolserver/bin/ora8.so
> [20/Jul/1999:01:16:59][444.444][-main-] Warning: could not load
> /opt/aolserver/bin/ora8.so: /opt/aolserver/bin/ora8.so: undefined
> symbol: nstrcarray
> [20/Jul/1999:01:16:59][444.444][-main-] Error: nsd.db: could not load
> driver: ora8
> [20/Jul/1999:01:16:59][444.444][-main-] Error: nsd.db: no such default
> pool: main
> [20/Jul/1999:01:16:59][444.444][-main-] Notice: nsd.db: no configured
> pools
>
> I'm running Debian/GNU Linux 2.1 (kernel 2.0.36, glibc6 2.0.7). Has
> anybody come across this class of problem before, and how did you fix
> it?
>
> Regards,
>
> ...Edmund.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
------------------------------
From: "Paul Archard" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: basic_string on Linux using SMP - bug?
Date: Wed, 21 Jul 1999 10:23:32 -0700
Hi all,
we have been experiencing a very wierd problem - on our Linux SMP box we
have some multithreaded code that randomly segfaults, but works fine on a
single processor machine (or the same machine with SMP disabled). We are
using egcs-1.0.3a, though the latest version also seems to produce the same
problem.
We've tracked the problem down to a case where a basic_string constructed
using the default constructor occasionally gets created with a very large
length() but no allocated memory. The code below dies within a few seconds
on MP, but works fine on single processor.
I hacked into the basic_string code (bastring.cc) and set it to always be
"selfish" and that seems to fix the problem - at least for this case.
However, this shouldn't be necessary and from the code I can't see why it
would be.
Does anybody have any insights on this?
TIA,
Paul Archard (parch at workfire dot com)
Here's the code...
=================================================================
#include <string>
#include <stdio.h>
#include <pthread.h>
#include <signal.h>
#define NUM_THREADS 10
// Test object
class CTest
{
public:
CTest()
{
m_pString = new string;
if (m_pString->size())
printf("buf size = %d\n", m_pString->size());
assert(m_pString->size() == 0);
}
~CTest()
{
assert(m_pString->size() == 0);
delete(m_pString);
}
public:
string *m_pString;
};
// thread entry function, repeatedly creates CTest
// objects on the stack
void *CreateFunc(void *)
{
while (1)
{
CTest cTest;
usleep(1);
}
}
int main()
{
pthread_t threads[NUM_THREADS];
int count;
int iReturn;
// create the threads
for (count = 0; count < NUM_THREADS; count++)
{
iReturn = pthread_create(&threads[count], NULL,
CreateFunc, NULL);
}
// do nothing forever
while(1)
{
sleep(1);
}
}
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: basic_string on Linux using SMP - bug?
Date: Wed, 21 Jul 1999 17:53:21 GMT
On Wed, 21 Jul 1999 10:23:32 -0700, Paul Archard <[EMAIL PROTECTED]> wrote:
>We've tracked the problem down to a case where a basic_string constructed
>using the default constructor occasionally gets created with a very large
>length() but no allocated memory. The code below dies within a few seconds
>on MP, but works fine on single processor.
>I hacked into the basic_string code (bastring.cc) and set it to always be
>"selfish" and that seems to fix the problem - at least for this case.
>However, this shouldn't be necessary and from the code I can't see why it
>would be.
>
>Does anybody have any insights on this?
Yes. Take a look at the declaration of the Rep member of basic_string<>. It's
static. The class is not thread-safe, because multiple instances share this
static object, and there is no lock. (I happen to be looking at the version of
bastring.cc that came with egcs-1.1b).
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: linux.debian.devel
Subject: Re: Kernel, AOLserver, and Oracle .so driver wierdness
Date: Wed, 21 Jul 1999 18:14:38 GMT
In article <[EMAIL PROTECTED]>, Robert Lynch
<[EMAIL PROTECTED]> wrote:
> Note the versioning shown in the last line of the log and that the Web
> page:
>
> http://www.arsdigita.com/free-tools/oracle-driver.html
>
> contains the following statement:
>
> > Note: If you are running version 1.0.2 of the Oracle driver, it is
> > strongly recommended that you upgrade to version 1.0.3 to prevent
> > unexpected error conditions. (See Version History or the README for
> > more details.) This product [snip]
Bob, thanks for the reply... however, the errors listed for v1.0.2 of
the driver are not the source of the load problem. The listed problems
with 1.0.2 occur after the driver has been loaded. The undefined symbol
problem I outline occurs at load time.
Also, I do in fact have a hacked version of the 1.0.3 driver now, but
the problem still exists. From what I can gather, the problem has been
around for some time.
Still scratching my head...
...Edmund.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: [EMAIL PROTECTED] (Jonathan Abbey)
Subject: Re: Package manager as a VFS
Date: 21 Jul 1999 13:24:24 -0500
In article <7mfd51$268$[EMAIL PROTECTED]>,
Peter Samuelson <[EMAIL PROTECTED]> wrote:
|
| Closest thing I can think of is `stow'. It puts each pkg in its own
| directory (so `rm -r' almost works...) and glues things together with
| symlinks. The next closest thing would be Slackware .tgz packages
| without the metafiles in them.
We have something that is a good bit nicer than stow, called
opt_depot.. http://www.arlut.utexas.edu/csd/opt_depot/opt_depot.html
same general concept, though.. maintain a directory tree filled with
sym-links that point to the actual installed software.
--
===============================================================================
Jonathan Abbey [EMAIL PROTECTED]
Applied Research Laboratories The University of Texas at Austin
Ganymede, a free NIS/DNS management system http://www.arlut.utexas.edu/gash2
------------------------------
From: Igor Zlatkovic <[EMAIL PROTECTED]>
Subject: Re: ISDN FAX Project ?
Date: Wed, 21 Jul 1999 20:25:12 +0200
Hey, I just found this accidentally on the net:
http://w1.2667.telia.com/~u266700740/linux/i4lfax/index.html
It looks like there is a isdn fax project underway. Oneday it might be
usable. According to the website, the developers do not want help and do not
want to share the source code at the moment.
It seems that the development team of this early i4lfax project has found
exactly those realtime issues that delayed the project until now. However,
my impression is that we either use a fax modem for now, or start
programming.
Ciao
Igor
Bodo Wippermann wrote:
> Is there anybody who knows about a Project on faxing with ISDN on Linux
> ?
>
> as far as i know, it NOT possible to use any Linux Fax applications with
> ISDN cards.
>
> since i am very interested in such a Project, please send me a mail to
> [EMAIL PROTECTED] if you know about such a project.
>
> i have searched for this in newsgroups, web-sites, but i found nothing.
>
> is nobody else interested in such a project ?
> if you are, send me a mail, perhaps we can setup a project.
>
> best regards
>
> Bodo Wippermann
------------------------------
From: "Paul Archard" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: basic_string on Linux using SMP - bug?
Date: Wed, 21 Jul 1999 18:42:57 GMT
Kaz Kylheku <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Yes. Take a look at the declaration of the Rep member of basic_string<>.
It's
> static. The class is not thread-safe, because multiple instances share
this
> static object, and there is no lock. (I happen to be looking at the
version of
> bastring.cc that came with egcs-1.1b).
Two comments on this,
Firstly, it seems like the static nilRep member is only ever read from, and
not written to - being the default empty string this would make sense.
Therefore it would appear that no locking should be necessary.
Secondly, according to the standard, I believe that the stdc++ library is
supposed to be thread safe for creation of objects. What these objects are
used for after creation is at the discression (and peril) of the caller, but
if it is necessary for the caller to provide mutually exclusive creation of
all strings in a program that would be rather ridiculous (IMHO).
so... is it a bug?
Paul Archard
------------------------------
Crossposted-To: linux.debian.devel
Subject: Re: Kernel, AOLserver, and Oracle .so driver wierdness
From: [EMAIL PROTECTED] (Don Baccus)
Date: 21 Jul 1999 11:52:24 PST
In article <[EMAIL PROTECTED]>,
Robert Lynch <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] wrote:
>Note the versioning shown in the last line of the log and that the Web
>page:
>http://www.arsdigita.com/free-tools/oracle-driver.html
>contains the following statement:
>> Note: If you are running version 1.0.2 of the Oracle driver, it is
>> strongly recommended that you upgrade to version 1.0.3 to prevent
>> unexpected error conditions. (See Version History or the README for
>> more details.) This product [snip]
>Doh!
Hardly. The driver documentation's referring to an error in
code which interfaces to Oracle. An error that occurs when
the driver's running. Edmund's referring to an error that
occurs when AOLserver tries to load the oracle driver.
The documented bug is not in the least bit related to the
problem this user's reporting. And, I might add, I've seen
exactly the same problem with AOLserver dynamically loading
the Postgres driver with Linux 2.0.36. Very intermittent,
so much so that I've not worried about it. Edmund apparently
is running into it much more frequently.
Go back to the Simpsons..."doh" indeed.
--
- Don Baccus, Portland OR <[EMAIL PROTECTED]>
Nature photos, on-line guides, at http://donb.photo.net
------------------------------
From: David Schwartz <[EMAIL PROTECTED]>
Subject: Re: PTHREADS kernel/user level threading?
Date: Wed, 21 Jul 1999 12:34:34 -0700
I think you read too much into his question. I think he just wants to
know if a dual CPU system could give more than 100% of one processor to
his process, by running more than one thread at a time. The answer is
yes.
DS
Hugo tetreault wrote:
>
> Dave Erdmann wrote:
>
> >
> >
> > For instance if I have a dual CPU system can my server
> > take advantage of both CPUs having two concurrent
> > threads in the same process running on both CPUs
> > at once?
> >
> >
> >
>
> This is called "process cpu affinity" and I don't think Linux
> support it. For example in IRIX
> you can force a process on a particular cpu, isolate a cpu from all
------------------------------
From: David Schwartz <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: Why not C++
Date: Wed, 21 Jul 1999 12:24:12 -0700
Kaz Kylheku wrote:
>
> On Tue, 20 Jul 1999 20:40:52 -0700, David Schwartz <[EMAIL PROTECTED]> wrote:
> > Sometimes the rules do need to be broken for one reason or another. A
> >good language lets you do that when you need to.
>
> An even better language lets you do it whenever you have the slightest
> urge. E.g. C and C++. :)
It is not the language's place to decide when you need to break the
rules. That's your job. Yes, you can break the rules whenever you have
the slightest urge. We will need a lot more AI than we currently have
before a language can decide when your breaking the rules is justified.
The best we can do today is make it clear when you are doing so.
DS
------------------------------
From: [EMAIL PROTECTED] (Dave Platt)
Crossposted-To: comp.os.linux.hardware
Subject: Re: severe SCSI hard disk problems
Date: Wed, 21 Jul 1999 19:35:56 GMT
>Hi!
>We are using an 18Giga drive as the main drive in our
>lab. (We thought getting a big drive would solve our
>space problems...) The drive worked well for a couple of
>months, and now (last 2 days) it started to misbehave.
>In fact, things are so bad by now, that it is mounted
>read only for the time being.
> ...
>What would you recomend to do? (Well, other than opening
>the computer and trying to push all the cables back into
>their sockets) Does this seem to be a hardware problem?
It sure looks that way to me. I'd recommend swapping the SCSI cable
for another one (one which is known to be "in spec"), checking the
termination at both ends of the cable, checking your power supply to
make certain that the power to the drives is remaining within spec,
and checking the fan cooling to make sure that there's adequate
airflow over the drives and that they're not running excessively hot.
>Could it be related to the recent file-system
>corruptions? (Though I thought 2.2.5 was still early)
I wouldn't be surprised to see SCSI errors of this nature cause
filesystem corruptions - anything which garbles the data going over
the bus can do that.
>Should we backup, reformat and then restore everything,
>or contact the manufacturer?
Back up (across the net if necessary - ideally, make 2 or more
complete backups, on different sorts of media). Perform the checks and tests
and replacements suggested above. Reformat the hard drive,
repartition it, and then run "badblocks -w" on each partition, and let
it run overnight. This will help "burn in" the SCSI subsystem and may
show you if problems still exist.
You _might_ want to consider reducing the tagged-queueing limit in the
BusLogic SCSI driver. I've found that certain hard drives malfunction
messily if the driver sends them more tagged-queue commands than the
drive controller can handle - I ran into this at boot time after I
upgraded from a K6-2-300 to a K6-2-400.
Add "BusLogic=QD:15" (or a smaller number) to your kernel boot
parameters to reduce the queue depth.
--
Dave Platt [EMAIL PROTECTED]
Visit the Jade Warrior home page: http://www.radagast.org/jade-warrior/
I do _not_ wish to receive unsolicited commercial email, and I will
boycott any company which has the gall to send me such ads!
------------------------------
From: Bill Anderson <[EMAIL PROTECTED]>
Subject: Re: MICROSOFT LINUX DISTRIBUTION
Date: Wed, 21 Jul 1999 14:01:27 -0600
PeterKeane wrote:
>
> >The LDC should then put
> >some effort into a _Windows_ program that; determines all hardware on the
> >user's system, sets up an RH kickstart (or similar) install using that
> >knowledge, and walks the user through repartitioning the drive, followed by
> >the FTP install.
>
> Sounds a lot like the Linux equivalent of
> InstallShield(tm). I think, thought, that
> Unix guru's are too tied to their shell
> scripts to do anything as comprehensible
> as a simple install program. Besides how
> are you going to tear them away from
> their papers on AI long enough to code
> drivers for winmodems which would turn
> them into Linmodems and allow this
> FTP install. :-)
Kickstart is for installing the OS itsself.
--
Bill Anderson Linux Administrator
MCS-Boise (ARC) [EMAIL PROTECTED]
My opinions are just that; _my_ opinions.
------------------------------
From: Peter Pointner <[EMAIL PROTECTED]>
Subject: Re: documentation for /dev/mem (and other devices)
Date: Wed, 21 Jul 1999 18:52:23 GMT
Sidney Cadot <[EMAIL PROTECTED]> wrote:
[snip]
> Could anybody tell me if there exists such documentation for devices (and
> specifically the /dev/mem device), and where to find it?
"man 4 intro" says:
This chapter describes special files.
I'm not sure if "man 4 mem" will give you enough information, but it
might be a start. In case you don't have these man pages: They are
from the "LDP Man-Pages".
Peter
------------------------------
From: <[EMAIL PROTECTED]>
Subject: Car Stereo - Best Prices Anywhere
Date: 21 Jul 1999 11:42:44 PDT
For the best prices in Car Stereo goto www.audioplace.net
We have a large selection of car stereo products at great prices. Buy safely and
quickly online with our SSL Server.
Here are some of the brands we offer: Alpine, Boss, MTX, JVC, Panasonic, Pioneer,
Precision Power,
Rockford Fosgate, Sony, Clarion, Blaupunkt, Orion, Infinity, MB Quart, JL Audio,
Coustic, Crunch,
Cerwin Vega, Impulse, Kicker, Kenwood, Bazooka, Soundstream, Nakamichi, JBL, Denon,
Boston Acoustics,
Lightning Audio
For these and more Goto: www.audioplace.net
------------------------------
** 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
******************************