Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
dbx SIGSEGV on Solaris 9 w/ libmalloc.so.1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Morgan  
View profile  
 More options Jul 30 2004, 10:57 am
Newsgroups: comp.unix.solaris
From: Mike Morgan <mmor...@lucent.com>
Date: Fri, 30 Jul 2004 10:57:23 -0400
Local: Fri, Jul 30 2004 10:57 am
Subject: dbx SIGSEGV on Solaris 9 w/ libmalloc.so.1

   Could anyone tell me if this happens on their systems?

   When I export LD_PRELOAD=libmalloc.so.1 on Solaris 9 and run dbx, it
crashes.

truss reports:
brk(0x1005DC150)                                = 0
     Incurred fault #6, FLTBOUNDS  %pc = 0xFFFFFFFF7F200FC8
       siginfo: SIGSEGV SEGV_MAPERR addr=0x00014000
     Received signal #11, SIGSEGV [default]
       siginfo: SIGSEGV SEGV_MAPERR addr=0x00014000

dbx version:
  Forte Developer 7 Dbx Debugger 7.0 Patch 115977-02 2004/04/07
(latest patch 115977-03 crashes as well)

This problem does not appear on Solaris 7 with dbx version:
  Sun WorkShop 6 update 2 Dbx Debugger 6.2 Patch 115117-01 2003/12/17

However dbx appears to run fine with any other malloc replacement
library (watchmalloc/bsdmalloc/mtmalloc).

Just want to make sure it's not some configuration issue on my end.

thanks,
Mike Morgan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seongbae Park  
View profile  
 More options Jul 30 2004, 11:17 am
Newsgroups: comp.unix.solaris
From: Seongbae Park <Seongbae.P...@Sun.COM>
Date: Fri, 30 Jul 2004 15:17:43 +0000 (UTC)
Local: Fri, Jul 30 2004 11:17 am
Subject: Re: dbx SIGSEGV on Solaris 9 w/ libmalloc.so.1

No, it's not your fault.
This is yet another manifestation of the bug 4846556.
libmalloc doesn't have valloc() and memalign(),
so any program that uses those to allocate a memory
will get SEGV when it frees the memory
because valloc() and memalign() are libc's version
but free() is from libmalloc.
The cpu performance counters library libcpc is used by dbx and collector
and calls one of those two, making dbx and collector
fail with libmalloc.

Anyway, unless you want to do something about dbx itself,
you don't want to LD_PRELOAD something for dbx.
If you want to preload the library for your debugged program,
use LD_PRELOAD inside dbx:

$ dbx ...your program...
(dbx) LD_PRELOAD=...whatever library...
(dbx) run

This makes sure dbx itself does not preload the library
but your target program does.
But whenever you preload a library, dbx will see
multiple symbols with the same name
so you'll have to be careful whenever you do something inside dbx
(dbx will ask you when it can not uniquely resolve the name
but sometimes it can be confusing).

Seongbae


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seongbae Park  
View profile  
 More options Jul 30 2004, 11:26 am
Newsgroups: comp.unix.solaris
From: Seongbae Park <Seongbae.P...@Sun.COM>
Date: Fri, 30 Jul 2004 15:26:25 +0000 (UTC)
Local: Fri, Jul 30 2004 11:26 am
Subject: Re: dbx SIGSEGV on Solaris 9 w/ libmalloc.so.1

A minor correction below - export was missing.

Seongbae

Seongbae Park <Seongbae.P...@Sun.COM> wrote:

...

> If you want to preload the library for your debugged program,
> use LD_PRELOAD inside dbx:

> $ dbx ...your program...
> (dbx) LD_PRELOAD=...whatever library...

(dbx) export LD_PRELOAD


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Morgan  
View profile  
 More options Jul 30 2004, 11:39 am
Newsgroups: comp.unix.solaris
From: Mike Morgan <mmorga...@nospam.yahoo.com>
Date: Fri, 30 Jul 2004 11:39:48 -0400
Local: Fri, Jul 30 2004 11:39 am
Subject: Re: dbx SIGSEGV on Solaris 9 w/ libmalloc.so.1
Thanks Seongbae!

Makes sense as to why my program had the same behavior.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roland Mainz  
View profile  
 More options Jul 31 2004, 12:25 pm
Newsgroups: comp.unix.solaris
From: Roland Mainz <roland.ma...@nrubsig.org>
Date: Sat, 31 Jul 2004 18:25:54 +0200
Local: Sat, Jul 31 2004 12:25 pm
Subject: Re: dbx SIGSEGV on Solaris 9 w/ libmalloc.so.1

... same applies to libbsdmalloc, libmapmalloc, libmtmalloc, watchmalloc
etc. which prevents their usage in applications like "mozilla" (which
currently suffers from huge memory fragmentation problems) ... ;-(

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o) roland.ma...@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google