Subject: Opera broken on NetBSD4/i386?
To: pkgsrc-users@netbsd.org <pkgsrc-users@netbsd.org>
From: Loic Hoguin <essen@dev-extend.eu>
List: pkgsrc-users
Date: 05/25/2007 00:02:50
Hello,

Opera is broken on NetBSD4/i386, pkgsrc current.
Netbsd 4.0BETA_2 was taken from the daily builds 3 days ago.

I have the following errors:

   shmget: Cannot allocate memory
   shmget: Cannot allocate memory
   shmget: Cannot allocate memory
   shmget: Cannot allocate memory
   shmget: Cannot allocate memory
   shmget: Cannot allocate memory
   opera: Failed to allocate shared memory 65536

And here's the trace around the first error:

   1336      1 opera    RET   read 32/0x20
   1336      1 opera    CALL  read(3,0xbfbfdf20,0x20)
   1336      1 opera    GIO   fd 3 read 32 bytes
        "\^A\^A\M-U\^F\0\0\0\0\^C\0\M^@\^A|X\^[\b\M-0\M-l\M-?\M-?\M-8\M-l\M-?\M-?\M^T\^R\^Z\b+\0\0\0"
   1336      1 opera    RET   read 32/0x20
   1336      1 opera    CALL  ipc(0x16,0,0,0,0xbab76000)
   1336      1 opera    RET   ipc 0
   1336      1 opera    CALL  ipc(0x17,0,0x42c7f8,0x3b6,0)
   1336      1 opera    RET   ipc -1 errno -12 Cannot allocate memory
   1336      1 opera    CALL  dup(2)
   1336      1 opera    RET   dup 27/0x1b
   1336      1 opera    CALL  fcntl64(0x1b,3,0xbbbff6ac)
   1336      1 opera    RET   fcntl64 2
   1336      1 opera    CALL  fstat64(0x1b,0xbfbfdda4)
   1336      1 opera    RET   fstat64 0
   1336      1 opera    CALL  ioctl(0x1b,_IO('T',0x1,0),0xbfbfdd04)
   1336      1 opera    RET   ioctl 0
   1336      1 opera    CALL  old_mmap(0xbfbfdd8c)
   1336      1 opera    RET   old_mmap -1155072000/0xbb270000
   1336      1 opera    CALL  llseek(0x1b,0,0,0xbfbfde00,1)
   1336      1 opera    RET   llseek 0
   1336      1 opera    CALL  write(0x1b,0xbb270000,0x1f)
   1336      1 opera    GIO   fd 27 wrote 31 bytes
        "shmget: Cannot allocate memory
        "
   1336      1 opera    RET   write 31/0x1f
   1336      1 opera    CALL  close(0x1b)
   1336      1 opera    RET   close 0

It is basically the same for each error message, but not the last:

   1336      1 opera    RET   ipc 0
   1336      1 opera    CALL  ipc(0x17,0,0x10000,0x3b6,0)
   1336      1 opera    RET   ipc 393304/0x60058
   1336      1 opera    CALL  ipc(0x15,0x60058,0,0xbfbfdd6c,0)
   1336      1 opera    RET   ipc 0
   1336      1 opera    CALL  ipc(0x18,0x60058,0,0,0)
   1336      1 opera    RET   ipc 0
   1336      1 opera    CALL  ipc(0x17,0,0x10000,0x3b6,0)
   1336      1 opera    RET   ipc -1 errno -12 Cannot allocate memory
   1336      1 opera    CALL  dup(2)
   1336      1 opera    RET   dup 19/0x13
   1336      1 opera    CALL  fcntl64(0x13,3,0x8e0db40)
   1336      1 opera    RET   fcntl64 2
   1336      1 opera    CALL  fstat64(0x13,0xbfbfdbc4)
   1336      1 opera    RET   fstat64 0
   1336      1 opera    CALL  ioctl(0x13,_IO('T',0x1,0),0xbfbfdb24)
   1336      1 opera    RET   ioctl 0
   1336      1 opera    CALL  old_mmap(0xbfbfdbac)
   1336      1 opera    RET   old_mmap -1162231808/0xbab9c000
   1336      1 opera    CALL  llseek(0x13,0,0,0xbfbfdc20,1)
   1336      1 opera    RET   llseek 0
   1336      1 opera    CALL  write(0x13,0xbab9c000,0x1f)
   1336      1 opera    GIO   fd 19 wrote 31 bytes
        "shmget: Cannot allocate memory
        "
   1336      1 opera    RET   write 31/0x1f
   1336      1 opera    CALL  close(0x13)
   1336      1 opera    RET   close 0
   1336      1 opera    CALL  munmap(0xbab9c000,0x10000)
   1336      1 opera    RET   munmap 0
   1336      1 opera    CALL  fstat64(1,0xbfbfb624)
   1336      1 opera    RET   fstat64 0
   1336      1 opera    CALL  ioctl(1,_IO('T',0x1,0),0xbfbfb584)
   1336      1 opera    RET   ioctl 0
   1336      1 opera    CALL  old_mmap(0xbfbfb60c)
   1336      1 opera    RET   old_mmap -1162231808/0xbab9c000
   1336      1 opera    CALL  write(1,0xbab9c000,0x2e)
   1336      1 opera    GIO   fd 1 wrote 46 bytes
        "opera: Failed to allocate shared memory 65536
        "

Thanks for your help debugging this.

-- 
Loc Hoguin
Dev:Extend