Linux-Development-Sys Digest #712, Volume #8     Fri, 11 May 01 09:13:18 EDT

Contents:
  Re: abort() doesn't generate a core dump? ("Arthur H. Gold")
  Conference on File and Storage Systems (FAST) Call for Papers (Tiffany Peoples)
  Re: Guid generator for unix. (John Reiser)
  Re: RAID problems (Kaelin Colclasure)
  Re: Guid generator for unix. (Chronos Tachyon)
  sync and async data (Zhiyong Xu)
  Re: Guid generator for unix. (Steve Connet)
  Re: abort() doesn't generate a core dump? (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=)
  Help!!:how do I structure of GtkFB environment ? (Arthur)
  Re: Guid generator for unix. (Rene Herman)
  Re: Utilising IPv6 routing header (Stefan Schlott)
  command line interpreter ("Karim A.")
  Re: command line interpreter (Rolf Magnus)
  Re: 2.4.4 Kernel, Something Seriously Wrong. David Hinds can you read in please to! 
("Wayne Osborn")
  Where is the code of RAW (chan shing hong)
  Re: shared DLLs written in C++, and _init(), _fini() (Markus Fischer)
  Bug in pcnet32.c (packet loss)? (Thomas Steffen)
  Re: command line interpreter (=?iso-8859-1?Q?Andr=E9?= David)

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

Date: Thu, 10 May 2001 18:26:09 -0500
From: "Arthur H. Gold" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: abort() doesn't generate a core dump?

