Mmap()/devmap_devmem_setup() problems...

Hi all,
Platform: Solaris 10 x86 3/05 (no patches) on a dual-Xeon motherboard. Driver is based on Phil Brown's "base" driver (thanks Phil!) with some input from his "fb" driver. Sun's "Writing Device Drivers" has helped tremendously, but all is not happy...
I'm trying to write a driver for a device that presents a single PCI memory-mapped space of length 0x400 bytes. My driver seems to pick up all the right information from the system and I can access the memory via read() and write(). However, if my test application tries to mmap() the device's address space, it fails with errno == ENXIO. I've traced it down to the driver's devmap() at the point I call devmap_devmem_setup(). This little bundle of joy returns the oh-so-descriptive "-1", which the man page helpfully says "An error occurred". Wow, any more info and my head will explode. ;-)
I'm thinking that the problem is somehow related to the length passed to mmap() (and ultimately to devmap_devmem_setup() after rounding up to a page boundary). The system knows that the address space is 0x400 bytes (based on calls to ddi_dev_regsize()), but the rounding rules seem to force the issue that devmap_devmem_setup() should get the page length, not the 0x400.
The offset passed to devmap_devmem_setup() is 0x0, as it should be for this exercise. The man page indicates that rnumber should be 0 for a single register set, so I'm sending in 0 even though the actual register number for the address space is 1 (go figure). The device access attributes are as follows:
DDI_DEVICE_ATTR_V0,
DDI_STRUCTURE_LE_ACC,
DDI_STRICTORDER_ACC
All this seems as if it should work (it looks much like Phil's fb driver and what's presented in Writing Device Drivers), but I get popped at the devmap_devmem_setup(). I've tried everything I can think of and I don't know what else to do with this.
Please help!
Thanks,
Dave

Hi all,
Platform: Solaris 10 x86 3/05 (no patches) on a dual-Xeon motherboard. Driver is based on Phil Brown's "base" driver (thanks Phil!) with some input from his "fb" driver. Sun's "Writing Device Drivers" has helped tremendously, but all is not happy...
I'm trying to write a driver for a device that presents a single PCI memory-mapped space of length 0x400 bytes. My driver seems to pick up all the right information from the system and I can access the memory via read() and write(). However, if my test application tries to mmap() the device's address space, it fails with errno == ENXIO. I've traced it down to the driver's devmap() at the point I call devmap_devmem_setup(). This little bundle of joy returns the oh-so-descriptive "-1", which the man page helpfully says "An error occurred". Wow, any more info and my head will explode. ;-)
I'm thinking that the problem is somehow related to the length passed to mmap() (and ultimately to devmap_devmem_setup() after rounding up to a page boundary). The system knows that the address space is 0x400 bytes (based on calls to ddi_dev_regsize()), but the rounding rules seem to force the issue that devmap_devmem_setup() should get the page length, not the 0x400.
The offset passed to devmap_devmem_setup() is 0x0, as it should be for this exercise. The man page indicates that rnumber should be 0 for a single register set, so I'm sending in 0 even though the actual register number for the address space is 1 (go figure). The device access attributes are as follows:
DDI_DEVICE_ATTR_V0,
DDI_STRUCTURE_LE_ACC,
DDI_STRICTORDER_ACC
All this seems as if it should work (it looks much like Phil's fb driver and what's presented in Writing Device Drivers), but I get popped at the devmap_devmem_setup(). I've tried everything I can think of and I don't know what else to do with this.
Please help!
Thanks,
Dave