Rob Yampolsky wrote:
> 
> Hi.  I don't seem to be getting core dumps from my apps, and I'm not
> sure why.  System is Mandrake 7.2.
> 
> I have an ErrorLogger() function that attempts to maintain a history of
> core dumps in  a particular directory by
> 1. chdir'ing there
> 2. running a 'renamecore' script (to rename the prior core file(
> 3. calling abort() to generate a new core file.
> 
> I use this ErrorLogger() so that I can get a backtrace of apps whenever
> they detect situations that should not arise.  I also trap several
> signals (SIGSEGV, etc) and do the same trick so I can backtrace a
> history of segfaults.
> 
> This whole scheme works very nicely on AIX, but under linux, abort()
> doesn't seem to be generating a core file at all.  I've allso tried
> sending SIGSEGV signals to other running processes that do not trap the
> signal, and I don't seem to get core files for them either.
> 
> Is core dumping optional?   I didn't think so, but maybe there's some
> /proc/... flag you need to set to enable them.
What do you get when you do a:

ulimit -c

If it's 0, that's your problem. 

HTH,
--ag
-- 
Artie Gold, Austin, TX  (finger the cs.utexas.edu account for more
info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
Clone Bernie!

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

From: Tiffany Peoples <[EMAIL PROTECTED]>
Subject: Conference on File and Storage Systems (FAST) Call for Papers
Date: Thu, 10 May 2001 16:58:23 -0700

Conference on File and Storage Technologies (FAST 2002)
January 28-29, 2002
Monterey, California, USA
http://www.usenix.org/events/fast/

File and storage systems are critical to business and society, holding 
the "crown jewels" of most Information Age organizations and dictating 
the performance of most computer systems. Storage density has increased 
at 100% per year for the past three years (60% per year for
the past 30 years), but this is barely enough to keep up with the 
storage demands of the modern economy. Digital media and electronic 
commerce stretch storage system design with problems not encountered a 
few years ago.

FAST brings together the top storage systems researchers and 
practitioners, providing a premier forum for discussing the design, 
implementation, and uses of storage systems. It aims to bring together 
the best work in file and storage systems in one venue. The large number 
of file systems papers presented at all operating system conferences 
shows that there is no shortage of research in this area. FAST will be 
the successor to IOPADS, which for several years was the top conference 
dedicated to parallel and distributed I/O systems.

The conference will consist of two days of technical presentations, 
including refereed papers, invited talks, and an introductory keynote 
address. A session of work-in-progress presentations is planned, and 
informal Birds-of-a-Feather sessions may be organized by attendees. 
Refereed papers will be published in the Proceedings.

The FAST 2002 Program Committee invites you to contribute your ideas, 
proposals and papers for, the invited talks program, refereed papers 
track, and Work-in-Progress Reports. We welcome submissions that address 
any and all issues relating to File and Storage Systems.

The Call for Papers with submission guidelines and suggested topics is 
now available at: http://www.usenix.org/events/fast/cfp/

Submissions are due July 13, 2001.

We look forward to seeing you in Monterey in January 2002!

Sincerely,

Darrell Long, Program Chair

======================================================================
The Conference on File and Storage Systems (FAST) is Co-sponsored by 
USENIX, The Advanced Computing Systems Association, IEEE TCOS, and ACM 
SIGOPS (pending)
======================================================================

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

From: John Reiser <[EMAIL PROTECTED]>
Subject: Re: Guid generator for unix.
Date: Thu, 10 May 2001 16:52:44 -0700

> ... it obtains
> the MAC address and the current system time and munges those into a
> 128-bit universally unique identifier. It is gauranteed to not be
> duplicated anywhere in the universe, forever and ever.

This is more than a little bit naive.  Have you ever worked on a box
with the clock set fast, then corrected it?  I have seen clocks
that were 1 year fast, as well as 1 month, or 1 week, or 1 day.

-- 
John Reiser, [EMAIL PROTECTED]

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

From: Kaelin Colclasure <[EMAIL PROTECTED]>
Subject: Re: RAID problems
Date: 10 May 2001 17:30:49 -0700

"Brad Hubbard" <[EMAIL PROTECTED]> writes:

> Anyone know what this means, or where to start looking for an answer?
> 
> I've set up my first server running RH 7.1 Kernel 2.4.2-2  and am getting
> some weird RAID
> messages in /var/log/messages and dmesg output.
> They are as follows;
> 
> created md2
> bind<hda6,1>
> bind<hdc6,2>
> running: <hdc6><hda6>
> hdc6's event counter: 00000012
> hda6's event counter: 00000012
> RAID level 1 does not need chunksize! Continuing anyway.
> request_module[md-personality-3]: Root fs not mounted
> md.c: personality 3 is not loaded!
> do_md_run() returned -22
> md2 stopped.
> unbind<hdc6,1>
> export_rdev(hdc6)
> unbind<hda6,0>
> export_rdev(hda6)
> 
> Any ideas?

If you look further down in your dmesg output (and your system is behaving
like mine), you should see a line that says:

raid1 personality registered as nr 3

This is output when RAID-1 support is dynamically loaded as a kernel
module. Then a bit later, the kernel re-tries the auto-probe for starting
up your md devices, and this time around it works.

I'm not sure why the first attempt is made. I assume that if you compiled
RAID-1 support statically into your kernel, the first attempt would
succeed -- but in any case things seem to be working as they are.

-- Kaelin

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

From: Chronos Tachyon <[EMAIL PROTECTED]>
Subject: Re: Guid generator for unix.
Date: Fri, 11 May 2001 01:06:30 GMT

On Thu 10 May 2001 10:22, Nick Andrew wrote:

> Chronos Tachyon <[EMAIL PROTECTED]> writes:
> 
>>On Wed 09 May 2001 03:03, Sujeet Kharkar wrote:
>>> Do any one knows of any utility for unix which is equivalent of guidgen
>>> on windows ?
> 
> 
>>You can do something similar with the following quick perl script.  If you
>>want an actual GUID (complete with brackets and dashes), you'll need to
>>alter the program somewhat.
> 
>>--- cut ---
>>#!/usr/bin/perl
> 
>>open(RND,"/dev/urandom");
>>read(RND,$guid,8);
>>close(RND);
>>print unpack("H*",$guid), "\n";
>>--- cut ---
> 
>  ... merely reduces the chance of collision, and does not eliminate it.
> I thought GUIDs were supposed to be nominally globally unique, not just
> show low chance of collision.
> 
> I'd suggest adding to the 8 random bytes, the FQDN of the local host
> and return values from time() and getpid().
> 
> Nick.

Good point, I didn't think about that until after I posted.  I would 
probably throw a "/sbin/ifconfig | grep HWaddr | md5sum" somewhere in there 
in addition to time().

-- 
Chronos Tachyon
Guardian of Eristic Paraphernalia
Gatekeeper of the Region of Thud
[Reply instructions:  My real domain is "echo <address> | cut -d. -f6,7"]


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

From: Zhiyong Xu <[EMAIL PROTECTED]>
Subject: sync and async data
Date: Thu, 10 May 2001 21:52:03 -0400

Hi,
        In kernel 2.4.0, when doing disk I/O, how can I know if it is a
sync write or async write, sync write must set bh->b_wait, then call
function sync_buffers? These buffers would write to disk directly and
did not call mark_buffer_dirty? Only asnyc write will call that
function?
       And though page cache and buffer cache are unified in kernel
2.4.0, but indeed all disk I/Os stilll go through buffer cache, in page
cache head, there's pointer to corresponding buffer heads, is it right?



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

Subject: Re: Guid generator for unix.
From: Steve Connet <[EMAIL PROTECTED]>
Date: Fri, 11 May 2001 02:25:49 GMT

John Reiser <[EMAIL PROTECTED]> writes:

> This is more than a little bit naive.  Have you ever worked on a box
> with the clock set fast, then corrected it?  I have seen clocks that
> were 1 year fast, as well as 1 month, or 1 week, or 1 day.

Regardless, they base all their COM objects off GUIDs... in fact the
entire OS is based off GUIDs and it works very well.

-- 
Steve Connet            Remove USENET to reply via email
[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: abort() doesn't generate a core dump?
Date: 11 May 2001 08:19:39 +0200

"Arthur H. Gold" <[EMAIL PROTECTED]> writes:

> Rob Yampolsky wrote:
> > 
> > Hi.  I don't seem to be getting core dumps from my apps, and I'm not
> > sure why.  System is Mandrake 7.2.
> > 
> > I have an ErrorLogger() function that attempts to maintain a history of
> > core dumps in  a particular directory by
> > 1. chdir'ing there
> > 2. running a 'renamecore' script (to rename the prior core file(
> > 3. calling abort() to generate a new core file.
> > 
> > I use this ErrorLogger() so that I can get a backtrace of apps whenever
> > they detect situations that should not arise.  I also trap several
> > signals (SIGSEGV, etc) and do the same trick so I can backtrace a
> > history of segfaults.
> > 
> > This whole scheme works very nicely on AIX, but under linux, abort()
> > doesn't seem to be generating a core file at all.  I've allso tried
> > sending SIGSEGV signals to other running processes that do not trap the
> > signal, and I don't seem to get core files for them either.
> > 
> > Is core dumping optional?   I didn't think so, but maybe there's some
> > /proc/... flag you need to set to enable them.
> What do you get when you do a:
> 
> ulimit -c
> 
> If it's 0, that's your problem. 
> 

Also in Linux multithreaded programs do not generate core dumps. Read
kernel mailing list archives to find out why.

-- 
M�ns Rullg�rd
[EMAIL PROTECTED]

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

From: Arthur <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Help!!:how do I structure of GtkFB environment ?
Date: Fri, 11 May 2001 14:09:57 +0800
Reply-To: [EMAIL PROTECTED]

Dear all:
on gtk+   /DOC/README.linux-fb and GTK+ for the Linux Framebuffer .
the GtkFB on linux framebuffer AP
need few basic libraries :
Glib
pango
libpang,libjpeg,libtiff
FreeType
and Gtk+
I try to structure of gtkFB environment.
but it's always fieled.
Any can provided more informatiol , doc..... for me!!
thank you !!
                                                        -C.H




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

From: Rene Herman <[EMAIL PROTECTED]>
Subject: Re: Guid generator for unix.
Date: Fri, 11 May 2001 09:26:49 +0200

John Reiser wrote:

> > ... it obtains
> > the MAC address and the current system time and munges those into a
> > 128-bit universally unique identifier. It is gauranteed to not be
> > duplicated anywhere in the universe, forever and ever.
> 
> This is more than a little bit naive.  Have you ever worked on a box
> with the clock set fast, then corrected it?  I have seen clocks
> that were 1 year fast, as well as 1 month, or 1 week, or 1 day.

Not to mention the fact that MAC addresses aren't always unique. Yes, I 
know they are supposed to be.

Rene.


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

From: [EMAIL PROTECTED] (Stefan Schlott)
Subject: Re: Utilising IPv6 routing header
Date: 11 May 2001 10:15:23 +0200

In article <[EMAIL PROTECTED]>, Ville Typpo wrote:
> Does someone know, if there is any way to "force" Linux kernel to
> utilise IPv6 routing header and define some intermediate hop, when
> sending packets to some specified destination?
afaik you can't. There is no mechanism to automatically insert
extension headers - according to the ipv6 module philosophy,
ext.hdrs. are only inserted by userspace programs (imho a
really bad idea if you want do do something like ipsec).

Stefan.

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

From: "Karim A." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: command line interpreter
Date: Fri, 11 May 2001 10:39:22 +0200

Hi all,

I need for my project to write a command line interpreter for linux
platform.
I've not a lot of time to write it.
Has someone already developped such a tool.
Where can I found doc about it ?


Thanks,


Karim




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

From: Rolf Magnus <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: command line interpreter
Date: Fri, 11 May 2001 11:33:39 +0200

Karim A. wrote:

> Hi all,
> 
> I need for my project to write a command line interpreter for linux
> platform.
> I've not a lot of time to write it.
> Has someone already developped such a tool.

I suppose yes. I have seen command line interpreters ;-)
freshmeat with "command line interpreter" as search key suggests clig 
(http://wsd.iitb.fhg.de/~kir/clighome/) as a tool to generate a cli. You 
can also write a paser with lex and yacc. Or look at the source code of the 
cli you like.


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

From: "Wayne Osborn" <[EMAIL PROTECTED]>
Subject: Re: 2.4.4 Kernel, Something Seriously Wrong. David Hinds can you read in 
please to!
Date: Fri, 11 May 2001 17:39:51 +0800

In article <9deq9b$m1p$[EMAIL PROTECTED]>, "SilentNight"
<[EMAIL PROTECTED]> wrote:

> well, i begin to doubt if the kernel 2.4.4 is what it is named.
> 
> After compiling and recompiling about 20 times on 3 different hard
> disks, 2 different
> motherboards, and 2 different language version (Japanese and English),
> the check shows
> that the kernel is still 2.4.2-2.

Is your Makefile really a 2.4.4 makefile ? Check the VERSION, PATCHLEVEL
and SUBLEVEL variables.

-- 
  Wayne A. Osborn, SCADA Engineer.[dnar AT iinet DOT net DOT au]
  Registered Linux User #212818.  [2.2.16-22-Win4Lin-686] [i686]
  5:30pm  up 18:09,  1 user,  load average: 1.44, 1.25, 1.25
  ...Real programs don't eat cache.

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

From: chan shing hong <[EMAIL PROTECTED]>
Subject: Where is the code of RAW
Date: Fri, 11 May 2001 18:29:36 +0800

I would like to ask where can I find the source code of the raw
function which can bind a block device to a character device.

Marty.


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

From: Markus Fischer <[EMAIL PROTECTED]>
Subject: Re: shared DLLs written in C++, and _init(), _fini()
Date: Fri, 11 May 2001 14:04:38 +0200

I am also interested in this topic.

what about plain C ?

I would like to setup things upon library load and
release things when the lib gets unloaded.

when I use -nostdlib

simple things like ls still work, however
gcc core dumps:

#include <stdio.h>
#include <dlfcn.h>

int _fini(void)
{
  static int (*func)();

  if(!func)
    func = (int (*)()) dlsym(RTLD_NEXT, "_fini");
#ifdef PRINT
  printf("_fini is called\n");
#endif
  if (func != NULL)
        return(func());
}

int _init(void)
{
  static int (*func)();

  if(!func)
    func = (int (*)()) dlsym(RTLD_NEXT, "_init");
#ifdef PRINT
  printf("_init is called\n");
#endif
  if (func != NULL)
        return(func());
}


void *malloc(size_t size)
{
  static void * (*func)();

  if(!func)
    func = (void *(*)()) dlsym(RTLD_NEXT, "malloc");
#ifdef PRINT
  printf("malloc(%d) is called\n", size);
#endif
  return(func(size));
}
                                
Markus


[EMAIL PROTECTED] wrote:
> 
> I am writing a few shared, dynamic libraries (DLLs) that will be used by
> another program using the dlopen()/dlsym() calls.
> 
> The shared DLLs are being written in C++, and what I am trying to do is
> to have some initialization code put into the _init() method that gets
> called when the DLL is loaded via dlopen(), and some cleanup code put
> into _fini() when the DLL is unloaded via dlclose().
> 
> The problem is that whenever I add the _init() and _fini() methods to
> my DLL's C++ source file that contains the symbols that will be accessed
> via dlsym(), I get the following link error:
> 
> ModuleMain.o: In function `__malloc_alloc_template<0>::deallocate(void *, unsigned 
>int)':
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_alloc.h(.text+0x0): 
>multiple definition of `_init'
> /usr/lib/crti.o(.init+0x0): first defined here
> /usr/bin/ld: cannot find -ldlo
> collect2: ld returned 1 exit status
> make: *** [libFilter1.so] Error 1
> 
> So it seems that _init() is already defined in the libc6 runtime.
> Now, if I compile my DLL passing the "-nostdlib" flag to g++ at link
> time, I don't get this problem and DLL's source file containing _init()
> and _fini() is linked in without any apparent problems.
> 
> But what happens then is that any static/global objects defined in my
> DLL aren't initialized! It seems that the C++ runtime's static
> object initializer function isn't called.
> 
> Is there any way to have the _init() and _fini() methods in my shared
> DLL object that is written in C++ ?
> 
> I am using:
> 
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20010506 (Debian prerelease)
> 
> on a Debian sid/unstable system:
> 
> Linux matrix 2.4.4 #1 Mon Apr 30 11:33:37 EST 2001 i686 unknown
> 
> Thanks for any info.
> 
> --
> Salman Ahmed
> 
> To reply, remove "nospam." from my email address
> 
> ssahmed AT pathcom DOT com

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

From: Thomas Steffen <[EMAIL PROTECTED]>
Subject: Bug in pcnet32.c (packet loss)?
Date: 11 May 2001 14:24:54 +0200

Hi,

with the driver pcnet32.c I get a packet of a few % under heavy load:

ping -f -s 1400 pcfile
PING pcfile.rts.tu-harburg.de (134.28.49.67): 1400 data bytes
............................................................................................................
--- pcfile.rts.tu-harburg.de ping statistics ---
6361 packets transmitted, 6253 packets received, 1% packet loss
round-trip min/avg/max = 0.8/10.8/22.9 ms

Furthermore smb-performance is horrible, both incoming and outgoing,
with windows and unix computers. I think the packet loss might be the
reason. 

My card is a Allied Telesyn 2700 FX, which is based on the AMD 87C972.
I am connected to a 100Mbit switch via an FX/TX media converter. 
The PCI-bridge is a VT82C693A/694x (Apollo PRO133x), if that matters.
The system is Debian testing.

I can reproduce that bug with several kernel versions from 2.2.0pre7
to 2.4.4. Earlier kernel versions don't compile on my system, but with
the kernel from toms root/boot-disk (version 2.0.36), everything is
ok (packet loss of 1 packet, which is I think always the last one). 

BTW: using pcnet-diag crashes my system, and using mii-tool crashes
the network link (I have to reboot to get it back). It seems that the
FX-transceiver has rather unusual settings, and forcing it to
100base-TX (HD/FD) is no good. 

Any ideas?

                Thomas
-- 
Umweltfreundlich, da aus recycleten Buchstaben.

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

From: =?iso-8859-1?Q?Andr=E9?= David <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: command line interpreter
Date: Fri, 11 May 2001 14:34:27 +0200

This is a multi-part message in MIME format.
==============58F96DE9930FA6FD112023C9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"Karim A." wrote:
> 
> Hi all,
> 
> I need for my project to write a command line interpreter for linux
> platform.
> I've not a lot of time to write it.
> Has someone already developped such a tool.
> Where can I found doc about it ?
> 
> Thanks,
> 
> Karim


If you really want your own, just check the source code to see how a
shell does the job.

Otherwise you can also check bison and yacc.

GLJ ("Good luck, Jim")

Andre

-- 

 "Share the code. If you hide it ain't good."
                                                Popular knowledge
==============58F96DE9930FA6FD112023C9
Content-Type: text/x-vcard; charset=us-ascii;
 name="Andre.David.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Andr� David
Content-Disposition: attachment;
 filename="Andre.David.vcf"

begin:vcard 
n:David;Andr�
tel;work:+41792013849
x-mozilla-html:FALSE
org:CERN - Centre Europeen de Recherche Nucleaire;Experimental Physics Division - NA60 
Experiment
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
note:Geneva, Switzerland
x-mozilla-cpt:;-11552
fn:Andr� David
end:vcard

==============58F96DE9930FA6FD112023C9==


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


** 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 by posting to the
comp.os.linux.development.system newsgroup.

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