Similar Messages

  • /dev/zero:mmap failed and out of space problems

    Hi All
    I have a sun-Fire v240 with Solaris 10. Created 4 zones and trying to running our application software in each of the zones. After running the applications for some time, in some of the zones one application process gets /dev/zero:mmap failed message and aborts. Also when the Java VM tries to start it is not able to allocate object heap space and aborts and causes the zone to reboot. I tried by increasing maxusers but to avail.
    Please help.
    Regards

    Hi,
    If Outlook is running in the cached mode, please run it in the online mode to check the results again.
    If the problem persists, try to refresh the free/busy information by running Outlook with the /CleanFreeBusy command-line switch on the computer that is experiencing problems publishing free/busy
    information. To do this:
    ================
    1. 
    Click Start > Run.
    2. 
    In the Open box, type the command and press Enter:
    outlook.exe /cleanfreebusy
    At the same time, you can also post this issue in the Exchange server forum to see if they have better idea:
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/threads
    Best Regards,
    Sally Tang

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • J2ME (through CrEmE) and MMAPI problem on PDA

    I am using Creme from nsicom as vm for deploying java applications on a pda device (hp ipaq 4700hx).
    I am trying to reproduce some sound (.au) through the default implementation of mmapi in j2me and all i get is an exception that realize(), prefetch() and start() methods do not exist. I have checked the /lib directory of creme on the pda and the VMclasses.zip file contains the player class with all the methods available. Any ideas?
    The code i am using is the following:
    try
       InputStream is = getClass().getResourceAsStream("/sample.mp3");
       Player player = Manager.createPlayer(is,"audio/mpeg");
       player.realize();
       player.prefetch();
       player.start();
    catch(Exception e)
    {System.err.println(e);}

    Hi thanks for your reply. I had thought i had to use a vm like creme to run a java application on a pda? Is there another way?
    My code is below for a simple test program im trying to run:
    import javax.swing.JOptionPane;
    public class tempConverter
         public static void main(String[] args)
              double celsius, fahrenheit;
              String celsiusStr;
              // Getting user to input the temperature they want to convert
              celsiusStr = JOptionPane.showInputDialog("Enter the temperature (in celsius) you wish to convert:");
              celsius = Double.parseDouble(celsiusStr);
              // Performing the conversion
              fahrenheit = ((celsius*9)/5)+32;
              //Displaying the result
              JOptionPane.showMessageDialog(null, "The temperature in fahrenheit is:" + fahrenheit);
              System.exit(0);
    }

  • MMAPI video conversion problem

    Hi All!
    Could anyone please tell me what parameters do I have to use when using ffmpeg to convert flash video to mp4 or other format working on wtk 2.5 emulator, simple converting the video file doesn't display anything on the emulator.
    (I'm asking here for parameters because i use linux but any information about suitable mp4 video characteristics would be great)
    Thanks a lot in advance!
    Kris

    You can try [mpeg4 converter|http://www.yzf888.com/mpeg4-converter.html],it can convert video to mp4.
    Edited by: bill8888 on Jul 13, 2008 5:40 AM

  • WirelessToolkit for MacOS: MMAPI problem

    Dear all,
    I'm currently developing a media application over MacOS. I've installed the MacOS Wireless Toolkit, but I'm getting a MediaException when running any media capturing application (including the demos).
    The error I get is;
    javax.microedition.media.MediaException: Player cannot be created for capture://video
    Is this a limitation of the MacOS verison of the WirelessTollkit or I'm missing something?
    Thanks in advance for any help!
    iacopo

    Dear all,
    jsut to be more precise.
    What I installed on the MacOS (MacBook Pro, OS version 10.6.2) is the Java ME SDK 3.0.
    The example I was using is the MMAPIDemos example (Video-->Video Capture - Form and Video-->Video Capture - Canvas ). In both examples the emulator returned a;
    javax.microedition.media.MediaException: Player cannot be created for capture://video
    exception. I also tried the same application on different versions of MacOS, with a similar result.
    Suggestions very welcome!
    Thanks!
    iacopo

  • Driver support mmap

    I am trying to make the device memory mapping work inside driver to support mmap. I implemented xxx_segmap and xxx_devmap, inside xxx_segmap I called devmap_setup() and in xxx_devmap() I called devmap_devmem_setup(). My user test program calling mmap returned successfully.
    addr =(unsigned char *) mmap(....).
    whenever I did addr[0] = 'm', I got the system watchdog reset.
    wheneven I did printf("%x", addr[0]), I got Bus error.
    What's wrong with my driver's entry point or my test program.
    I do have any problem with kernel memory mapping with devmap_umem_setup.
    Thanks driver gurus!

    I saw from another thread that you solved your problem.
    I have the same problem, and I hope you're around to
    tell me how you solved it.
    - Endre

  • Mmap differences between Solaris2.6 and 8

    I have a driver that works fine under Solaris2.6 but crashes the system
    under Solaris 8. The driver implements the devmap() entry point and has
    nodev for the mmap() and segmap() entry points. The devmap function
    calls devmap_devmem_setup(). The mapping returns without error. The
    device provides 16 MB of memory. Under Solaris 2.6, I can map and access
    all of this space. Under Solaris8, the system will crash if the
    application attempts to access memory when more than 4186112 (4 MB- 4 KB)
    has been mapped. When the application is run under dbx, it can access
    the memory even when all of it has been mapped.
    This sounds like the problems that endreb and jnijohnl described in earlier
    threads, but I have not been able to find a posting of the solution to
    their problems. Can anyone shed light on this behavior?

    This site may help:
    Adobe Captivate Help | Release Notes

  • Macbook Pro Retina keeps restarting "due to a problem" as well as imovie and Skype

    My new Macbook Pro Retina keeps restarting "due to a problem", when I open my skype it crashes and my imovie crashes all the time as well. I just got this computer last week. If someone could please help me out.
    These are the few of the errors on the console utility
    8/25/12 12:19:38.092 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** error: can't allocate region
    8/25/12 12:19:38.092 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** set a breakpoint in malloc_error_break to debug
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: iMovie(694,0xac8ba2c0) malloc: *** mmap(size=1223954432) failed (error code=12)
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** error: can't allocate region
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** set a breakpoint in malloc_error_break to debug
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: iMovie(694,0xac8ba2c0) malloc: *** mmap(size=1223962624) failed (error code=12)
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** error: can't allocate region
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** set a breakpoint in malloc_error_break to debug
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: iMovie(694,0xac8ba2c0) malloc: *** mmap(size=1223974912) failed (error code=12)
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** error: can't allocate region
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** set a breakpoint in malloc_error_break to debug
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: iMovie(694,0xac8ba2c0) malloc: *** mmap(size=979181568) failed (error code=12)
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** error: can't allocate region
    8/25/12 12:19:38.093 PM [0x0-0xaa0aa].com.apple.iMovieApp: *** set a breakpoint in malloc_error_break to debug
    8/25/12 12:19:38.094 PM iMovie: *** Canceling drag because exception 'NSMallocException' (reason '*** -[NSConcreteMutableData appendBytes:length:]: unable to allocate memory for length (979177572)') was raised during a dragging session
    8/25/12 12:22:06.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:22:07.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:23:33.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:23:37.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:23:37.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:23:39.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:24:29.322 PM [0x0-0xc50c5].com.skype.skype: DVFreeThread - CFMachPortCreateWithPort hack = 0x22e20e0, fPowerNotifyPort= 0x229f7d0
    8/25/12 12:24:29.322 PM [0x0-0xc50c5].com.skype.skype: DVFreeThread - CFMachPortCreateWithPort hack = 0x263d630, fPowerNotifyPort= 0x26221e0
    8/25/12 12:24:29.322 PM [0x0-0xc50c5].com.skype.skype: DVFreeThread - CFMachPortCreateWithPort hack = 0x263d840, fPowerNotifyPort= 0x2607c90
    8/25/12 12:25:18.000 PM kernel: IOSurface: buffer allocation size is zero
    8/25/12 12:27:27.481 PM com.apple.WindowServer: WindowServer(87,0x7fff74852960) malloc: *** error for object 0x7ff851ba0050: incorrect checksum for freed object - object was probably modified after being freed.
    8/25/12 12:27:27.481 PM com.apple.WindowServer: *** set a breakpoint in malloc_error_break to debug
    8/25/12 12:27:27.798 PM ReportCrash: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.
    8/25/12 12:27:28.745 PM SystemUIServer: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.745 PM SystemUIServer: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.746 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper[673:207] HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper[673:207] port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.746 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper[757:207] HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper[761:207] HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper[757:207] port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.746 PM Finder: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper[761:207] port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.746 PM iTunes: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM Finder: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.746 PM iTunes: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.746 PM Google Chrome: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM Google Chrome Helper EH: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM rcd: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.746 PM Image Capture Extension: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.747 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.745 Google Chrome Helper EH[615:b03] HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.747 PM Google Chrome: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.747 PM Google Chrome Helper EH: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.747 PM rcd: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.747 PM Dock: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.747 PM Image Capture Extension: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.747 PM [0x0-0x90090].com.google.Chrome: 2012-08-25 12:27:28.746 Google Chrome Helper EH[615:b03] port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.748 PM Dock: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.750 PM com.apple.dock.extra: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.751 PM com.apple.dock.extra: 2012-08-25 12:27:28.746 com.apple.dock.extra[143:1707] HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.751 PM com.apple.dock.extra: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.752 PM com.apple.dock.extra: 2012-08-25 12:27:28.750 com.apple.dock.extra[143:1707] port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.752 PM talagent: HIToolbox: received notification of WindowServer event port death.
    8/25/12 12:27:28.753 PM talagent: port matched the WindowServer port created in BindCGSToRunLoop
    8/25/12 12:27:28.775 PM UserEventAgent: CaptiveNetworkSupport:UserAgentDied:139 User Agent @port=26115 Died
    8/25/12 12:27:28.782 PM com.apple.launchd.peruser.501: (com.apple.Dock.agent[114]) Exited with code: 1
    8/25/12 12:27:28.856 PM Google Chrome: MIG: server died: CGSReenableUpdateForConnections: Failed
    8/25/12 12:27:28.856 PM Google Chrome: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    8/25/12 12:27:28.857 PM Google Chrome: (ipc/send) invalid destination port: CGSSetEventMask: error setting window event mask
    8/25/12 12:27:28.858 PM Google Chrome: (ipc/send) invalid destination port: CGSDisableUpdateForConnections: Failed
    8/25/12 12:27:28.858 PM Google Chrome: (ipc/send) invalid destination port: CGSReenableUpdateForConnections: Failed
    8/25/12 12:27:28.858 PM Google Chrome: (ipc/send) invalid destination port: CGSGetOnScreenWindowCount
    8/25/12 12:27:28.858 PM Google Chrome: (ipc/send) invalid destination port: CGSGetOnScreenWindowCount
    8/25/12 12:27:28.858 PM Google Chrome: (ipc/send) invalid destination port: CGSGetWindowPresenter
    8/25/12 12:27:28.858 PM Google Chrome: (ipc/send) invalid destination port: CGSOrderWindowList
    8/25/12 12:27:28.859 PM Google Chrome: kCGErrorFailure: _CGSLockWindow: Cannot synchronize window backing store
    8/25/12 12:27:28.859 PM Google Chrome: kCGErrorFailure: _CGSLockWindow: Cannot synchronize window backing store

    melirodriguez13 wrote:
    My new Macbook Pro Retina keeps restarting "due to a problem", when I open my skype it crashes and my imovie crashes all the time as well. I just got this computer last week. If someone could please help me out.
    Call Apple Care. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired. 

  • BDB read performance problem: lock contention between GC and VM threads

    Problem: BDB read performance is really bad when the size of the BDB crosses 20GB. Once the database crosses 20GB or near there, it takes more than one hour to read/delete/add 200K keys.
    After a point, of these 200K keys there are about 15-30K keys that are new and this number eventually should come down and there should not be any new keys after a point.
    Application:
    Transactional Data Store application. Single threaded process, that's trying to read one key's data, delete the data and add new data. The keys are really small (20 bytes) and the data is large (grows from 1KB to 100KB)
    On on machine, I have a total of 3 processes running with each process accessing its own BDB on a separate RAID1+0 drive. So, according to me there should really be no disk i/o wait that's slowing down the reads.
    After a point (past 20GB), There are about 4-5 million keys in my BDB and the data associated with each key could be anywhere between 1KB to 100KB. Eventually every key will have 100KB data associated with it.
    Hardware:
    16 core Intel Xeon, 96GB of RAM, 8 drive, running 2.6.18-194.26.1.0.1.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
    BDB config: BTREE
    bdb version: 4.8.30
    bdb cache size: 4GB
    bdb page size: experimented with 8KB, 64KB.
    3 processes, each process accesses its own BDB on a separate RAIDed(1+0) drive.
    envConfig.setAllowCreate(true);
    envConfig.setTxnNoSync(ourConfig.asynchronous);
    envConfig.setThreaded(true);
    envConfig.setInitializeLocking(true);
    envConfig.setLockDetectMode(LockDetectMode.DEFAULT);
    When writing to BDB: (Asynchrounous transactions)
    TransactionConfig tc = new TransactionConfig();
    tc.setNoSync(true);
    When reading from BDB (Allow reading from Uncommitted pages):
    CursorConfig cc = new CursorConfig();
    cc.setReadUncommitted(true);
    BDB stats: BDB size 49GB
    $ db_stat -m
    3GB 928MB Total cache size
    1 Number of caches
    1 Maximum number of caches
    3GB 928MB Pool individual cache size
    0 Maximum memory-mapped file size
    0 Maximum open file descriptors
    0 Maximum sequential buffer writes
    0 Sleep after writing maximum sequential buffers
    0 Requested pages mapped into the process' address space
    2127M Requested pages found in the cache (97%)
    57M Requested pages not found in the cache (57565917)
    6371509 Pages created in the cache
    57M Pages read into the cache (57565917)
    75M Pages written from the cache to the backing file (75763673)
    60M Clean pages forced from the cache (60775446)
    2661382 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    500593 Current total page count
    500593 Current clean page count
    0 Current dirty page count
    524287 Number of hash buckets used for page location
    4096 Assumed page size used
    2248M Total number of times hash chains searched for a page (2248788999)
    9 The longest hash chain searched for a page
    2669M Total number of hash chain entries checked for page (2669310818)
    0 The number of hash bucket locks that required waiting (0%)
    0 The maximum number of times any hash bucket lock was waited for (0%)
    0 The number of region locks that required waiting (0%)
    0 The number of buffers frozen
    0 The number of buffers thawed
    0 The number of frozen buffers freed
    63M The number of page allocations (63937431)
    181M The number of hash buckets examined during allocations (181211477)
    16 The maximum number of hash buckets examined for an allocation
    63M The number of pages examined during allocations (63436828)
    1 The max number of pages examined for an allocation
    0 Threads waited on page I/O
    0 The number of times a sync is interrupted
    Pool File: lastPoints
    8192 Page size
    0 Requested pages mapped into the process' address space
    2127M Requested pages found in the cache (97%)
    57M Requested pages not found in the cache (57565917)
    6371509 Pages created in the cache
    57M Pages read into the cache (57565917)
    75M Pages written from the cache to the backing file (75763673)
    $ db_stat -l
    0x40988 Log magic number
    16 Log version number
    31KB 256B Log record cache size
    0 Log file mode
    10Mb Current log file size
    856M Records entered into the log (856697337)
    941GB 371MB 67KB 112B Log bytes written
    2GB 262MB 998KB 478B Log bytes written since last checkpoint
    31M Total log file I/O writes (31624157)
    31M Total log file I/O writes due to overflow (31527047)
    97136 Total log file flushes
    686 Total log file I/O reads
    96414 Current log file number
    4482953 Current log file offset
    96414 On-disk log file number
    4482862 On-disk log file offset
    1 Maximum commits in a log flush
    1 Minimum commits in a log flush
    160KB Log region size
    195 The number of region locks that required waiting (0%)
    $ db_stat -c
    7 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    9 Number of lock modes
    2000 Maximum number of locks possible
    2000 Maximum number of lockers possible
    2000 Maximum number of lock objects possible
    160 Number of lock object partitions
    0 Number of current locks
    1218 Maximum number of locks at any one time
    5 Maximum number of locks in any one bucket
    0 Maximum number of locks stolen by for an empty partition
    0 Maximum number of locks stolen for any one partition
    0 Number of current lockers
    8 Maximum number of lockers at any one time
    0 Number of current lock objects
    1218 Maximum number of lock objects at any one time
    5 Maximum number of lock objects in any one bucket
    0 Maximum number of objects stolen by for an empty partition
    0 Maximum number of objects stolen for any one partition
    400M Total number of locks requested (400062331)
    400M Total number of locks released (400062331)
    0 Total number of locks upgraded
    1 Total number of locks downgraded
    0 Lock requests not available due to conflicts, for which we waited
    0 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    0 Lock timeout value
    0 Number of locks that have timed out
    0 Transaction timeout value
    0 Number of transactions that have timed out
    1MB 544KB The size of the lock region
    0 The number of partition locks that required waiting (0%)
    0 The maximum number of times any partition lock was waited for (0%)
    0 The number of object queue operations that required waiting (0%)
    0 The number of locker allocations that required waiting (0%)
    0 The number of region locks that required waiting (0%)
    5 Maximum hash bucket length
    $ db_stat -CA
    Default locking region information:
    7 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    9 Number of lock modes
    2000 Maximum number of locks possible
    2000 Maximum number of lockers possible
    2000 Maximum number of lock objects possible
    160 Number of lock object partitions
    0 Number of current locks
    1218 Maximum number of locks at any one time
    5 Maximum number of locks in any one bucket
    0 Maximum number of locks stolen by for an empty partition
    0 Maximum number of locks stolen for any one partition
    0 Number of current lockers
    8 Maximum number of lockers at any one time
    0 Number of current lock objects
    1218 Maximum number of lock objects at any one time
    5 Maximum number of lock objects in any one bucket
    0 Maximum number of objects stolen by for an empty partition
    0 Maximum number of objects stolen for any one partition
    400M Total number of locks requested (400062331)
    400M Total number of locks released (400062331)
    0 Total number of locks upgraded
    1 Total number of locks downgraded
    0 Lock requests not available due to conflicts, for which we waited
    0 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    0 Lock timeout value
    0 Number of locks that have timed out
    0 Transaction timeout value
    0 Number of transactions that have timed out
    1MB 544KB The size of the lock region
    0 The number of partition locks that required waiting (0%)
    0 The maximum number of times any partition lock was waited for (0%)
    0 The number of object queue operations that required waiting (0%)
    0 The number of locker allocations that required waiting (0%)
    0 The number of region locks that required waiting (0%)
    5 Maximum hash bucket length
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock REGINFO information:
    Lock Region type
    5 Region ID
    __db.005 Region name
    0x2accda678000 Region address
    0x2accda678138 Region primary address
    0 Region maximum allocation
    0 Region allocated
    Region allocations: 6006 allocations, 0 failures, 0 frees, 1 longest
    Allocations by power-of-two sizes:
    1KB 6002
    2KB 0
    4KB 0
    8KB 0
    16KB 1
    32KB 0
    64KB 2
    128KB 0
    256KB 1
    512KB 0
    1024KB 0
    REGION_JOIN_OK Region flags
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock region parameters:
    524317 Lock region region mutex [0/9 0% 5091/47054587432128]
    2053 locker table size
    2053 object table size
    944 obj_off
    226120 locker_off
    0 need_dd
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock conflict matrix:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Locks grouped by lockers:
    Locker Mode Count Status ----------------- Object ---------------
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Locks grouped by object:
    Locker Mode Count Status ----------------- Object ---------------
    Diagnosis:
    I'm seeing way to much lock contention on the Java Garbage Collector threads and also the VM thread when I strace my java process and I don't understand the behavior.
    We are spending more than 95% of the time trying to acquire locks and I don't know what these locks are. Any info here would help.
    Earlier I thought the overflow pages were the problem as 100KB data size was exceeding all overflow page limits. So, I implemented duplicate keys concept by chunking of my data to fit to overflow page limits.
    Now I don't see any overflow pages in my system but I still see bad bdb read performance.
    $ strace -c -f -p 5642 --->(607 times the lock timed out, errors)
    Process 5642 attached with 45 threads - interrupt to quit
    % time     seconds  usecs/call     calls    errors syscall
    98.19    7.670403        2257      3398       607 futex
     0.84    0.065886           8      8423           pread
     0.69    0.053980        4498        12           fdatasync
     0.22    0.017094           5      3778           pwrite
     0.05    0.004107           5       808           sched_yield
     0.00    0.000120          10        12           read
     0.00    0.000110           9        12           open
     0.00    0.000089           7        12           close
     0.00    0.000025           0      1431           clock_gettime
     0.00    0.000000           0        46           write
     0.00    0.000000           0         1         1 stat
     0.00    0.000000           0        12           lseek
     0.00    0.000000           0        26           mmap
     0.00    0.000000           0        88           mprotect
     0.00    0.000000           0        24           fcntl
    100.00    7.811814                 18083       608 total
    The above stats show that there is too much time spent locking (futex calls) and I don't understand that because
    the application is really single-threaded. I have turned on asynchronous transactions so the writes might be
    flushed asynchronously in the background but spending that much time locking and timing out seems wrong.
    So, there is possibly something I'm not setting or something weird with the way JVM is behaving on my box.
    I grep-ed for futex calls in one of my strace log snippet and I see that there is a VM thread that grabbed the mutex
    maximum number(223) of times and followed by Garbage Collector threads: the following is the lock counts and thread-pids
    within the process:
    These are the 10 GC threads (each thread has grabbed lock on an avg 85 times):
      86 [8538]
      85 [8539]
      91 [8540]
      91 [8541]
      92 [8542]
      87 [8543]
      90 [8544]
      96 [8545]
      87 [8546]
      97 [8547]
      96 [8548]
      91 [8549]
      91 [8550]
      80 [8552]
    VM Periodic Task Thread" prio=10 tid=0x00002aaaf4065000 nid=0x2180 waiting on condition (Main problem??)
     223 [8576] ==> grabbing a lock 223 times -- not sure why this is happening…
    "pool-2-thread-1" prio=10 tid=0x00002aaaf44b7000 nid=0x21c8 runnable [0x0000000042aa8000] -- main worker thread
       34 [8648] (main thread grabs futex only 34 times when compared to all the other threads)
    The load average seems ok; though my system thinks it has very less memory left and that
    I think is because its using up a lot of memory for the file system cache?
    top - 23:52:00 up 6 days, 8:41, 1 user, load average: 3.28, 3.40, 3.44
    Tasks: 229 total, 1 running, 228 sleeping, 0 stopped, 0 zombie
    Cpu(s): 3.2%us, 0.9%sy, 0.0%ni, 87.5%id, 8.3%wa, 0.0%hi, 0.1%si, 0.0%st
    Mem: 98999820k total, 98745988k used, 253832k free, 530372k buffers
    Swap: 18481144k total, 1304k used, 18479840k free, 89854800k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    8424 rchitta 16 0 7053m 6.2g 4.4g S 18.3 6.5 401:01.88 java
    8422 rchitta 15 0 7011m 6.1g 4.4g S 14.6 6.5 528:06.92 java
    8423 rchitta 15 0 6989m 6.1g 4.4g S 5.7 6.5 615:28.21 java
    $ java -version
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
    Maybe I should make my application a Concurrent Data Store app as there is really only one thread doing the writes and reads. But I would like
    to understand why my process is spending so much time in locking.
    Can I try any other options? How do I prevent such heavy locking from happening? Has anyone seen this kind of behavior? Maybe this is
    all normal. I'm pretty new to using BDB.
    If there is a way to disable locking that would also work as there is only one thread that's really doing all the job.
    Should I disable the file system cache? One thing is that my application does not utilize cache very well as once I visit a key, I don't visit that
    key again for a very long time so its very possible that the key has to be read again from the disk.
    It is possible that I'm thinking this completely wrong and focussing too much on locking behavior and the problem is else where.
    Any thoughts/suggestions etc are welcome. Your help on this is much appreciated.
    Thanks,
    Rama

    Hi,
    Looks like you're using BDB, not BDB JE, and this is the BDB JE forum. Could you please repost here?:
    Berkeley DB
    Thanks,
    mark

  • Problem with RAM 1GB and SGA

    I have RedHat 6.1 and Oracle 8.0.5 on Dell with 2xPII and 1.5GB RAM, kernel 2.2.14. When I set in kernel option 2GB RAM, make it, I can set max 70MB shared memory pool in init.ora. With 1GB RAM in kernel, I can set 419MB shared memory pool (its max from standard shmparam.h).
    Question: How I can set > 419MB shared memory pool with 1.5GB RAM?
    Thanks for all answers.
    Jirka

    The problem is the default address for mmap, you can solve the problem changing the SGA address, a good choice is 0x40000000, the procedure is:
    Shutdown all your instances
    cd $ORACLE_HOME/rdbms/lib
    genksms -b 0x40000000 > ksms.s
    make -f ins_rdbms.mk ksms.o
    make -f ins_rdbms.mk ioracle
    I can get up to 1 GB SGA in my 2GB machine

  • Message: "send mmap timed out" from a SSO instalation's HTTP_Server

    Hi to everyone,
    first of all my apologize if i have written this in a wrong forum but i did not find any forum in particular to SSO.
    When looking at the error logs from Apache in a SSO installation (10.1.2.0.2) i have found these entries:
    [Thu May 10 18:00:10 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:23 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:36 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:43 2012] [warn] [client 192.168.2.6] send mmap timed out
    [Thu May 10 18:00:49 2012] [warn] [client 192.168.2.6] send mmap timed out
    Does someone knows what they mean ??
    Is this a critical error ??
    what should i do to fix the problem ??
    Thanks for your kind help
    Regards
    Carlos

    I think you are confusing things here.
    While you can change the port used for submission from your mail clients to your mail server, you cannot (should not) change the outgoing port for your smtp server. All mail servers expect incoming traffic on port 25, thus using port 587 will not get your mail delivered (it will go through your firewall, but that's about it).
    If your mail server (not client) is behind a firewall with port 25 blocked, there is no way it can send mail to outside domains. So either get your ISP to let port 25 through for your server or use your ISP's smpt server to send mail (this can be done directly, or through your mail server relaying through your ISPs server).

  • [Pulseaudio] equalizer problem (solve)

    Hello
    I installed pulseaudio and all work fine but I tried to setup a system wide equalizer with the ladspa-sink module.
    I think the module is well load but there is a problem with pa_sink_input_update_max_request function.
    I am not alone in this situation :
    https://tango.0pointer.de/pipermail/pul … 03834.html
    http://www.mail-archive.com/pulseaudio- … 02398.html
    here is my default.pa :
    .fail
    ### Automatically restore the volume of streams and devices
    load-module module-device-restore
    load-module module-stream-restore
    load-module module-card-restore
    ### Automatically augment property information from .desktop files
    ### stored in /usr/share/application
    load-module module-augment-properties
    ### Automatically load driver modules depending on the hardware available
    .ifexists module-hal-detect.so
    load-module module-hal-detect
    .else
    ### Alternatively use the static hardware detection module (for systems that
    ### lack HAL support)
    load-module module-detect
    .endif
    ### Load several protocols
    .ifexists module-esound-protocol-unix.so
    load-module module-esound-protocol-unix
    .endif
    load-module module-native-protocol-unix
    ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
    ### Please keep in mind that the modules configured by paprefs might conflict with manually
    ### loaded modules.
    .ifexists module-gconf.so
    .nofail
    load-module module-gconf
    .fail
    .endif
    ### Automatically restore the default sink/source when changed by the user during runtime
    load-module module-default-device-restore
    ### Automatically move streams to the default sink if the sink they are
    ### connected to dies, similar for sources
    load-module module-rescue-streams
    ### Make sure we always have a sink around, even if it is a null sink.
    load-module module-always-sink
    ### Automatically suspend sinks/sources that become idle for too long
    load-module module-suspend-on-idle
    ### If autoexit on idle is enabled we want to make sure we only quit
    ### when no local session needs us anymore.
    load-module module-console-kit
    ### Enable positioned event sounds
    load-module module-position-event-sounds
    ### Cork music streams when a phone stream is active
    load-module module-cork-music-on-phone
    # equalizer
    .ifexists module-ladspa-sink.so
    load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.pci_10de_774_sound_card_0 plugin=mbeq_1197 label=mbeq control=-15,-15,-10,-1,-5,-1,-1,0,0,0,0,0,0,0,0
    #load-module module-ladspa-sink sink_name=ladspa_out master=alsa_out plugin=mbeq_1197 label=mbeq control=-15,-15,-10,-1,-5,-1,-1,0,0,0,0,0,0,0,0
    .endif
    ### Make some devices default
    set-default-sink ladspa_out
    #set-default-sink output
    #set-default-source input
    here the output of pulseaudio -v :
    I: main.c: Nous sommes dans le groupe « pulse-rt », permettant une planification à haute priorité.
    I: main.c: RLIMIT_RTPRIO is set to 65, allowing real-time scheduling.
    I: main.c: RLIMIT_NICE is set to 30, allowing high-priority scheduling.
    I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) a échoué : Opération non permise
    I: core-util.c: Successfully gained nice level -11.
    I: main.c: Abandon de CAP_NICE
    I: main.c: Pulseaudio 0.9.15
    I: main.c: La taille de la page est de 4096 octets
    I: main.c: L'ID de la machine est 900beb14464c78bd4d354b7a4960efd5.
    I: main.c: Session ID is 900beb14464c78bd4d354b7a4960efd5-1243705227.439009-752724780.
    I: main.c: Utilisation du répertoire d'exécution /home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:runtime.
    I: main.c: Utilisation du répertoire d'état /home/max/.pulse.
    I: main.c: Exécution en mode système : no
    I: main.c: De nouvelles horloges à haute résolution sont disponibles ! Bon appétit !
    I: module-device-restore.c: Sucessfully opened database file '/home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:device-volumes.x86_64-unknown-linux-gnu.gdbm'.
    I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
    I: module-stream-restore.c: Sucessfully opened database file '/home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:stream-volumes.x86_64-unknown-linux-gnu.gdbm'.
    I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
    I: module-card-restore.c: Sucessfully opened database file '/home/max/.pulse/900beb14464c78bd4d354b7a4960efd5:card-database.x86_64-unknown-linux-gnu.gdbm'.
    I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
    I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
    I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Output Analog Stereo + Input Analog Stereo'
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
    I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
    I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Output Analog Stereo'
    I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Output Digital Stereo (IEC958) + Input Analog Stereo'
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
    I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
    I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Output Digital Stereo (IEC958)'
    I: alsa-util.c: Device hdmi:0 doesn't support 44100 Hz, changed to 48000 Hz.
    I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Output Digital Stereo (HDMI) + Input Analog Stereo'
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
    I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
    I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Output Digital Stereo (HDMI)'
    I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Argument invalide
    I: module-alsa-card.c: Found output profile 'Input Analog Stereo'
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D1c failed
    I: alsa-util.c: Error opening PCM device iec958:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D3c failed
    I: alsa-util.c: Error opening PCM device hdmi:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Argument invalide
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: (alsa-lib)pcm_params.c: Slave PCM not usable
    I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Argument invalide
    I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Argument invalide
    I: (alsa-lib)pcm.c: Unknown PCM a52:0
    I: alsa-util.c: Error opening PCM device a52:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Failed to set hardware parameters on plug:surround71:0: Argument invalide
    I: card.c: Created 0 "alsa_card.pci_10de_774_sound_card_0"
    I: alsa-sink.c: Successfully opened device front:0.
    I: alsa-sink.c: Selected configuration 'Analog Stereo' (analog-stereo).
    I: alsa-sink.c: Successfully enabled mmap() mode.
    I: alsa-sink.c: Successfully enabled timer-based scheduling mode.
    I: (alsa-lib)control.c: Invalid CTL front:0
    I: alsa-util.c: Unable to attach to mixer front:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Successfully attached to mixer 'hw:0'
    I: alsa-util.c: Using mixer control "Master".
    I: module-device-restore.c: Restoring volume for sink alsa_output.pci_10de_774_sound_card_0.
    I: module-device-restore.c: Restoring mute state for sink alsa_output.pci_10de_774_sound_card_0.
    I: sink.c: Created sink 0 "alsa_output.pci_10de_774_sound_card_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
    I: sink.c: alsa.resolution_bits = "16"
    I: sink.c: alsa.mixer_element = "Master"
    I: sink.c: device.api = "alsa"
    I: sink.c: device.class = "sound"
    I: sink.c: alsa.class = "generic"
    I: sink.c: alsa.subclass = "generic-mix"
    I: sink.c: alsa.name = "CONEXANT Analog"
    I: sink.c: alsa.id = "CONEXANT Analog"
    I: sink.c: alsa.subdevice = "0"
    I: sink.c: alsa.subdevice_name = "subdevice #0"
    I: sink.c: alsa.device = "0"
    I: sink.c: alsa.card = "0"
    I: sink.c: alsa.card_name = "HDA NVidia"
    I: sink.c: alsa.long_card_name = "HDA NVidia at 0xc0000000 irq 20"
    I: sink.c: alsa.driver_name = "snd_hda_intel"
    I: sink.c: device.bus_path = "/devices/pci0000:00/0000:00:07.0/sound/card0"
    I: sink.c: hal.udi = "/org/freedesktop/Hal/devices/pci_10de_774_sound_card_0"
    I: sink.c: hal.product = "HDA NVidia Sound Card"
    I: sink.c: hal.card_id = "HDA NVidia"
    I: sink.c: device.string = "front:0"
    I: sink.c: device.buffering.buffer_size = "65536"
    I: sink.c: device.buffering.fragment_size = "32768"
    I: sink.c: device.access_mode = "mmap+timer"
    I: sink.c: device.profile.name = "analog-stereo"
    I: sink.c: device.profile.description = "Analog Stereo"
    I: sink.c: device.description = "HDA NVidia"
    I: sink.c: device.icon_name = "audio-card"
    I: module-device-restore.c: Restoring volume for source alsa_output.pci_10de_774_sound_card_0.monitor.
    I: module-device-restore.c: Restoring mute state for source alsa_output.pci_10de_774_sound_card_0.monitor.
    I: source.c: Created source 0 "alsa_output.pci_10de_774_sound_card_0.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
    I: source.c: device.description = "Monitor of HDA NVidia"
    I: source.c: device.class = "monitor"
    I: source.c: alsa.card = "0"
    I: source.c: alsa.card_name = "HDA NVidia"
    I: source.c: alsa.long_card_name = "HDA NVidia at 0xc0000000 irq 20"
    I: source.c: alsa.driver_name = "snd_hda_intel"
    I: source.c: device.bus_path = "/devices/pci0000:00/0000:00:07.0/sound/card0"
    I: source.c: hal.udi = "/org/freedesktop/Hal/devices/pci_10de_774_sound_card_0"
    I: source.c: hal.product = "HDA NVidia Sound Card"
    I: source.c: hal.card_id = "HDA NVidia"
    I: source.c: device.string = "0"
    I: source.c: device.icon_name = "audio-card"
    I: alsa-sink.c: Using 2 fragments of size 32768 bytes, buffer time is 371,52ms
    I: alsa-sink.c: Time scheduling watermark is 20,00ms
    I: alsa-sink.c: Volume ranges from 0 to 74.
    I: alsa-sink.c: Volume ranges from -74,00 dB to 0,00 dB.
    I: alsa-sink.c: No particular base volume set, fixing to 0 dB
    I: alsa-util.c: All 2 channels can be mapped to mixer channels.
    I: alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
    I: alsa-sink.c: Starting playback.
    I: alsa-sink.c: Underrun!
    N: alsa-sink.c: Increasing wakeup watermark to 30,00 ms
    I: alsa-source.c: Successfully opened device front:0.
    I: alsa-source.c: Selected configuration 'Analog Stereo' (analog-stereo).
    I: alsa-source.c: Successfully enabled mmap() mode.
    I: alsa-source.c: Successfully enabled timer-based scheduling mode.
    I: (alsa-lib)control.c: Invalid CTL front:0
    I: alsa-util.c: Unable to attach to mixer front:0: Aucun fichier ou dossier de ce type
    I: alsa-util.c: Successfully attached to mixer 'hw:0'
    I: alsa-util.c: Cannot find mixer control "Capture" or mixer control is no combination of switch/volume.
    I: alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control is no combination of switch/volume.
    I: module-device-restore.c: Restoring volume for source alsa_input.pci_10de_774_sound_card_0.
    I: module-device-restore.c: Restoring mute state for source alsa_input.pci_10de_774_sound_card_0.
    I: source.c: Created source 1 "alsa_input.pci_10de_774_sound_card_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
    I: source.c: alsa.resolution_bits = "16"
    I: source.c: device.api = "alsa"
    I: source.c: device.class = "sound"
    I: source.c: alsa.class = "generic"
    I: source.c: alsa.subclass = "generic-mix"
    I: source.c: alsa.name = "CONEXANT Analog"
    I: source.c: alsa.id = "CONEXANT Analog"
    I: source.c: alsa.subdevice = "0"
    I: source.c: alsa.subdevice_name = "subdevice #0"
    I: source.c: alsa.device = "0"
    I: source.c: alsa.card = "0"
    I: source.c: alsa.card_name = "HDA NVidia"
    I: source.c: alsa.long_card_name = "HDA NVidia at 0xc0000000 irq 20"
    I: source.c: alsa.driver_name = "snd_hda_intel"
    I: source.c: device.bus_path = "/devices/pci0000:00/0000:00:07.0/sound/card0"
    I: source.c: hal.udi = "/org/freedesktop/Hal/devices/pci_10de_774_sound_card_0"
    I: source.c: hal.product = "HDA NVidia Sound Card"
    I: source.c: hal.card_id = "HDA NVidia"
    I: source.c: device.string = "front:0"
    I: source.c: device.buffering.buffer_size = "65536"
    I: source.c: device.buffering.fragment_size = "32768"
    I: source.c: device.access_mode = "mmap+timer"
    I: source.c: device.profile.name = "analog-stereo"
    I: source.c: device.profile.description = "Analog Stereo"
    I: source.c: device.description = "HDA NVidia"
    I: source.c: device.icon_name = "audio-card"
    I: alsa-source.c: Using 2 fragments of size 32768 bytes, buffer time is 371,52ms
    I: alsa-source.c: Time scheduling watermark is 20,00ms
    I: module.c: Loaded "module-alsa-card" (index: #4; argument: "device_id=0 name=pci_10de_774_sound_card_0 card_name=alsa_card.pci_10de_774_sound_card_0 tsched=1").
    I: module-hal-detect.c: Loaded 1 modules.
    I: module.c: Loaded "module-hal-detect" (index: #5; argument: "").
    I: module.c: Loaded "module-esound-protocol-unix" (index: #6; argument: "").
    I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
    I: module.c: Loaded "module-gconf" (index: #8; argument: "").
    I: module-default-device-restore.c: No previous default sink setting, ignoring.
    I: module-default-device-restore.c: No previous default source setting, ignoring.
    I: module.c: Loaded "module-default-device-restore" (index: #9; argument: "").
    I: module.c: Loaded "module-rescue-streams" (index: #10; argument: "").
    I: module.c: Loaded "module-always-sink" (index: #11; argument: "").
    I: module.c: Loaded "module-suspend-on-idle" (index: #12; argument: "").
    I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session1"
    I: module.c: Loaded "module-console-kit" (index: #13; argument: "").
    I: module.c: Loaded "module-position-event-sounds" (index: #14; argument: "").
    I: module.c: Loaded "module-cork-music-on-phone" (index: #15; argument: "").
    I: sink.c: Created sink 1 "ladspa_out" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
    I: sink.c: device.description = "LADSPA Plugin mbeq on HDA NVidia"
    I: sink.c: device.master_device = "alsa_output.pci_10de_774_sound_card_0"
    I: sink.c: device.class = "filter"
    I: sink.c: device.ladspa.module = "mbeq_1197"
    I: sink.c: device.ladspa.label = "mbeq"
    I: sink.c: device.ladspa.name = "Multiband EQ"
    I: sink.c: device.ladspa.maker = "Steve Harris <[email protected]>"
    I: sink.c: device.ladspa.copyright = "GPL"
    I: sink.c: device.ladspa.unique_id = "1197"
    I: sink.c: device.icon_name = "audio-card"
    I: source.c: Created source 2 "ladspa_out.monitor" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
    I: source.c: device.description = "Monitor of LADSPA Plugin mbeq on HDA NVidia"
    I: source.c: device.class = "monitor"
    I: source.c: device.icon_name = "audio-input-microphone"
    I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.
    I: resampler.c: Using resampler 'copy'
    I: resampler.c: Using float32le as working format.
    I: sink-input.c: Created input 0 "LADSPA Stream" on alsa_output.pci_10de_774_sound_card_0 with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
    E: sink-input.c: Assertion 'PA_SINK_INPUT_IS_LINKED(i->thread_info.state)' failed at pulsecore/sink-input.c:807, function pa_sink_input_update_max_request(). Aborting.
    zsh: abort pulseaudio -v
    I wonder if someone could help me...
    I try to install pulseaudio-git from aur because a solution proposed (in the seconde link) is to simply remove the line 807 from the sink_input.c file but compilation fail.
    I use a 64bits architecture.
    Last edited by akira86 (2009-05-31 00:29:27)

    very interesting post! thanks a lot for sharing it with us..
    commission de surendettement - commission de surendettement, vous pouvez demander un dossier de surendettement.

  • Problem in configuring jar file into a j2me polish project

    look guys i know it might look noobie question but it is realy urgent !!
    i want to add a jar file into a j2me polish project--: i added it as a jar into the resources , put it in a liberary .
    and when i wanted to import it into my classes it was shown in the auto-complete and it showd no error but while i try to comile my project i got this error:
    clean:
    Deleting directory G:\MyWOrk\Polish Projects\NamesMeanings\build
    pre-init:
    pre-load-properties:
    exists.config.active:
    exists.netbeans.user:
    exists.user.properties.file:
    load-properties:
    exists.platform.active:
    exists.platform.configuration:
    exists.platform.profile:
    basic-init:
    cldc-pre-init:
    cldc-init:
    cdc-init:
    ricoh-pre-init:
    ricoh-init:
    semc-pre-init:
    semc-init:
    savaje-pre-init:
    savaje-init:
    sjmc-pre-init:
    sjmc-init:
    nokiaS80-pre-init:
    nokiaS80-init:
    nsicom-pre-init:
    nsicom-init:
    bdj-init:
    post-init:
    init:
    j2mepolish-init:
    j2mepolish:
    J2ME Polish 2.0.7 (2008-11-24) (GPL License)
    Loading device database...
    Processing [2] devices...
    building application for [Nokia/N70] (1/2):
    using locale [en_US]...
    assembling resources for device [Nokia/N70].
    preprocessing for device [Nokia/N70].
    Warning: CSS-Style [focused] not found, now using the default style instead. If you use Forms or Lists, you should define the style [focused].
    Warning: CSS style [title] not found, you should define it for designing the titles of screens.
    processing locale code...
    Warning: unable to resolve path to API "videocontrolbeforeplayer". When this leads to problems, please register this API in [apis.xml].
    compiling for device [Nokia/N70].
    Compiling 320 source files to G:\MyWOrk\Polish Projects\NamesMeanings\build\real\nokia240X320\Nokia\N70\en_US\classes
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:7: package nmsearch does not exist
    import nmsearch.*;
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:74: cannot find symbol
    symbol : variable NMSearch
    location: class namesmeanings.main.DirectSearch
    searched=NMSearch.Search(message);
    2 errors
    When an API-class was not found, you might need to define where to find the device-APIs. Following classpath has been used: [C:\Users\Asmaa\J2ME-Polish2.0.7\import\mmapi.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\midp-2.0.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\cldc-1.1.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/nokia-ui.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar].
    G:\MyWOrk\Polish Projects\NamesMeanings\build.xml:39: Unable to compile source code for device [Nokia/N70]: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 9 seconds)pleez i'll be more than thankful if anybody here could help in this.....

    look guys i know it might look noobie question but it is realy NOT* urgent !!
    i want to add a jar file into a j2me polish project--: i added it as a jar into the resources , put it in a liberary .
    and when i wanted to import it into my classes it was shown in the auto-complete and it showd no error but while i try to comile my project i got this error:
    clean:
    Deleting directory G:\MyWOrk\Polish Projects\NamesMeanings\build
    pre-init:
    pre-load-properties:
    exists.config.active:
    exists.netbeans.user:
    exists.user.properties.file:
    load-properties:
    exists.platform.active:
    exists.platform.configuration:
    exists.platform.profile:
    basic-init:
    cldc-pre-init:
    cldc-init:
    cdc-init:
    ricoh-pre-init:
    ricoh-init:
    semc-pre-init:
    semc-init:
    savaje-pre-init:
    savaje-init:
    sjmc-pre-init:
    sjmc-init:
    nokiaS80-pre-init:
    nokiaS80-init:
    nsicom-pre-init:
    nsicom-init:
    bdj-init:
    post-init:
    init:
    j2mepolish-init:
    j2mepolish:
    J2ME Polish 2.0.7 (2008-11-24) (GPL License)
    Loading device database...
    Processing [2] devices...
    building application for [Nokia/N70] (1/2):
    using locale [en_US]...
    assembling resources for device [Nokia/N70].
    preprocessing for device [Nokia/N70].
    Warning: CSS-Style [focused] not found, now using the default style instead. If you use Forms or Lists, you should define the style [focused].
    Warning: CSS style [title] not found, you should define it for designing the titles of screens.
    processing locale code...
    Warning: unable to resolve path to API "videocontrolbeforeplayer". When this leads to problems, please register this API in [apis.xml].
    compiling for device [Nokia/N70].
    Compiling 320 source files to G:\MyWOrk\Polish Projects\NamesMeanings\build\real\nokia240X320\Nokia\N70\en_US\classes
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:7: package nmsearch does not exist
    import nmsearch.*;
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:74: cannot find symbol
    symbol : variable NMSearch
    location: class namesmeanings.main.DirectSearch
    searched=NMSearch.Search(message);
    2 errors
    When an API-class was not found, you might need to define where to find the device-APIs. Following classpath has been used: [C:\Users\Asmaa\J2ME-Polish2.0.7\import\mmapi.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\midp-2.0.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\cldc-1.1.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/nokia-ui.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar].
    G:\MyWOrk\Polish Projects\NamesMeanings\build.xml:39: Unable to compile source code for device [Nokia/N70]: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 9 seconds)pleez i'll be more than thankful if anybody here could help in this.....

  • [long] Permission problem in sqlplus

    I have posted about this before - to summarize:
    1. I have installed Oracle without problems
    2. I can start the database and listern without problems
    3. I can log in with sqlplus when I am the oracle dba user
    - but when I try to log in from sqlplus as eg. root I get an
    ORA-12546. I can start sqlplus, but when I give the user-name,
    I get this error immediately.
    Following below are a sqlnet.log and the output from strace on
    sqlplus. Does anybody understand what they say? I notice that
    it says '(PROGRAM=)' in the sqlnet.log, and that seems odd -
    but I don't know if it is an error.
    In the strace file, it seems to run fine until it forks - then
    apparently the child exits (badly?) - at any rate "NTP13 0\n"
    is read from handle 11 (the read handle of a pipe) - and sqlplus
    starts looking for the message 'TNS-12546 ...', which is output.
    Is this because of the missing '(PROGRAM=)'?
    [sqlnet.log - my indentation of (DESCRIPTION... ]
    Fatal NI connect error 12546, connecting to:
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=beq)
    (PROGRAM=/usr/local/oracle/bin/oracle)
    (ARGV0=oracleORCL)
    (ARGS=
    '(DESCRIPTION=
    (LOCAL=YES)
    (ADDRESS=
    (PROTOCOL=beq)
    (DETACH=NO)
    (CONNECT_DATA=
    (CID=
    (PROGRAM=)
    (HOST=janpla)
    (USER=root)
    VERSION INFORMATION:
    TNS for Linux: Version 8.0.5.0.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version
    8.0.5.0.0 - Production
    Time: 10-APR-99 15:27:27
    Tracing not turned on.
    Tns error struct:
    nr err code: 12206
    TNS-12206: TNS:received a TNS error during navigation
    ns main err code: 12546
    TNS-12546: TNS:permission denied
    ns secondary err code: 12560
    nt main err code: 516
    TNS-00516: Permission denied
    nt secondary err code: 13
    nt OS err code: 0
    [strace output]
    read(0, "system\n", 4096) = 7
    brk(0x8123000) = 0x8123000
    brk(0x8124000) = 0x8124000
    brk(0x8128000) = 0x8128000
    brk(0x812e000) = 0x812e000
    lstat(".", {st_mode=0, st_size=0, ...}) = 0
    lstat("/", {st_mode=0, st_size=0, ...}) = 0
    lstat("..", {st_mode=0, st_size=0, ...}) = 0
    stat("..", {st_mode=0, st_size=0, ...}) = 0
    open("..", O_RDONLY|O_NONBLOCK) = 9
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    lseek(9, 0, SEEK_CUR) = 0
    getdents(9, 0 328
    12 328
    28 328
    52 328
    68 328
    84 328
    100 328
    116 328
    132 328
    148 328
    164 328
    180 328
    196 328
    212 328
    228 328
    244 328
    260 328
    276 328
    292 328
    308 328
    /* 20 entries */, 3933) = 328
    lstat("../root", {st_mode=0, st_size=0, ...}) = 0
    close(9) = 0
    brk(0x8131000) = 0x8131000
    access("/usr/local/oracle/network/admin/sqlnet.ora", F_OK) = 0
    open("/usr/local/oracle/network/admin/sqlnet.ora", O_RDONLY) = 9
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    read(9, "TRACE_LEVEL_CLIENT = OFF\r\n#sql"..., 4096) = 191
    brk(0x8132000) = 0x8132000
    read(9, "", 4096) = 0
    close(9) = 0
    munmap(0x4038b000, 4096) = 0
    access("/root/.sqlnet.ora", F_OK) = -1 ENOENT (No such file
    or directory)
    access("/etc/intchg.ora", F_OK) = -1 ENOENT (No such file
    or directory)
    access("/usr/local/oracle/network/admin/intchg.ora", F_OK) = -1
    ENOENT (No such file or directory)
    access("/etc/tnsnav.ora", F_OK) = -1 ENOENT (No such file
    or directory)
    access("/usr/local/oracle/network/admin/tnsnav.ora", F_OK) = -1
    ENOENT (No such file or directory)
    lstat(".", {st_mode=0, st_size=0, ...}) = 0
    lstat("/", {st_mode=0, st_size=0, ...}) = 0
    lstat("..", {st_mode=0, st_size=0, ...}) = 0
    stat("..", {st_mode=0, st_size=0, ...}) = 0
    open("..", O_RDONLY|O_NONBLOCK) = 9
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    lseek(9, 0, SEEK_CUR) = 0
    getdents(9, 0 328
    12 328
    28 328
    52 328
    68 328
    84 328
    100 328
    116 328
    132 328
    148 328
    164 328
    180 328
    196 328
    212 328
    228 328
    244 328
    260 328
    276 328
    292 328
    308 328
    /* 20 entries */, 3933) = 328
    lstat("../root", {st_mode=0, st_size=0, ...}) = 0
    close(9) = 0
    uname({sys="Linux", node="janpla", ...}) = 0
    getuid() = 0
    open("/etc/nsswitch.conf", O_RDONLY) = 9
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    read(9, "#\n# /etc/nsswitch.conf\n#\n# An"..., 4096) = 1208
    read(9, "", 4096) = 0
    close(9) = 0
    munmap(0x4038b000, 4096) = 0
    open("/usr/local/oracle/lib/libnss_files.so.1", O_RDONLY) = -1
    ENOENT (No such file or directory)
    open("/usr/local/oracle/lib/libnss_files.so.1", O_RDONLY) = -1
    ENOENT (No such file or directory)
    open("/usr/local/oracle/lib/libnss_files.so.1", O_RDONLY) = -1
    ENOENT (No such file or directory)
    open("/usr/local/oracle/lib/libnss_files.so.1", O_RDONLY) = -1
    ENOENT (No such file or directory)
    open("/usr/local/oracle/lib/libnss_files.so.1", O_RDONLY) = -1
    ENOENT (No such file or directory)
    open("/usr/local/oracle/lib/libnss_files.so.1", O_RDONLY) = -1
    ENOENT (No such file or directory)
    open("libnss_files.so.1", O_RDONLY) = -1 ENOENT (No such file
    or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 9
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 15867, PROT_READ, MAP_PRIVATE, 9, 0) = 0x4049d000
    close(9) = 0
    open("/lib/libnss_files.so.1", O_RDONLY) = 9
    mmap(0, 4096, PROT_READ, MAP_PRIVATE, 9, 0) = 0x4038b000
    munmap(0x4038b000, 4096) = 0
    mmap(0, 32784, PROT_READ|PROT_EXEC, MAP_PRIVATE, 9, 0) =
    0x404a1000
    mprotect(0x404a8000, 4112, PROT_NONE) = 0
    mmap(0x404a8000, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 9, 0x6000) = 0x404a8000
    mmap(0x404a9000, 16, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x404a9000
    close(9) = 0
    munmap(0x4049d000, 15867) = 0
    open("/etc/passwd", O_RDONLY) = 9
    fcntl(9, F_GETFD) = 0
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    read(9, "root:NAihe8YfHFB7Y:0:0:root:/roo"..., 4096) = 690
    close(9) = 0
    munmap(0x4038b000, 4096) = 0
    brk(0x8134000) = 0x8134000
    brk(0x8135000) = 0x8135000
    gettimeofday({923750812, 340810}, NULL) = 0
    gettimeofday({923750812, 341529}, NULL) = 0
    open("/var/run/hostid", O_RDONLY) = -1 ENOENT (No such file
    or directory)
    uname({sys="Linux", node="janpla", ...}) = 0
    gettimeofday({923750812, 346477}, NULL) = 0
    getpid() = 546
    open("/etc/resolv.conf", O_RDONLY) = 9
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    read(9, "search dk \nnameserver 131.166.1"..., 4096) = 35
    read(9, "", 4096) = 0
    close(9) = 0
    munmap(0x4038b000, 4096) = 0
    open("/etc/hosts", O_RDONLY) = 9
    fcntl(9, F_GETFD) = 0
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    read(9, "127.0.0.1\tjanpla\tjanpla.locald"..., 4096) = 36
    close(9) = 0
    munmap(0x4038b000, 4096) = 0
    getpid() = 546
    open("/var/run/hostid", O_RDONLY) = -1 ENOENT (No such file
    or directory)
    uname({sys="Linux", node="janpla", ...}) = 0
    open("/etc/hosts", O_RDONLY) = 9
    fcntl(9, F_GETFD) = 0
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    read(9, "127.0.0.1\tjanpla\tjanpla.locald"..., 4096) = 36
    close(9) = 0
    munmap(0x4038b000, 4096) = 0
    getpid() = 546
    brk(0x8136000) = 0x8136000
    brk(0x8137000) = 0x8137000
    gettimeofday({923750812, 375759}, NULL) = 0
    gettimeofday({923750812, 377630}, NULL) = 0
    brk(0x8138000) = 0x8138000
    pipe([9, 10]) = 0
    pipe([11, 12]) = 0
    fork() = 550
    --- SIGCHLD (Child exited) ---
    sigprocmask(SIG_BLOCK, [PIPE], NULL) = 0
    sigaction(SIGPIPE, {0x402d6734, ~[ILL ABRT BUS FPE SEGV XCPU XFSZ
    UNUSED], 0}, {SIG_DFL}) = 0
    sigprocmask(SIG_UNBLOCK, [PIPE], NULL) = 0
    sigprocmask(SIG_BLOCK, [CHLD], NULL) = 0
    sigaction(SIGCHLD, {0x402d6734, ~[ILL ABRT BUS FPE SEGV XCPU XFSZ
    UNUSED], 0}, {SIG_DFL}) = 0
    sigprocmask(SIG_UNBLOCK, [CHLD], NULL) = 0
    close(9) = 0
    close(12) = 0
    read(11, "NTP13 0\n", 64) = 8
    close(10) = 0
    close(11) = 0
    open("/root/sqlnet.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 9
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x4038b000
    fstat(9, {st_mode=0, st_size=0, ...}) = 0
    lseek(9, 50800, SEEK_SET) = 50800
    fcntl(9, F_SETFD, FD_CLOEXEC) = 0
    write(9, "\n\n****************************"..., 73) = 73
    lseek(9, 0, SEEK_CUR) = 50873
    write(9, "\nFatal NI connect error 12546, "..., 266) = 266
    lseek(9, 0, SEEK_CUR) = 51139
    gettimeofday({923750812, 415483}, NULL) = 0
    write(9, "\n VERSION INFORMATION:\n\tTNS "..., 150) = 150
    lseek(9, 0, SEEK_CUR) = 51289
    write(9, " Time: 10-APR-99 15:26:52\n", 27) = 27
    lseek(9, 0, SEEK_CUR) = 51316
    write(9, " Tracing not turned on.\n", 25) = 25
    lseek(9, 0, SEEK_CUR) = 51341
    write(9, " Tns error struct:\n", 20) = 20
    lseek(9, 0, SEEK_CUR) = 51361
    write(9, " nr err code: 12206\n", 23) = 23
    lseek(9, 0, SEEK_CUR) = 51384
    open("/usr/local/oracle/network/mesg/tnsus.msb", O_RDONLY) = 10
    fcntl(10, F_SETFD, FD_CLOEXEC) = 0
    lseek(10, 0, SEEK_SET) = 0
    read(10, "\25\23\"\1\23\3\t\t\0\0\0\0\0\0\0"..., 256) = 256
    lseek(10, 512, SEEK_SET) = 512
    read(10, "\2331\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
    lseek(10, 1024, SEEK_SET) = 1024
    read(10, "\t\0\22\0\32\0&\0-\0F\0N\0U\0\\\0"..., 142) = 142
    lseek(10, 30208, SEEK_SET) = 30208
    read(10, "\n\0\253/\0\0D\0\254/\0\0h\0\255"..., 512) = 512
    write(9, " ", 4) = 4
    lseek(9, 0, SEEK_CUR) = 51388
    write(9, "TNS-12206: TNS:received a TNS er"..., 54) = 54
    lseek(9, 0, SEEK_CUR) = 51442
    write(9, " ns main err code: 12546\n", 28) = 28
    lseek(9, 0, SEEK_CUR) = 51470
    lseek(10, 32768, SEEK_SET) = 32768
    read(10, "\16\0\3660\0\0\\\0\3670\0\0w\0\370"..., 512) = 512
    write(9, " ", 4) = 4
    lseek(9, 0, SEEK_CUR) = 51474
    write(9, "TNS-12546: TNS:permission denied"..., 33) = 33
    lseek(9, 0, SEEK_CUR) = 51507
    write(9, " ns secondary err code: 12560"..., 33) = 33
    lseek(9, 0, SEEK_CUR) = 51540
    write(9, " nt main err code: 516\n", 26) = 26
    lseek(9, 0, SEEK_CUR) = 51566
    lseek(10, 14848, SEEK_SET) = 14848
    read(10, "\16\0\1\2\0\0\\\0\2\2\0\0x\0\3\2"..., 512) = 512
    write(9, " ", 4) = 4
    lseek(9, 0, SEEK_CUR) = 51570
    write(9, "TNS-00516: Permission denied\n", 29) = 29
    lseek(9, 0, SEEK_CUR) = 51599
    write(9, " nt secondary err code: 13\n", 30) = 30
    lseek(9, 0, SEEK_CUR) = 51629
    open("/usr/local/oracle/rdbms/mesg/oraus.msb", O_RDONLY) = 11
    fcntl(11, F_SETFD, FD_CLOEXEC) = 0
    lseek(11, 0, SEEK_SET) = 0
    read(11, "\25\23\"\1\23\3\t\t\0\0\0\0\0\0\0"..., 256) = 256
    lseek(11, 512, SEEK_SET) = 512
    read(11, "\303\35op\32t\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
    lseek(11, 1536, SEEK_SET) = 1536
    read(11, "\323\35\337\35\0\36\31\36%\36I\36"..., 512) = 512
    lseek(11, 187904, SEEK_SET) = 187904
    read(11, "\16\0\3670\0\0\\\0\3700\0\0s\0\371"..., 512) = 512
    close(11) = 0
    lseek(4, 512, SEEK_SET) = 512
    read(4, "\264\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
    lseek(4, 1024, SEEK_SET) = 1024
    read(4, "\23\0\'\0005\0M\0]\0l\0\177\0\216"..., 512) = 512
    lseek(4, 6656, SEEK_SET) = 6656
    read(4, "\16\0\351\0\0\0\\\0\352\0\0\0\226"..., 512) = 512
    write(1, "ERROR:\n", 7) = 7
    write(1, "ORA-12546: TNS:permission denied"..., 33) = 33
    write(1, "\n\n", 2) = 2
    lseek(4, 512, SEEK_SET) = 512
    read(4, "\264\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
    lseek(4, 1024, SEEK_SET) = 1024
    read(4, "\23\0\'\0005\0M\0]\0l\0\177\0\216"..., 512) = 512
    lseek(4, 5632, SEEK_SET) = 5632
    read(4, "\16\0\217\0\0\0\\\0\220\0\0\0w\0"..., 512) = 512
    lseek(4, 512, SEEK_SET) = 512
    read(4, "\264\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
    lseek(4, 1024, SEEK_SET) = 1024
    read(4, "\23\0\'\0005\0M\0]\0l\0\177\0\216"..., 512) = 512
    lseek(4, 6144, SEEK_SET) = 6144
    read(4, "\21\0\241\0\0\0n\0\242\0\0\0\201"..., 512) = 512
    write(1, "Enter user-name: ", 17) = 17
    read(0, <unfinished ...>
    null

    Hi Jan,
    as far as I can see, it's the child having problems somewhere,
    so as root do a strace -f sqlplus (which means follow, and you
    have to be root because else you cannot follow setuid-programs
    (sqlplus does a fork()-exec())).
    you might compare the output with the output from oracle doing
    an strace -f sqlplus (which is also allowed because the real
    uid already is oracle).
    I think (but I can't be sure) you have problems with an s-bit
    somewhere.
    you can send me the results if you want me to look at it.
    (if you need it fast, send it at [email protected] or in this
    forum)
    Ronald
    Jan (guest) wrote:
    : I have posted about this before - to summarize:
    : 1. I have installed Oracle without problems
    : 2. I can start the database and listern without problems
    : 3. I can log in with sqlplus when I am the oracle dba user
    : fork() = 550
    : --- SIGCHLD (Child exited) ---
    : sigprocmask(SIG_BLOCK, [PIPE], NULL) = 0
    null

Maybe you are looking for

  • Physical page size in reports 9i

    Greetings all. I am trying to create a report to print on multiform dot matrix epson printer. The height of the pre-printed form is 5.5". Is it possible in graphics (bitmap) mode to define a custom size? Or is it only possible to do the same in chara

  • Multiple programs in the same VM

    I don't have lots on memory and whenever I run 2 java programs, it becomes very slow. Is it possible to have a JVM running a "launcher" aplication and starting programs all in the same VM? I guess it would have security risks, but I think it would be

  • Problems with accessing Itunes on HP Windows 7 Professional

    I was using itune yesterday with no problems, some where i went wrong.  Now, when i try to access itunes i get a message that says, "the folder itunes is on a locked disk or you do not have write permissions for this folder."  It will only allow me t

  • Learning jsf while working on jsp...

    hi, im new to jsp, im working on the web applications using jsp... but at the same time i want to learn jsf and struts also. im not getting from where to start.. please let me know how to start with these... is the knowledge of struts is important fo

  • IPods and Tiger

    This may be off topic here. If so I apologize. But the question is this. Why are people so high on iPods when they can buy a Palm Pilot for a cheaper price that does far more? My Zire 72 can do music, movies, record audio, take pictures, record video